A requirement is to have a custom dialog box which will be called by Select Action or from workflow during status change for instance:
Below is the simplest workaround by creating a non-persisten attribute in primary object and use it in dialog then run your automation on it and do your logic to store/insert.
Step by step is as beLow:
1. add non persistent attribute in pr ojbect (NP_STATUSMEMO)
2. pr to pojust relationship: ownerid = :prnum and object='PR'
3. add signature: MYDIALOG and grant to maxeveryone
4. add actio menu and attach signature MYDIALOG as option
5. DIALOG IN pr.xml attached below, add required fields to display
6. write ALP for this attribute validate with below jython
-------------------------------------------------------
Below is the simplest workaround by creating a non-persisten attribute in primary object and use it in dialog then run your automation on it and do your logic to store/insert.
Step by step is as beLow:
1. add non persistent attribute in pr ojbect (NP_STATUSMEMO)
2. pr to pojust relationship: ownerid = :prnum and object='PR'
3. add signature: MYDIALOG and grant to maxeveryone
4. add actio menu and attach signature MYDIALOG as option
5. DIALOG IN pr.xml attached below, add required fields to display
6. write ALP for this attribute validate with below jython
-------------------------------------------------------
object: PR
attribute: NP_STATUSMEMO
vJustTable = mbo.getMboSet("POJUST")
line = vJustTable.add()
line.setValue("ownerid",mbo.getString("prnum"))
line.setValue("object","PR")
line.setValue("status",mbo.getString("status"))
line.setValue("DESCRIPTION",mbo.getString("NP_STATUSMEMO"))
-------------------------------------------------------
<dialog id="mydialog" label="my dialog">
<section id="1567883350896">
<textbox dataattribute="status" id="1567883430831"/>
<sectionrow id="1567883359616">
<sectioncol id="1567883366027">
<textbox dataattribute="prnum" id="1567883419910"/>
</sectioncol>
<sectioncol id="1567883367821">
<textbox dataattribute="NP_STATUSMEMO" id="1567892172806"/>
</sectioncol>
<sectioncol id="15678833596162"/>
</sectionrow>
</section>
<buttongroup id="mydialog_2">
<pushbutton default="true" id="mydialog_2_1" label="OK" mxevent="dialogok"/>
<pushbutton id="mydialog_2_2" label="Cancel" mxevent="dialogcancel"/>
</buttongroup>
</dialog>
No comments:
Post a Comment