go to post omer · Jan 28 in your snippet, myTable(name, counter)name and counter are the fields you want to look out in myTable? and thank you for your answers!
go to post omer · Jan 22 But the problem with version checking is that it only increments, what about the part that some updates needs to decrement the counter?
go to post omer · Jan 22 and at what point will i be able to see the actual data? I checked the stream on the Post/Pre hyperEvent/Http functions on the CSP page class but couldn't get to the stream itself, it seems i need to find the exact point where the stream is loaded?
go to post omer · Jan 22 The DOC link you sent doesn't show even if i login... So hard to see if this will help.
go to post omer · Jan 22 But what happens when i want to decrement it? the counter in my application can and will be decremented. if i use this it will only ever increment it.
go to post omer · Jan 20 The Traces won't do for me as i need to access the data before it is sent back to the client, Seeing the trace afterwards is not what im looking for...Also I couldn't find any method on the CSP.Page that provide the data i am looking for..
go to post omer · Jan 20 Just as @Enrico Parisi said, It seems this works for inserts but not for UPDATES which is what i am looking for here..
go to post omer · Jan 20 I don't think this will help, How would i get the counter from the Getter method? The counter is per row - i don't have a lot of rows that i can sum up, so this will not work...
go to post omer · Jan 16 I have tried overriding several of the Methods of CSP.Page, But it seems that %response comes empty.
go to post omer · Jan 15 Yes but that's not what I am after, I want to access the data im about to send in my code, so i can modify it, and run additional code on it.
go to post omer · Jan 13 And in case i just directly access globals?for example a simple code such as: s ^myTracker("onSomething") = ^myTracker("onSomething") + 1 would that line above be handled by intersystems safely or not?
go to post omer · Oct 29, 2024 I tried it, did not work, It seems that the code used to manually take and compile the parent class, And then compile the class we are on. This does not work as the Right now even if I manually take the parent class and compile it still won't work.scenario 1:when manually taking the parent class and trying to compile it, it would then compile its child and fail there (presumably because the child compiled in parallel to the parent causing the Method or Property undefined)scenario 2: when trying to compile the class with the "ckr" flag, it would tell us the class was compiled successfully but in reality the class won't be compiled as we go inside it in studio we see it required compilation still.
go to post omer · Oct 6, 2024 Hey after further testing I encountered a problem. When trying to run a routine from within a method using the terminal, it would execute the argument in our terminal scope and not in that classMethod context, For example: ClassMethod test(){ s arg = "asd" s routine = "say^hello(arg)"} then in terminal: s arg = "ddd"d ##class(something).test() output:dddand NOT asd as you would expect...any help on this topic?
go to post omer · Jun 27, 2024 Thx for the replay, 1. the problem with checking the header is that it can be toyed with, if someone changes header to say 1kb and sends 4mbs i will check header and let it pass...I will check about 2 and 3, thx! EDIT: checked about 2 - something like size property doesn't exist, the maximum you can do with a request is iterate through all the data inside and get its total *length of characters* which is still far from the request size in mbs