-
Dario L. replied to the topic How to return date/datetime fields as ISO8601 in the forum REST Web Services 1 year, 2 months ago
Thank you for the answer.
So this means the only feasible way to convert said fields is by looping through each field, figure out if its type is date, then call that function for each record on that field(s)?
I was hoping for a more integrated solution, but if there’s nothing else available I guess I’ll have to cope with the “manual” conversion overhead. -
Dario L. started the topic How to return date/datetime fields as ISO8601 in the forum REST Web Services 1 year, 2 months ago
Hi,
I’m currently working with Omins restful services and I noticed that if the method return type comes from an Omnis list/row, eventual date fields are not being automatically converted into ISO8601. Is there a way to achieve this behavior?
This also happens with OJSON functions (e.g. $listorrowtojson(), etc)Thank you
-
Dario L. replied to the topic Euromnis 2018 in progress in the forum News 2 years, 3 months ago
Hi,
Are the resources used at the convention (slides, notes, etc) publicly available? -
Dario L. replied to the topic Print two report on the same page in the forum Omnis General Coding 2 years, 6 months ago
I’ve never used it before but you can try it by adding this line of code into your report’s construct method:
Do $cinst.$repeatfactor.$assign(2)
-
Dario L. replied to the topic Nested lists/rows not being properly initialized? in the forum Omnis General Coding 2 years, 6 months ago
Thanks for the answer,
So I was right, the rows can’t be initialized implicitly when created as list/row fields.Thank you for your workaround, I came up with something similar so I think it could be a good idea to post it along with yours:
Clear list (Hash lists) ;; better safe than sorry
Do iRow.$cols.$add("ID";kInteger;k32bitint)
Do…
[Read more] -
Dario L. replied to the topic Problema di stampa in the forum Forum di Omnis in Italiano 2 years, 6 months ago
Sono un pò in ritardo, ma hai già provato ad impostare $pagesetupdata al valore predefinito, anzichè cancellarla?
Calculate $cinst.$pagesetupdata (verifica se la notazione usata è corretta) as $root.$prefs.$pagesetupdata
Oppure un’altra possibile soluzione è quella di impostare direttamente la proprietà $loadpagesetup della classe del report a falso
-
Dario L. replied to the topic Problem with date format in the forum Omnis General Coding 2 years, 6 months ago
Hi,
I think this is what you need:Calculate sessionObj.$emptydateisnull as kTrue
-
Dario L. started the topic OJSON.$listotrowtojson() in the forum Omnis General Coding 2 years, 6 months ago
Hi all,
Is it possible to use the function OJSON.$listorrowtojson(), with the possibility to treat each found list as an array of objects (each line converted to an object), instead of an array of arrays?There is a similar function, OJSON.$listtoobjectarray(), which does exactly this but I can’t use it if I want to convert a row with nested…[Read more]
-
Dario L. replied to the topic Nested lists/rows not being properly initialized? in the forum Omnis General Coding 2 years, 6 months ago
errata corrige: “This way I can create a list and a row within a row variable”
-
Dario L. started the topic Nested lists/rows not being properly initialized? in the forum Omnis General Coding 2 years, 6 months ago
Hi all,
Please have a look at this little chunk of code:;iRow is an undefined Row variable
Do iRow.$cols.$add("List";kList)
Do iRow.$cols.$add("Row";kRow)
This way I can create a list and a row within a list variable. This works without problems.
Now I want to define the inner list and row just created:Do…
[Read more] -
Dario L. replied to the topic bintobase64() in the forum Omnis General Coding 2 years, 9 months ago
Thank you.
I couldn’t manage to come up with your solution and I think it is actually a good workaround, although not the best in terms of performance.I’ll keep experimenting with it, at least now i know how to put it to good use. 🙂
Let’s hope we will receive an official statement regarding this function’s behavior and correct usage.
For…[Read more]
-
Dario L. replied to the topic bintobase64() in the forum Omnis General Coding 2 years, 9 months ago
Hi, thanks for your answer.
Yes, lBinVar is a generic binary variable, whereas lCharVar is a character value (of proper length).What bugs me is that the bintobase64() function seems to always return a binary variable rather than a char(string). I think this is wrong since a conversion to base64 is supposed to return a string..
So i thought that…[Read more]
-
Dario L. replied to the topic bintobase64() in the forum Omnis General Coding 2 years, 10 months ago
Relevant info: i’m using OS 8.15
-
Dario L. started the topic bintobase64() in the forum Omnis General Coding 2 years, 10 months ago
Good morning,
I can’t seem to find a way to get this recently introduced function to work properly.If I write down something like this:
Do bintobase64(lBinVar) Returns lCharVar
or
Do bintobase64(“static string”) Returns lCharVar
All I get is a conversion error (binary to char error, which is actually strange on its own since…[Read more]
-
Dario L. became a registered member 2 years, 10 months ago
- Load More