Search:

Type: Posts; User: Mike Peat

Page 1 of 67 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Simple Struct Array Search Logic Question/Query

    Peter

    Yes, this has bitten me as well. I think DFSTRICMP only works on pure strings, not elements of structs. :(

    Mike
  2. Replies
    3
    Views
    2,136

    Re: DataFlex OAuth 2 component beta 2

    Samuel

    Yes.

    Mike
  3. Replies
    21
    Views
    366

    Re: OnConstrain on Web

    Because piNivel isn't a Web Property perhaps?

    Mike
  4. Replies
    6
    Views
    375

    Re: DirectoryList timeout?

    Jose

    It is an external function, so you can just do: Move (GetLasterror()) to iVar.

    It is defined in WinKern.pkg.

    Mike
  5. 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...
  6. 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
  7. Replies
    2
    Views
    338

    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...
  8. 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...
  9. 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:...
  10. 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...
  11. 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...
  12. 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...
  13. 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
  14. 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
  15. 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,...
  16. 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
  17. 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...
  18. 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...
  19. 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...
  20. 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...
  21. 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...
  22. Re: How to set Pre-emptive Authorization using Client Web Service

    Correct! :)

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

    Anders - see my response here.

    Mike
  24. Replies
    10
    Views
    597

    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 //...
  25. Replies
    11
    Views
    540

    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
Results 1 to 25 of 1663
Page 1 of 67 1 2 3 4