startProcessWithInit problems

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Pomegranate
Posts: 33
Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar

startProcessWithInit problems

Post by Pomegranate »

Hi everyone,

I'm trying to use startProcessWIthInit on a custom query and I'm running into some problems, here is my Custom Query HTML

Code: Select all

<input id="value{ID}"></input>
<input id="ID{ID}" type="hidden" value="{ID}"></input>
<br/>
<div class="submitButton" onclick="AwareApp.startProcessWithInit('AddToCart','main','Cart','ProductID='+ID{ID}.value+'@@Quantity='+value{ID}.value+'')">SUBMIT</div>
</div>
Basically, I have a form field where a user can input a number and a hidden field that contains the ID of that particular attribute and I'm trying to create a different business object with the data in context.

This succesfully creates new records, but it creates 2 exactly same records at once and only the first Attribute and its Value gets populated, not the second one.

This is the test log, for some reason, the second attribute and value is not being put into context,
Image

This is what's rendered in the browser
Image

I've tried using @, @@, ;, & as delimiters but nothing works, any help would be appreciated, thanks in advance.
Post Reply