Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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

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