Quantcast
Channel:
Viewing all articles
Browse latest Browse all 44024

Wiki Page: How can I customize data returned by the function SiebelTokenApplet within Siebel 7 web scripts?

$
0
0
To aid customisation of Siebel 7 web scripts, the possible values for rowids and other dynamic data are automatically parsed. The particular value returned to the server during recording is extracted from the parsed data using the function SiebelTokenApplet. To customise this value you can randomise the second parameter of SiebelTokenApplet which represents the number of the appropriate token within the parsed data (first, second, third etc). An example of working with these values is below: // recorded script var gsRowValArray_001 : string; // 4*Val14*Val24*Val34*Val48*Prospect4*Val6; begin WebParseDataBoundEx(gsRowValArray_001, STRING_COMPLETE, "`v`", 1, "`v`", WEB_FLAG_IGNORE_WHITE_SPACE, 1); // Entries of a combo-box are downloaded and parsed // into the variable gsRowValArray_001: WebPageForm(...); // later on: // The value which occurs in gsRowValArray_001 is used in a form: WebPageForm(..., SALES_ENU_START_SWE033); dclform SALES_ENU_START_SWE033: // more form fields "s_2_1_55_0" := SiebelTokenApplet(gsRowValArray_001, 4), // value: "Prospect" // more form fields In this example, the entries in a combo-box on the page are parsed into gsRowValArray_001 . The values are, in this example: Val1 Val2 Val3 Val4 Prospect Val5 In the form the function SiebelTokenApplet(gsRowValArray_001, 4 ) extracts the 5th token which is "Prospect". Indices are zero-based. To randomise therefore we can change the second parameter of SiebelTokenApplet to a random number: SALES_ENU_START_SWE033: // more form fields "s_2_1_55_0" := SiebelTokenApplet(gsRowValArray_001, RndUniN(0..5) ), // value: "Prospect" // more form fields It is important to check how many combo-box entries are valid to correctly specify the range for RndUniN. In this case we assume that all 6 elements are valid. Note: If you wish, you can replace the function SiebelTokenApplet with a known valid value as follows: SALES_ENU_START_SWE033: // more form fields "s_2_1_55_0" := "Valid value", // value: "Prospect" // more form fields For additional information please review the section Dynamic data in the chapter Loadtesting Siebel 7 in the SilkPerformer Advanced Concepts book: START | PROGRAMS | Silk | SILKPERFORMER x.x | DOC | SILKPERFORMER ADVANCED CONCEPTS BOOK Old KB# 18500

Viewing all articles
Browse latest Browse all 44024

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>