C cloner7801 Active Member Licensed User Longtime User Apr 28, 2017 #1 Hi, How can I get job url in job done ? I have 10-15 job request and in every jobname I set imageview tag name to set bitmap in imageview with find by tag.. but in jobdone I need request url (image url) What should I do?
Hi, How can I get job url in job done ? I have 10-15 job request and in every jobname I set imageview tag name to set bitmap in imageview with find by tag.. but in jobdone I need request url (image url) What should I do?
Descartex Well-Known Member Licensed User Longtime User Apr 29, 2017 #2 Hi, You can set the tag with multiple data, for example: B4X: Job.Tag=Imageview.Tag&":"&URL Later, on JobDone, you can extract the data: B4X: Dim Data() as String Data=Regex.Trim(":",Job.Tag) If everything works as expected, on Data(0) you should have the Imageview tag you need and on Data(1) the URL you passed. Regards. Upvote 0
Hi, You can set the tag with multiple data, for example: B4X: Job.Tag=Imageview.Tag&":"&URL Later, on JobDone, you can extract the data: B4X: Dim Data() as String Data=Regex.Trim(":",Job.Tag) If everything works as expected, on Data(0) you should have the Imageview tag you need and on Data(1) the URL you passed. Regards.
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2017 #3 Good: B4X: Job.Tag = Array(ImageView.Tag, URL) Dim Data() As Object = Job.Tag Dim imageTag As Object = Data(0) Dim url As String = Data(1) Better: B4X: Job.Tag = CreateMap("ImageView": ImageView.Tag, "URL": URL) Dim m As Map = Job.Tag Dim url As String = m.Get("URL") Upvote 0
Good: B4X: Job.Tag = Array(ImageView.Tag, URL) Dim Data() As Object = Job.Tag Dim imageTag As Object = Data(0) Dim url As String = Data(1) Better: B4X: Job.Tag = CreateMap("ImageView": ImageView.Tag, "URL": URL) Dim m As Map = Job.Tag Dim url As String = m.Get("URL")