This sounds great, but I am not sure how to get the object ID for the relevant objects? I was hoping to use the qNum property as that was supposed to be unique, and it was one of the fields in the first (parent) form so I knew I could pass it to the second (child) form.
In “Save object” block mark check box to return a object contains property of objectID
Also to get record’s objectId use “Load Table objects” block with “where clause” property. Search with the Where Clause
With “Load Table objects” block you can find you record by “formQNum” and get this objectId
I am still working on this, and had no luck yet! To make it simpler, I have moved both forms to one page and I am just hiding the work item form until it is needed.
I am still getting [object Object] as the parentProject, which from what I am understanding from what I have been told earlier should be the objectID of the parent (ProjectIndex) object?
This is the latest version of my logic:
Parent object creation:
Thanks! I’ve fixed this now, but it still doesn’t work. I now don’t even get the [object Object] in the Parent Project field of the Work Item form.
Please understand that our support can focus on issues related to specific APIs, specific codeless blocks, functions in console. Digging into customers logic and figuring out problems in your app is not part of the support charter. Please use facilities available to you to debug the problem such as capturing debug and logging information to understand where the problem is, but I wanted to set the expectation that this is not what the support team does.
Thank you, I appreciate the clarification. Specifically at the moment I just need to know why the Save Object in Backendless block does not seem to be returning a value, specifically the new object’s objectID? I either get nothing, or I get the value [object Object].
Okay, so I have put a Print in there, and nothing came up when I clicked on the button. It created an object, but no log appeared. So I have put a Print with a set output (hello) at the top of the click event, and that doesn’t appear either.
If your logic is in UI Builder, print is going to Dev Tools(usually is F12 key).
Also, the problem with [Object object] occurs when you mutate an object to a string. I think it’s happened with your parentProj.
What I see in your app:
When you set parentProj to Form Data, and bind it to input. You see [Object object] because DOM inputs can work only with strings, and he forced mutation.
Here you transform a string into an object. That can work only if a string is valid JSON. But you try to transform [Object object] or an empty string, what not be a valid JSON.