Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Data URL templating

    Is there any templating available for the addDataUrl (and others)?
    What I want to be able to do is include the id of the record being added in the url. Whats the best way of achieving that currently?
    Last edited by objects; 18 Dec 2008, 16:51.

    #2
    Been looking at overriding transformRequest() but from what I can see this only supports transforming the data sent with the url.

    Is there any way to implement dynamic url's?

    For example so a request to update a person with id 6 would use the request path "/person/6", and the updated fields passed as data.

    Comment


      #3
      Use dsRequest.setActionURL() (inherited method).

      Templated URLs is a good idea though, we'll look at that.

      Comment


        #4
        thanks for that, documented what I used here if anyone else is interested

        http://helpdesk.objects.com.au/java/how-do-i-generate-dynamic-urls-with-smartgwt-and-restdatasource

        Comment

        Working...
        X