+ Add post
Hi
Somebody know how determine, when working with a record in a Freedom UI page if it corresponds to a new record (new/copy)?
Thanks in advance
Regards
Julio Falcón
Like
Hello Julio,
const cardState = await request.$context.CardState; if (cardState == "add" || cardState == "copy") { // do something here }
Ryan
Ryan Farley,
Thanks Ryan, where did you find/get this kind of information?
Ryan,
In which kind of handler request I must introduce the code? I tried in crt.OpenPageRequest, but nothing happens. The code...MoreLess
Julio.Falcon_Nodos,
You would add this in the page you’re opening, not in the code that opens the page. What is the intent you’re trying to...MoreLess
Thanks Ryan, I'm also try using crt.HandleViewModelResumeRequest, but nothnig happens.
What I need is that when I open the page "Air Equipment/NdosPage_3ud8c3e"...MoreLess
Does it also not enter the handler if you try adding a "crt.HandleViewModelInitRequest"?
No Ryan, I didn't understand what's wrong with my code :-(,