Notifications
Clear all
Trading Post
3
Posts
2
Users
0
Reactions
82
Views
Topic starter
I'm trying to put together a data display for a form that can show the patient's prior orders and there status. I'm thinking this can be achieved with the getfield function, just having a little trouble with where to begin.
Posted : September 15, 2014 4:26 am
If you want open and completed orders use ORDERS_ALL("delimited"), I dont have one of these, but here is a directives one that I wrote a long time ago that works in the same way for reference
{fn direct_list(){
local directives = getfield(DCT_AFTER("delimited"),"|","")
local returndir = ""
local finddir
for i = 1, i <= size(directives), i = i + 1 do
finddir = getfield(directives[i],"^","")
returndir = returndir + finddir[1] + " - " + finddir[2] + hret
endfor
returndir
}}
Posted : September 15, 2014 4:53 am
Topic starter
Very nice thanks a bunch
Posted : September 15, 2014 5:06 am