Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Dayna
Creator II
Creator II

Default Values

Hello All,

Should be a very easy one ....

How do you set a default value on load of an application for a) variable and b) field.

i.e.A) date variable to be set to the minimum value of a datefield and..

B) a field to be set to a specific customer...

Kind Regards,
Dayna

Labels (1)
2 Replies
Not applicable

Variable

set vb_Date = '22.10.2009'

Field

TableSales:

LOAD

Field1,

Field2,

'Active' as [Custoemr Status]

Not applicable

a field to be set to a specific customer...

Sub Partenza
'Select the current year
ActiveDocument.GetField("AnnoSel").Select ActiveDocument.Evaluate("year(today())")
'Select the current month
mese = right("0"&ActiveDocument.Evaluate("Num(month(today()))"),2)
ActiveDocument.GetField("MeseSel").Select ActiveDocument.Evaluate(mese)
end sub

Daniela