Nezla · Dec 4, 2023 go to post

Thanks Enrico yes the JSON is fixed but what I'm trying to say is that  Set dynOBJ = {}.%FromJSON(pInput) is raising a compilation error in Ensemble 2014 and maybe I can use   Set dynOBJ = ##class(%Object).%FromJSON(pInput) instead ?
 

Thanks

Nezla · Dec 4, 2023 go to post

Thanks Enrico, I was so focused on my end of code and I didn't notice the wrong JSON that my client is sending, but BTW my client is running Ensemble 2014 and Set dynOBJ={}.%FromJSON(pInput) is raising an error maybe this is one of the latest versions Set dynOBJ = ##class(%Object).%FromJSON(pInput) doesn't raise errors so will try that ?
but in this case does my client need to send with Get or Post action?


    
 
Thanks 

Nezla · Oct 25, 2023 go to post

Sorry Ashok this code didn't work, my globals could set at all maybe because in the code it's locked before been set, will put some traces and see where it's stopping

tstart if staten["IUDX" { lock +^IudexNqlInByte(1):0 if $test{ set IudexNqlInByte(1,inc)=obj.%Id() lock -^IudexNqlInByte(1) } } else { lock +^ToshibaNQLIn(1):0 if $test { set ^ToshibaNQLIn(1,inc)=obj.%Id() lock -^ToshibaNQLIn(1) } } tcommit   

Nezla · Oct 24, 2023 go to post

Yes but the thing is that even deleting the lock from Terminal doesn't seems to work

Deleted lock for  ^AlliedOneNQLIn refreshed the locks page and all the locks are still there ?

Nezla · Oct 24, 2023 go to post

I thought that tcommit will delete the locks ?
I think I tried deleting lock using lock -^Myglobal before and didn't work even from the Terminal will try and see

Thanks Ashok 

Nezla · Oct 23, 2023 go to post

Thanks, I've applied the following which I'm guessing it should release the each lock after 2 secs but as I checked in management portal the some locks are still there for the last couple of hours, so am I missing something?

Nezla · Jun 16, 2023 go to post

Do you know of any Activex that I can use, the one I'm using is a pretty old and doesn't work on newer versions ?

Thanks

Nezla · Jun 6, 2023 go to post

BTW is there a way to delete files where their name starts with..   eg. all file start with Myfile*?

Thanks

Nezla · Jun 6, 2023 go to post

Thanks Julius I found the problem, the reason why the directory couldn't be removed because the command before was holding it because it's deleting a file inside the directory the last command is trying to do.

so  ##class(%File).Delete(FileZip) is deleting a file inside the directory "FileUnZip"  (##class(%File).RemoveDirectoryTree(FileUnZip))

I've removed the first call and now the second is execute Ok 

Thanks

Nezla · May 25, 2023 go to post

I know that but your samples doesn't show me how to do that which is I'm after :)

Thanks anyway I appreciate your help 

Nezla · May 25, 2023 go to post

Thanks Ben I'm already aware of the controls that's why I mentioned them in my post, what I'm after is a sample code in how to upload the image file stream it them display it in the image control.

Thanks

Nezla · May 25, 2023 go to post

So just something like the attached, Upload on the top and image showing below it once uploaded

Thanks

Nezla · May 25, 2023 go to post

Do I have to use REST APIs? I'm saving images locally in a class (filestream) then populating it back in an image control I guess.

Thanks

Nezla · May 10, 2023 go to post

Thanks Stephano, Yes it's just fixed rows/Columns, I'm just looking to align my textboxes & labels as in my screenshot above so think of it as tables in HTML but I'm not sure if I can have borders using hgroup & vgroup?

Thanks   

Nezla · Apr 28, 2023 go to post

Thank you very much, this answer my question 

Nezla · Apr 6, 2023 go to post

Thanks you very much Timo that worked but this is strange it working in the dropdown but if I ran the same query in SMP !, what the first parameter means by empty which field is empty (null)?

Thanks

Thanks

Nezla · Mar 20, 2023 go to post

Thanks Mac that's more or less what I did but didn't use LinkToFile, rather used Filename 

Set stream=##class(%FileCharacterStream).%New()
Set stream.Filename=FileAfUnZip
While 'stream.AtEnd {
Set ReadFFTData=stream.ReadLine()

}
 

Thanks

Nezla · Mar 20, 2023 go to post

Thanks Dmitry, and actually changing to code to copy to filestream then read from it improved a lot, down to 1 sec 

Thank again