Properties Editor of an API Action step is malfunctioning

OS info

  • Operating System : Windows 10.0.18363
  • Wappler Version : 2.8.2

Problem description

When configuring the Input Data of an API call, I am able to input the Name and the Value of the first parameter. After that, the table is like “locked” and the Value I entered is lost.

Steps to reproduce

  1. In the server action Action Steps area, enter an API Action.
  2. Configure the ID, the URL, and the Method
  3. In the Input Data table (or Headers table), click on the Plus button to add a row
  4. Insert the name of the parameter
  5. Click on the “bind” button in the Value cell
  6. Bind a value to the parameter name
  7. Click on the Plus button to add another row.

What I see is that the value in Row 1 disappeared AND that I cannot enter anything under Name in row 2.
If I try to go back to Row 1, I can no longer edit the Name and the “bind” button under value no longer appears. Double-clicking on a cell in the table does nothing, as if it were “locked”.

Note:
I opened the server action file (Right click on its name, select Open In Editor) and the opened file shows that the variable whose name is on my first row is there but the value is empty.

I added the contents manually in the editor for a few of the parameters.
I saved and went back to the Properties and saw that what I entered is there.
But as soon as I click on the Plus button, the Value of the last parameter disappears and the table is “locked” again, i.e. I can no longer add or edit anything in it.

Code in the Editor’s

{
    "name": "api1",
    "module": "api",
    "action": "send",
    "options": {
      "url": "https://$_SERVER['HTTP_HOST']/dmxConnect/api/Payments/AddPayItems.php ",
      "method": "POST",
      "data": {
        "Ds": ""
      },
      "headers": {
        "Ds": ""
      }
    },
    "output": true
  }

Hope this info helps,

Alex

Oh bad news… :frowning:

I wanted to make 2.8.2 my reliable monthly Wappler update, but I really really need this feature to be working right now…

Can someone let me know if there is a workaround or if the problem only happens in certain situations?

try switching the experimental options off

@aschoijett, does that fix it? I don’t want to have to go through the process of backing up, installing them doing it all in reverse if it is still not going to work!

I found that I can edit the file with the editor and set the parameters that way. I can see in the Properties that the parameters appear, but I did not test the outcome of doing that (i.e., if the API call really works after configuring it that way)

I’d prefer not to go down to editing the php… did you try George’s suggestion to turn off experimental options and then see if you can set more than one item via the user interface?

And is the problem just with the “Input Data” entry, or with Headers too?

Thanks for your help Alex!

Antony.

Hi,
I switched the Experimental Options off and I’m happy to report that the problem does not happen. I will leave that off from now on. I switched that option on because I wanted to see the new UI and be able to provide some feedback on it, but then I forgot to turn it off!

With the experimental mode on, the problem occurs both in Input and and Headers. With experimental mode off it does not occur in either.

Hope this helps,

Alex

3 Likes

Thanks Alex! :slight_smile:

This will be fixed in the next update.

1 Like

This has been fixed in Wappler 2.8.4

1 Like

This topic was automatically closed after 46 hours. New replies are no longer allowed.