Case: Associate the user ID and ID of the previously developed Flex website with the user login System
1. Locate the text to be associated and enter the tree directory.
2. Save the ID and user ID returned by login as a parameter.
3. In the response parameter text box of the pop-up AMF function property, write the parameter name login:
After you click "OK", the returned value of the request will be saved in the login parameter, and the association is complete (but because login saves the returned data, you need to process the data, find the data we need)
4. Use the lr_xml_get_values () function to process the returned XML.
Click the response button to enter the return mode. Click Display in XML combined mode to find the returned home of the request, as shown below:
5. Right-click the string tag of the returned data and select Save value in parameter from the shortcut menu to save the data under this string.
Name: Custom parameter name. The user saves the returned value.
XML Source: The parameter name associated with the previous step
XPath query: the node associated with {login} to write data.
Click OK and the script is as follows:
6. query/amfpacket/messages from the {login} parameter through the lr_xml_get_values () function? The value under the message/string node. Save the result to the paramvalue_string parameter.
Paramvalue_string: {"Header": [{"Instruction": "10002008", "classcount": "", "remark": "login"}], "body": {"result": "135586, 1b7a193f1b51f64039d8093f764f9a86 "}}
7. Since the data we want is 135586 and 1b7a193f1b51f64039d8093f764f9a86, the following uses the lr_save_var function to extract the two data segments.
Lr_save_var (lr_eval_string ("{paramvalue_string}") + 90,6, 0, "login1 ");
Lr_save_var (lr_eval_string ("{paramvalue_string}") + 97,32, 0, "login2 ");
Where: "{paramvalue_string}": truncates characters from this parameter
+ 97: indicates the number of values starting from the 97-bit offset in paramvalue_string.
32: indicates the number of data entries starting from Position 98. A total of 32 bits are obtained.
0: do not know what it means. The default value is 0.
Login1 and login2: indicates that the truncated characters are stored in this parameter.