Please Help!!!
We have a vitals page made by using VFE. When clicking the Previous height action button it adds the previously recorded height. Is there a code, or a way to put "Previous Height" in the note in front of the number when this button is clicked? Right now it just states "height" if we took the height that day or if it is the previous height.
White space on the side in VFE -
{!document.prev_hgt_click}
Action button code -
{OBSNOW("HEIGHT",OBSPREV("HEIGHT))}
{document.prev_hgt_click = "Previous "}
Item translation for height edit field -
{CFMT(obsnow("height"),"",(if OBSNOW("HEIGHT") == OBSPREV("HEIGHT") then document.prev_hgt_click else "" endif) + "Height: ","B"," inches
")}
And if you want, in the item enabled field -
{document.prev_hgt_click == ""}
I added the code you sent. This is the error I get once I imported to GE to test it.
}
/*Function for SetValues Button VS Entered By =>*/
fn fn3314_889_1395078312(){
IF DOCUMENT.VS_ENTERED_B_3314_890_1395078312 == "" THEN DOCUMENT.VS_ENTERED_B_3314_890_1395078312 = (str(user.realname + " (" + datetimestamp() + ")")) ENDIF
}
/*Function for SetValues Button Add Prev Height*/
fn fn3314_908_1395078312(){
IF OBSNOW("Height") == "" THEN OBSNOW("Height", (str(OBSNOW("HEIGHT",OBSPREV("HEIGHT))}{document.prev_hgt_click = "Previous "))) ENDIF
}
/*Function for RUNPROCESS Button Record*/
fn fn3314_42_1395078313(){
ccc_s_a_record
}
/*Function for RUNPROCESS Button Ht conversion table*/
fn fn3314_46_1395078313(){
ccc_show_wt_conv()
}
It doesn't say error on there, use RUN PROCESS for the connection type though