Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
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>
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="SWEView">Account List View</ARG>
<ARG NAME="SWERowId">1-6</ARG>
<ARG NAME="SWEField">Currency</ARG>
<ARG NAME="SWENeedContext">true</ARG>
<ARG NAME="SWEReqRowId">1</ARG>
<ARG NAME="SWEMethod">EditField</ARG>
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>
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>
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel Portal Framework Guide Published: 09 September 2004 |