Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#829934
Hello,
I'm trying to use PMFSendVariables() to Send some variables to an existing Grid but I'm facing a small issue.
When I use the below line, the existing data in the grid is totally deleted and replaced with that value!
Code: Select all
@=SetInitiatives[2]['InitiativeFlag']= "1";
@@result = PMFSendVariables(@@ApplicationUID,array('SetInitiatives' => @=SetInitiatives));
How can I set the value to the filed: "InitiativeFlag" = "1" in the grid without affecting the existing values?

Thanks
#830020
Hello Kamil123


if you pass a new array there's no variable to reference, the functions used creates a new one

don't use
Code: Select all
MFSendVariables(@@ApplicationUID,array('SetInitiatives' => @=SetInitiatives));
thinking your PM array is a PHP array.

always create a PHP variable and pass it to the function
Code: Select all
  $vars = array("SetInitiatives" => @@SetInitiatives);
    PMFSendVariables(@@APPLICATION, $vars);

Thanks for the link, amosbatto! I was searching fo[…]

Hello Please can you help me with the place where […]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 versi[…]

AI bot development involves creating intelligent b[…]