display and save select item or data to another view and panel

Asmoro

Active Member
Licensed User
Longtime User
Hi all,

I wonder if anyone knows how to do that....

Or having a simple example would be nice though to learn from.

Thanks for now.

grtz.
Asmoro

**In the meantime I tried to make it work with a simple example, but didn't do the trick.
I'm pretty sure that I somehow miss something.

I will put the example as a zip, for anyone who wants to help me out.
 

Attachments

  • TwoActivitiesDisplayResult.zip
    6.8 KB · Views: 225
Last edited:

klaus

Expert
Licensed User
Longtime User
Here you are:
I made some changes:
- renamed the layout for the Main module from "1" to "main"
- Dimed the List object in Process_Globals instead of Globals. That way it is also available in the resutl module.
- added a back button in the result module.

Best regards.
 

Attachments

  • TwoActivitiesDisplayResult1.zip
    7.2 KB · Views: 206
Upvote 0

Asmoro

Active Member
Licensed User
Longtime User
Thanks Klaus,

I'm gonna check it out.

B.t.w. is this the standard procedure also for other kind of views or just for the spinner.

And I noticed the two methods that you offered: please explain the benifits between these two.

Asmoro
 
Last edited:
Upvote 0

Asmoro

Active Member
Licensed User
Longtime User
Thanks Klaus,

The codes you made was working perfectly.

Now I made a new example with other kind of views.
But I was stuck on the handlings for the imageview and the edittext view.

I hope you or someone else can solve the handling problems so that eventually
this example would be a truly nice tutorial for anyone.;)

grtz.
Asmoro

note: attached a new zip file to analyse.
 

Attachments

  • TwoActivitiesDisplayResultsViews.zip
    7.8 KB · Views: 221
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
Here you are.

B.t.w. is this the standard procedure also for other kind of views or just for the spinner.
There is no standard procedure it's one possibility.

And I noticed the two methods that you offered: please explain the benifits between these two.
It depends on what you want to do. In some cases using the index can be usefull if you need it as an index for other variables. Otherwise if you only need the value use it as it is.

In your second program you have prepared all EditText event routines. There is nothing in there yet because using these depends on what you want to do.

Best regards.
 

Attachments

  • TwoActivitiesDisplayResultsViews1.zip
    8 KB · Views: 227
Upvote 0

Asmoro

Active Member
Licensed User
Longtime User
Klaus,

Thanks again for your input and explanation.

I was stuck to make a link code with the editText and the label on
the other panel, the same with the ImageView, so it would behave like
the spinner example (without the index).

That's why I left it open, after several try outs with dozens of compiling errors.

Now I will check your solution and will come back to you a.s.a.p.

grtz.
Asmoro
 
Upvote 0

Asmoro

Active Member
Licensed User
Longtime User
Hi Klaus,

It's working fine, as usual from you.:sign0188:
Thanks for all.

Time to put the tut in the appropiate section.

So, for those who wants the example, come and get it in the tutorial section.

Or take the one from Klaus. (see above TwoActivitiesDisplayResultsViews1.zip)
It will be the same.


grtz.
Asmoro
 
Last edited:
Upvote 0
Top