Siebel Portal Framework Guide > Delivering Content to External Web Applications > Common Operations >
Picking Records
To pick a value from a pick list and then save the value in the database, first you need to navigate to a screen and then submit three requests:
- Navigate to a screen.
- Get a pick list.
- Get the RowId of the record to pick.
- Write the record to the database.
GotoPageTab
First you need to navigate to a screen. For example: <EXEC PATH="/callcenter/start.swe">
<CMD VALUE="GotoPageTab" NAME="SWECmd">
<ARG NAME="SWEScreen">Accounts Screen</ARG>
<ARG NAME="SWENeedContext">false</ARG>
<ARG NAME="SWEBID">-1</ARG>
</CMD>
<INFO NAME="SWEC">12</INFO>
</EXEC>
EditField
To return the pick list using the EditField method, you must define arguments that identify the applet, view, and field on which the pick list is based. For example: <EXEC PATH="/callcenter/start.swe">
<CMD VALUE="InvokeMethod" NAME="SWECmd">
<ARG NAME="SWEApplet">Account Entry Applet</ARG>
<ARG NAME="SWEW">0</ARG>
<ARG NAME="SWEView">Account List View</ARG>
<ARG NAME="SWERowId">1-6</ARG>
<ARG NAME="SWEField">Currency</ARG>
<ARG NAME="SWEDIC">true</ARG>
<ARG NAME="SWENeedContext">true</ARG>
<ARG NAME="SWEH">0</ARG>
<ARG NAME="SWEReqRowId">1</ARG>
<ARG NAME="SWESP">true</ARG>
<ARG NAME="SWEMethod">EditField</ARG>
</CMD>
<INFO NAME="SWEC">9</INFO>
</EXEC>
PickRecord
The PickRecord method returns the RowId of the record to be picked. For example: <EXEC PATH="/callcenter/start.swe">
<CMD VALUE="InvokeMethod" NAME="SWECmd">
<ARG NAME="SWEApplet">Currency Pick Applet</ARG>
<ARG NAME="SWEView">Account List View</ARG>
<ARG NAME="SWERowId">0-5129</ARG>
<ARG NAME="SWENeedContext">false</ARG>
<ARG NAME="SWEReqRowId">1</ARG>
<ARG NAME="SWEP">14_Account Entry Applet9_EditField3_1-68_Currency1_1</ARG>
<ARG NAME="SWEMethod">PickRecord</ARG>
</CMD>
<INFO NAME="SWEC">1</INFO>
</EXEC>
NOTE: The value for the SWEP argument can be found in the XML response from EditField method.
WriteRecord
The WriteRecord method writes the record to the database. For example: <EXEC PATH="/callcenter/start.swe">
<CMD VALUE="InvokeMethod" NAME="SWECmd">
<ARG NAME="SWEApplet">Account Entry Applet</ARG>
<ARG NAME="SWEView">Account List View</ARG>
<ARG NAME="SWERowId">1-6</ARG>
<ARG NAME="SWENeedContext">true</ARG>
<ARG NAME="SWEReqRowId">1</ARG>
<ARG NAME="SWEMethod">WriteRecord</ARG>
</CMD>
<INFO NAME="SWEC">2</INFO>
</EXEC>
|