Discussion:
Automated Form Pop
(too old to reply)
Tsk
2010-09-20 22:56:03 UTC
Permalink
We are attempting to find a methodology where a program outside Ax could
monitor for an event (i.e. incoming phone call to a user) then cause a
Dashboardish form to pop up within the user's session with information
related to the identified business relation.

If anyone has a suggestion, it would be greatly appreciated

Tim Peterson
--
Just another struggling developer
dude
2010-09-21 12:55:03 UTC
Permalink
Hi Tim

Here is a suggestion for you. It may not be the best approach, but at least
it is a suggestion, and I am pretty sure that it will work.

Step 1:

Using the business connector you can write phone number, account number and
whatever you like into an Ax table along with the users login id (assuming
that the external program knows the user).

Step 2:

Now you need to have the client monitoring the table. This can be done by
using the method infolog.addTimeOut(...) See
Classes\EventAlertPoller\schedulePoll for an example.

Step 3:

If there is anything for the current user in the table - do the boogie
woogie and delete the record or mark it as treated!

It might be a good idea to check the transaction level before popping up the
form...

Like for instance:

if (!appl.ttsLevel())
{
args.record(SmmBusRelTable::find(_account));
new menuFunction("smmBusRelTable", MenuItemType::Display).run(args);
}


Good luck :-)
Tsk
2010-09-21 17:11:03 UTC
Permalink
Thanks dude....
Will take a look at the class and see if we can implement it that way.
Thanks again for the help

Tim
--
Just another struggling developer
Post by dude
Hi Tim
Here is a suggestion for you. It may not be the best approach, but at least
it is a suggestion, and I am pretty sure that it will work.
Using the business connector you can write phone number, account number and
whatever you like into an Ax table along with the users login id (assuming
that the external program knows the user).
Now you need to have the client monitoring the table. This can be done by
using the method infolog.addTimeOut(...) See
Classes\EventAlertPoller\schedulePoll for an example.
If there is anything for the current user in the table - do the boogie
woogie and delete the record or mark it as treated!
It might be a good idea to check the transaction level before popping up the
form...
if (!appl.ttsLevel())
{
args.record(SmmBusRelTable::find(_account));
new menuFunction("smmBusRelTable", MenuItemType::Display).run(args);
}
Good luck :-)
Loading...