Page 1 of 2
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 7:45 pm
by supriya hirurkar
Hello Max,
Thanks for all the help till now. I am currently facing an issue with Rest POST method and also had some concerns regarding the UI components. They are as follows:
REST POST:
I want to configure a REST POST to add a new custom object entry.
Setting: URL - {instance_url}/services/data/v27.0/sobjects/customObjectc/
Method: POST, Data type and content type: JSON
Request: Authorization (set as a header), instance_url, and 2 custom fields
And, I end up getting 'No such column 'instance_url' on sobject of type customObjectc'
GUI issues:
I am not able to find any way to set x, y co-ordinates and dimensions of my UI components. CSS modification is certainly a way but still wanted to confirm if I am missing out on anything.
I have a form where I put text-area immediately below a drop down, one has rounded corners and the other one has squared corners. Is there any way through configuration that I make the corners look-alike?
Nav-bar flexibility: I found it difficult to resize the nav-bars as I wanted. Is there any way you will incorporate mouse-dragging for resizing the shape of the components?
I look forward to the reply. Thanks again
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 8:12 pm
by maxkatz
Let's try one issue at a time.
Where is the instance_url coming from? Is it coming form Settings service? If yes, is it set in the service?
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 8:17 pm
by supriya hirurkar
Hey Max, No, I am not using Setting Services. instance_url and the token are my local variables
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 8:21 pm
by maxkatz
Does it work if you pre-set the URL directly in the service?
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 9:22 pm
by Serhii Kulibaba
Hello!
[quote:]I want to configure a REST POST to add a new custom object entry.
Setting: URL - {instance_url}/services/data/v27.0/sobjects/customObjectc/
Method: POST, Data type and content type: JSON
Request: Authorization (set as a header), instance_url, and 2 custom fields
And, I end up getting 'No such column 'instance_url' on sobject of type customObjectc[/quote]
You can create REST Settings from "Create new"-"Service"-"Settings (REST settings)". Add here any params, that you'll use as {param_name}. They can be set later as usual through maping query parameters.
[quote:] I am not able to find any way to set x, y co-ordinates and dimensions of my UI components. CSS modification is certainly a way but still wanted to confirm if I am missing out on anything.[/quote]
You can't set x,y coordinates and dimensions in Appery UI
[quote:]
I have a form where I put text-area immediately below a drop down, one has rounded corners and the other one has squared corners. Is there any way through configuration that I make the corners look-alike?
[/quote]
Use css attribute border-radius: 0px; to set squared corners or border-radius: 10px; to set rounded;
[quote:]Nav-bar flexibility: I found it difficult to resize the nav-bars as I wanted. Is there any way you will incorporate mouse-dragging for resizing the shape of the components?[/quote]No, you can't.
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 9:42 pm
by supriya hirurkar
Hey Max,
Yes, it works when hardcode the url instead of the local variable. Surprisingly, with other GET service I have created {instance_url} is working fine. It will be nice if you will be able to justify.
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 9:57 pm
by supriya hirurkar
Thanks Sergiy for your reply. Do you plan to add any additional elements or facilities in your UI editor?
Issues with Rest POST method and designing GUI
Posted: Mon Sep 09, 2013 10:28 pm
by maxkatz
If it works with hard coded URL, check that the value from local storage gets set into the URL.
Issues with Rest POST method and designing GUI
Posted: Wed Sep 11, 2013 6:14 am
by maxkatz
Which UI components would you like added?
Issues with Rest POST method and designing GUI
Posted: Wed Sep 11, 2013 5:55 pm
by supriya hirurkar
Hello Max, thanks for the reply.
I would like to see following features being added:
- a way to set x, y co-ordinates and dimensions of the UI
- mouse dragging /lifting to change the dimensions and positions of the components (currently, I think I just can change grids)
- flexible tabs