Search:

Type: Posts; User: Mike Peat

Page 1 of 67 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: What if the online help does not work (anymore)

    My 2¢: in Chrome, right-click anywhere on the page; select "Inspect"; right-click the refresh button (mine says: "Reload this page") and select "Empty Cache and Hard Reload" (then you can close the...
  2. Re: What if the online help does not work (anymore)

    Vincent

    In Chrome I did the "Empty Cache and Hard Reload" thing, but it still says "DataFlex 2020 Help - Beta 1". :(

    But then so did Firefox, Safari, Opera and Brave.

    Mike
  3. Replies
    2
    Views
    285

    Re: RESTful and Securing the API

    Anders

    If you create the WebApp as a "standard" WebApp, you get all that stuff anyway. It is only if you create it as a "Basic Web App" that you have to handle your own password stuff.

    In any...
  4. Re: REST - at what method in teh DD can I snap the input from a POST to modify it

    Anders

    Actually, I tend to think that business rules like your's (have to supply an unused order number when creating, in this case) should always be enforced in the DD class.

    Putting them in...
  5. Re: REST - at what method in teh DD can I snap the input from a POST to modify it

    OK, I have fixed the "bug" in the library, I think. It could probably use more testing, but seems good.

    The new version can be found at:...
  6. Re: REST - at what method in teh DD can I snap the input from a POST to modify it

    Actually, not so clever Mike. :(

    It doesn't actually work, because of a mistake I've made in the design of the Library. My bad!

    The RequestDataJson message only both works once (once you...
  7. Re: REST - at what method in teh DD can I snap the input from a POST to modify it

    Anders

    Yes, you can augment the Procedure Create in the cRESTApiObject involved. Obviously you will need to Forward Send that if you want to take advantage of the inbuilt functionality, but...
  8. Re: REST Changing name on psCollname gives 'not recognised'

    Anders

    /kustomer isn't the same as /customer. Or am I missing the point?

    If you change the psCollName property, that will need to be reflected in the URL.

    So if you had it working with...
  9. Re: REST - POST one order plus some details - how to test in POSTMAN?

    Anders

    The Order_Number in the Order Detail POSTS is defined by the URL. You are POSTing to {whatever}/orders/2229/orderDetails (so the orderDetails collection of order 2229 in my example.

    Mike
  10. Re: REST - POST one order plus some details - how to test in POSTMAN?

    And yes, you only POST the actual data, as shown above.

    Mike
  11. Re: REST - POST one order plus some details - how to test in POSTMAN?

    Anders

    OK, if you are using my REST library, the way to do it is with multiple POSTS:

    Create the order, for instance:
    POST to https://test.unicorninterglobal.com:443/WDREDFU/api/orders,...
  12. Re: REST-library, Possible error in 'RequestFieldsList'

    I.e. it uses the "|" delimiter to parse the UrlParameter (i.e. the query string parameter) "fields" into an array of field names, which it then converts to integers for internal use.

    Mike
  13. Re: REST-library, Possible error in 'RequestFieldsList'

    Anders

    I'm not sure where it says:


    In general, you shouldn't need to use RequestFieldsList - it is part of the default functionality of the library - it just works if you are using the...
  14. Re: REST-library, Possible error in 'RequestFieldsList'

    Anders

    Reading this again, it strikes me you are kind of starting from the same place I did when I first worked on this stuff some years ago... and consequently covering the same ground.

    I...
  15. Re: REST-library, Possible error in 'RequestFieldsList'

    By default, if you don't add any using Send AddInstanceColumn, an instance will return all columns, while if you don't add any to a list (collection) by using Send AddListColumn it will return no...
  16. Re: REST-library, Possible error in 'RequestFieldsList'

    Anders

    Yes, the request fields should be the names of the fields: ?fields=customer_number|name|balance... etc. You shouldn't expect a (developer) user of your API to know the field numbers (that...
  17. Re: RESTful - controling what field should be exposed from a customer

    My last response:

    Anders - my REST Library does all of this for you.

    You can:


    Send AddExcludeColumn Field FlieName.Fieldname // to exclude a field
    Send AddReadOnlyColumn Field...
  18. Re: How to set Pre-emptive Authorization using Client Web Service

    Correct! :)

    Mike
  19. Re: RESTful - controling what field should be exposed from a customer

    Anders - see my response here.

    Mike
  20. Replies
    10
    Views
    591

    Re: Restful APIs with parameters

    Anders - my REST Library does all of this for you.

    You can:


    Send AddExcludeColumn Field FlieName.Fieldname // to exclude a field
    Send AddReadOnlyColumn Field FileName.FieldName //...
  21. Replies
    11
    Views
    512

    Re: OnRelationalPromptListError

    Håkan

    Have you tried (in the invoking object in the view giving the error):


    Procedure Prompt_Callback Handle hoPrompt
    Set peUpdateMode of hoPrompt to umPromptValue
    End_Procedure
  22. Replies
    10
    Views
    591

    Re: Restful APIs with parameters

    Anders

    I'd use (and in fact do use in my REST library) Get UrlParameter sParamName to sValue.

    I'd then possibly lowercase it (depending on circumstances).

    Mike
  23. Thread: apologies

    by Mike Peat
    Replies
    4
    Views
    462

    Re: apologies

    If we are in a hurry to get DF20 released we can just have you abducted (with apologies to the Mrs). ;)
  24. Replies
    10
    Views
    829

    Re: web services client class

    Edgar

    Why don't you try contacting someone who is already using the web service in question and ask them how they did it?

    As you can see from the answers here, DataFlex pretty much expects that...
  25. Re: How to use command in application.css (CSS)

    What I do is have <whatever>/cssstyle/application.css open in a browser tab, then whenever I've made changes to it I do a refresh on that tab before reloading my web app.

    Seems to work were other...
Results 1 to 25 of 1659
Page 1 of 67 1 2 3 4