PhoneCall as part of a process flow (RDMLX + Offline)

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

PhoneCall as part of a process flow (RDMLX + Offline)

Post by MarcusLancaster »

Hi all.

I'm trying to incorporate the PhoneCall operation with a "flow" of user activity in an RDMLX Offline app. This works to a certain extent (in that I can initiate the call) but on completion of the phone call the user is left in the native iPhone telephone app. The user has to then manually navigate back to the LR app to continue where they left off.

The concept I'm aiming for here is that the user selects a customer record from within the app, and the PhoneCall operation is initiated. When the call is complete I'd like to be automatically routed back to LR to show the user a "fill in details of the conversation" form where they can record details of that call. A nice to have would to be able to record the length of the call...

I've tried initiating the PhoneCall from javascript linked to a button press, and that initiates the call, but any subsequent steps in the Javascript to initiate downstream form opens etc are either ignored, or happen immediately and not after the phone call is completed.

I wonder if anybody has done anything like this?

Cheers.

Marcus.
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: PhoneCall as part of a process flow (RDMLX + Offline)

Post by MarcusLancaster »

As an aside - if I replace the PhoneCall, with a SendTextMessage, even though I'm composing the text message, subsequent Javascript activity waits for the text message to be sent. So in that situation, it does give me what I need.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: PhoneCall as part of a process flow (RDMLX + Offline)

Post by MarkDuignan »

Not possible on iOS.
Making phone calls is a fundamentally async thing.
It is also an independent process – so there is not even the possibility of an onCompleted type of event.
Maybe it would work on Android – but it could get very messy with different versions - and it might work as a 'side-effect' and thus stop working in a future version.
Post Reply