Laddawn.com : Save Share Cart Event

Overview:  When the user shares a cart, we need to store what the screen looked like when they hit send. This will be accomplished by essentially storing the entire HTML string for the entire share area in one field in the file.

Files involved:

Name: SHAREDCARTS.USR

Structure: Same as SHAREDITEMS.USR

Name: SHOPPINGCART.USR

Structure: use F24 (currently named UNUSED) to be SHARE.IDS. Make it a multi-valued field alpha numeric field.

 

Process: Use RPC$SHAREDITEM_SAVE as an example.

Input Parameters:

  • COMPANY.ID
  • CONTACT.NBR
  • CART.NAME
  • TO.ADDRESS
  • TO.NAME
  • CC.ADDRESS
  • CC.NAME
  • SUBJECT
  • CUST.YN
  • P.VALUE

 

Output Field Names:

  • SERVER.STATUS
  • ERROR.MSG
  • ERROR.CODE
  • SHARE.ID

 

Get SHARE.ID from SYSCON, NEXT.SHAREDITEM.LAD

Build record to save to SHAREDCARTS.USR

Update SHOPPINGCART.USR<24> by appending SHARE.ID to the list of values.

Return SHARE.ID to UI in RETURN.VALUE