- Log in to post comments
User bio
404 bio not found
Member since Jan 29, 2018
Posts:
Timo has not published any posts yet.
Replies:
Hi Norman,
could you modify foo and do something like this at its beginning?
If $data(^SpecialcaseFlag) {
// get last entry
set idx=$order(ITEMS(""),-1)
// set new last entry
set idx=idx_"z"
set ITEMS(idx)=......
}
- Log in to post comments
I would be interested in the use case of having a special global subscript always at the end.
But essentially it comes down to convention and design. If you define your last global subscript to be e.g. "zzzz" then nobody should create entries with "zzzz1".
As i said for us to better advise we would need more information on what you need to achieve.
- Log in to post comments
Certifications & Credly badges:
Followers:
Following:
Timo has not followed anybody yet.
Just short comment, not sure why you need to call sql date_add function?
Your SelectTermination takes a parameter as %DateTime. I would just use simple $H as current date/time then subtract DaysBack back.
e.g.
set tDate=+$H-..#DaysBack