iOS Question What is the correct way of adressing a sub page for a common httpjob

vikingivesterled

Active Member
Licensed User
Longtime User
Made a code page with some subs for common HttpJob calls using the string TargetScreen to redirect returns to JobDone on originating page:
B4X:
Dim gbdmcbjob As HttpJob
Dim TargetScreen As String = "NamedPage1"
gbdmcbjob.Initialize("gbdmcbjob", TargetScreen)

In b4a I can just instead of saying Me substitute with the name of the sub page like in sample,
but in b4i that throws an error (added some logging to module HttpJob):

HttpJob-Complete-Target:NamedPage1
Error occurred on line: 42 (HttpUtils2Service)
Invalid component: NamedPage1

I notice that when using Me it comes up with:
HttpJob-Complete-Target:<b4i_main: (null)>
HttpJob-Complete-Target:<b4i_namedpage2: (null)>

But copying that don't work either:
neither: b4i_namedpage1
nor: <b4i_namedpage1: (null)>

What is the correct way of adressing the originating module as an object for a result throwback.
 
Last edited:
Top