When i enter a value in the STKI Pack Field, the corresponding info is displayed in the STKI Medium Prompt Field. But when i change the value of the STKI Pack Field, the value in the STKI MediumPrompt field gets updated, but the cursor moves back to the top of the form(Stock Item Alteration Form). How do i set the cursor to focus on the next field instead of going to the start when the field value updates? [Line : STKI Pack] Fields : Medium Prompt, STKI PackField Local : Field : Medium Prompt : Set as : " Type : " Space Top : 5 mms [Field: STKI PackField] Use : Name Field Validate : NOT $$IsEmpty : $$Value Table : Type Collection Show Table : On First Key Storage : pack [Line : STKI NoOfMed] Fields : STKI Medium Prompt, STKI NoOfMedField Space Top : 5 mms [Field : STKI Medium Prompt] Width : 60 mms Read Only : Yes Option : STKI tab : $pack="Tablet" Option : STKI cap : $pack="Capsule" Option : STKI bot: $pack="Bottle Tablets" [!Field : STKI tab] Info : "Number of medicines in 1 strip" [!Field : STKI cap] Info : "Number of capsules in 1 strip" [!Field : STKI bot] Info : "Number of medicines in 1 bottle" [Field : STKI NoOfMedField] Use : Number Field Width : 5 mms Validate : $$IsFieldEdited Storage : no of med Set By Condition : Yes : 0 [System : UDF] pack : String : 221
Try Field Referencing for e.g. [Field : STKI Medium Prompt] Width : 60 mms Read Only : Yes Option : STKI tab : #STKIPackField="Tablet" Option : STKI cap : #STKIPackField="Capsule" Option : STKI bot : #STKIPackField="Bottle Tablets" or you can use set by condition [Field : STKI Medium Prompt] Set By Condition : #STKIPackField="Tablet" : $$LocaleString:"Number of Medicines in 1 Strip" Set By Condition : #STKIPackField="Capsule" : $$LocaleString:"Number of Capsules in 1 Strip" Set By Condition : #STKIPackField="Bottle Tablets" : $$LocaleString:"Number of Medicines in 1 Bottle" Set Always : Yes Type : String: Forced Let me Know once done and which method
;; Try This Field Referencing [Field : STKI Medium Prompt] Width : 60 mms Read Only : Yes Option : STKI tab : #STKIPackField="Tablet" Option : STKI cap : #STKIPackField="Capsule" Option : STKI bot: #STKIPackField="Bottle Tablets" or Set by condition [Field : STKI Medium Prompt] Set By Condition : #STKIPackField="Tablet" : $$LocaleString:"Number of Medicines in 1 Strip" Set By Condition : #STKIPackField="Capsule" : $$LocaleString:"Number of Capsules in 1 Strip" Set By Condition : #STKIPackField="Bottle Tablets" : $$LocaleString:"Number of Medicines in 1 Bottle" Set Always : Yes Type : String: Forced
T I didnt know about the Set Always attribute...thats what worked for me But i have an additional question.. How do i refresh a field on clicking a button? What action should i give? I am trying to develop a random number generator that resets the value of the field when we click a button [Report : CreateUser] Form : CreateUser [Form : CreateUser] Part : CreateUser, CreatePin On:Form Accept:Yes:Call:CreateNewUser On:Form Accept:Yes:Form Accept Add : Button : Generate [Part :CreateUser] Line : CreateUser [Line : CreateUser] Field : Medium Prompt, userNameField Local : Field : Medium Prompt : Info : "Enter User Name: " [Part : CreatePin] Line : CreatePin Space Top : 3 mms [Line : CreatePin] Field : Short Prompt,userPnField Local : Field : Short Prompt : Info : "PIN: " [Field : userNameField] Use : Name Field Set As : $UserName Control : NameExists : $$ListValueFind:NewUser:1:$$Value Storage : UserName Type : String Validate : NOT $$IsEmpty:$$Value Max : 6 [Field : userPnField] Use : Number Field Set As: $$RandomNumber:1000:9999 Storage : UserPin Type : Number ;;Read Only : Yes Invisible : Yes i want to reset field userPnField when button "Generate" is clicked