Websydian v6.1 online documentationOnline documentation - Websydian v6.5


ImportSampleData Code


Copy and paste the code below into the designated edit point.

 

Edit Point Process XML document

 

|0 10 480004f8 Function: CommonXML.ReturnOffer.Item.GetFirstOccurrence
|1 Parent
|2 15 a0006ef Field: WSYXML/ParentElement
|3 <none>
|4 20 a0006d9 Value: WSYXML/ParentElement.NULL
|7 10 480004f8 Function: CommonXML.ReturnOffer.Item.GetFirstOccurrence
// Parent<ParentElement> <ParentElement.NULL>
|1 Input
|2 0 0 <none>
|3 Local/InputDocument
|4 0 0 <none>
|7 10 480004f8 Function: CommonXML.ReturnOffer.Item.GetFirstOccurrence
// Input Local/InputDocument
ª+1 Call CommonXML.ReturnOffer.Item.GetFirstOccurrence
ª+1 Go Sub Check error
ª+1 Set Local/InputDocument<ObjectElement> = CommonXML.ReturnOffer.Item.GetFirstOccurrence/Output<ObjectNode>
|0 10 480004f4 Function: CommonXML.ReturnOffer.Item.SingleFetch
|1 Input
|2 0 0 <none>
|3 Local/InputDocument
|4 0 0 <none>
|7 10 480004f4 Function: CommonXML.ReturnOffer.Item.SingleFetch
// Input Local/InputDocument
|0 10 48000133 Function: Data.DistributorA.Item.Update.InsertRow
|1 InsertData
|2 0 0 <none>
|3 ItemData
|4 0 0 <none>
|7 10 48000133 Function: Data.DistributorA.Item.Update.InsertRow
// InsertData ItemData
ª+1 While Local/InputDocument<ObjectElement> != <ObjectElement.NULL>
|0 10 480004f4 Function: CommonXML.ReturnOffer.Item.SingleFetch
|1 Input
|2 0 0 <none>
|3 Local/InputDocument
|4 0 0 <none>
|7 10 480004f4 Function: CommonXML.ReturnOffer.Item.SingleFetch
// Input Local/InputDocument
ª+2 Call CommonXML.ReturnOffer.Item.SingleFetch
ª+2 Go Sub Check error
ª+2 Set Local/InputDocument<ObjectElement> = CommonXML.ReturnOffer.Item.SingleFetch/Output<NextOccurrence>
ª+2 Cast ItemData<ItemID>, Data<CommonXML.ReturnOffer.Item.Fields.ItemID>
ª+2 Cast ItemData<MyName>, Data<CommonXML.ReturnOffer.Item.Fields.Name>
ª+2 Cast ItemData<MyPrice>, Data<CommonXML.ReturnOffer.Item.Fields.Price>
ª+2 Cast ItemData<Delivery Time>, Data<CommonXML.ReturnOffer.Item.Fields.DeliveryTime>
|0 10 48000133 Function: Data.DistributorA.Item.Update.InsertRow
|1 InsertData
|2 0 0 <none>
|3 ItemData
|4 0 0 <none>
|7 10 48000133 Function: Data.DistributorA.Item.Update.InsertRow
// InsertData ItemData
ª+2 Call Data.DistributorA.Item.Update.InsertRow
ª+2 Go Sub Check error
@@
 

Edit Point Handle error message

 

|0 4 6000033f Message: OBJECTS/Message
|1 <none>
|2 15 60000355 Field: OBJECTS/*Message text
|3 Environment
|4 15 60000355 Field: OBJECTS/*Message text
|7 4 6000033f Message: OBJECTS/Message
// <*Message text> Environment<*Message text>
ª+1 Dialog Message Message: OBJECTS/Message
@@
 

Pre Point Start load input document

 

|0 4 48000426 Message: ImportSampleData.ImportFile
ª+1 Format Message Message: ImportSampleData.ImportFile, Local/InputDocument<FileName>
@@