Display preview from selected items and input text

Asmoro

Active Member
Licensed User
Longtime User
Display preview from selected items, input text and photos

Hi all,

I tried to make a preview from selected items,input text and photos.

The testcase is the same I made for another thread, but this
time with photo selections and spinner visibility handling.

I hope someone can figure it out.

Right now I'm really stuck.

There is a zip just to test it.


Thanks for now.

grtz.
Asmoro

Update: a 'working' testcase zip available on this thread
 
Last edited:

Asmoro

Active Member
Licensed User
Longtime User
Hi all,

I made the same 'clean' testcase where I decided to view 1 image/photo on
the preview screen instead of 3 images after clicking imageview on
the 'main'screen.

Thanks to Klaus, all worked fine as it should be, but other issues
I want to solve it too.

The idea is that depending on the items you select from the spinner on
the 'main' screen, only the relevant Label(view) will show up.

So I was playing with the visibility feature and got only errors as
a result. (run the program and see the comments)

Second issue is to save the 'preview' screen on the sdcard and a server
at the same time.

In fact, I don't have a single clue to start with.
I was searching on the forum for directions and suggestions, but it
seems there is not a standard way to do that.

That's why I left the 'Save' button open for suggestions.

I will include a zip file and snapshots of label(view) visibility action
with the result for people who wants to help me out for solutions.

grtz.
Asmoro

note: due exceeding the maximum filesize for the forum, I deleted the related image features.
 

Attachments

  • mainscreen.jpg
    mainscreen.jpg
    8.6 KB · Views: 197
  • previewscreen_with_the_result.jpg
    previewscreen_with_the_result.jpg
    3.7 KB · Views: 175
Upvote 0

Asmoro

Active Member
Licensed User
Longtime User
Hi all,

I still don't have the solution for the visibility issue.

According to the images I put on the 'Main' code:

Sub Activity_Resume

If SpTheatre.Visible = True Then
lbTheatre.Visible = True
End If

As a result I get no labelview for lbTheatre (note: I made Labelview lbTheatre as False)

Any help would be appreciated.

Thanks
Asmoro
 

Attachments

  • main.jpg
    main.jpg
    8.4 KB · Views: 179
  • preview screen .jpg
    preview screen .jpg
    3.8 KB · Views: 184
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
B4X:
preview.lbTheatre.Visible = False

The above line (and lots of others like it) show that you have a basic misunderstanding of the modules.

You keep trying to reference variables and views that are in different modules without any of them being in process globals.

I suggest you read up on what can and cannot be shared between code/activity modules
 
Upvote 0

Asmoro

Active Member
Licensed User
Longtime User
Hi Kickaha,

Thanks for your reply.

I'm aware of that and certainly read once again.

But according to your quote, I don't use this code anymore since
it's not working and therefore my example is likely outdated.
Perhaps it is better to put a recent example.

Asmoro
 
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
If your example is outdated I suggest you update it BEFORE asking for help, I thought it was commented out in the code because you did not understand the issue so was trying to help.

For a recent example of your lack of understanding :
B4X:
If SpTheatre.Visible = True Then
lbTheatre.Visible = True
End If

SpTheatre is in Main and lbTheatre is in preview.
 
Upvote 0
Top