25184 results


  • Comment:

    Agreed - GetErrorCodes() is the right thing to do from an I18N perspective.

    Comment to the post "Try catch block I usually use in COS" by Mike Henderson, 16 April 2016


  • Comment:

    Thanks for pointing out the toolbar button. 

    It would be nice if this was also a menu-item (preferably with hotkey) for those of us that don't use toolbars.

    Comment to the post "How to manually compile file / package" by Mike Henderson, 15 April 2016


  • Question: Changing the browser used for Atelier Diagram Editor

    Atelier, Business Process (BPL), Data Transformation (DTL) Language Undefined I installed Atelier on Windows in order to take a look at how the BPL and DTL graphical editors accessible via the "Open diagram editor" action work. The diagram ...

    Post by Ondrej Hoferek 20 April 2016


  • Answer:

    There are good options for what you want available in 2016.2, and possibly better answers for SQL-> JSON after that. In 2016.2, %RegisteredObject also supports $toJSON and $fromJSON, so there won't be any need to use %ZEN.Auxiliary.jsonProvider to ...

    Answer to the post "JSON, Cache and Date/Time" by Timothy Leavitt, 20 April 2016


  • Comment:

    Timothy! Thanks for sharing this!

    It' can be a standalone post as "Error and resource handling in large Caché ObjectScript project".

    Thank you!

     

    Comment to the post "Try catch block I usually use in COS" by Evgeny Shvarov, 16 April 2016


  • Comment:

    Ok, ok, good point about PPG that it will remove reference to the object. And that simple local variable will work better, because it will not serialize OREF to string.

    And the only case when it was workng for me - then the parent call is...


  • Comment:

    >$SYSTEM.Status.GetErrorText(sc)["Something"

    Would not always work correctly in applications with users requesting content in several languages (for example web app). Why not use error codes?

    If $SYSTEM.Status....

    Comment to the post "Try catch block I usually use in COS" by Eduard Lebedyuk, 16 April 2016


  • Comment:

    > you could not implement singleton which will be working across jobs, only for this same process;

    Storing something in %/PPG would not work across jobs too. Singleton is a single-thread anyway.

    > to share instance to teh...


  • Comment:

    How would you have done it? It's 35 lines of code in total, 25 if we remove persistence (because singleton does not actually has persistence, but OP seemed to need it).


  • Comment:

    Here are assumptions:

    - you could not implement singleton which will be working across jobs, only for this same process;

    - to share instance to teh object you could emply %-named variable or process-private global.

    Here is the...