HankFay
2017-03-08, 14:27
Lianja.spawnApp conveniently allows running a .dbo (compiled prg) directly, as so:
lcDbo = "myprg.dbo"
lcPathedDbo = set("dire") + lcDbo
Lianja.spawnApp(lcPathedDbo)
Here's the challenge: I'm launching this from a web service (.rsp page application/json), and need to have the .dbo accept a parameter so that it processes a particular instance based on data pointed to by the parameter.
Although SessionStorage might look like an answer, that has the same issue: I would need to communicate the "key" for the .dbo to access.
Any suggestions?
thanks,
Hank
PS: oops, just discovered that the .dbo isn't being run. Filing a bug. If it's being run, I might have a solution using spawnid() on the calling side and getid() on the running side to morph into the sessionstorage key.
lcDbo = "myprg.dbo"
lcPathedDbo = set("dire") + lcDbo
Lianja.spawnApp(lcPathedDbo)
Here's the challenge: I'm launching this from a web service (.rsp page application/json), and need to have the .dbo accept a parameter so that it processes a particular instance based on data pointed to by the parameter.
Although SessionStorage might look like an answer, that has the same issue: I would need to communicate the "key" for the .dbo to access.
Any suggestions?
thanks,
Hank
PS: oops, just discovered that the .dbo isn't being run. Filing a bug. If it's being run, I might have a solution using spawnid() on the calling side and getid() on the running side to morph into the sessionstorage key.