shobdy
(Shawn Hobdy)
August 16, 2021, 1:34pm
1
Hello,
I have a dashboard with 2 BAQ queries in it.
The main one has 2 BAQ parameters that need to be set: Start Date and End Date.
How do I know how to reference those fields to set them in the screen customization on the dashboard I deployed top menu?
Any ideas?
Thanks!
bordway
(Bruce Ordway)
August 16, 2021, 4:11pm
2
2 BAQ parameters
As far as I know you can’t really get at the parameter form.
Will have to use tracker filters instead.
Ref How to set default date for dashboard that has paramaters 'Start Date' and 'End Date'
(Though I’d love to be proven wrong)
FWIW
I found it was possible to customize the parameter form but…
I couldn’t find any way get the system to actually use the custom version.
e.g. I used the same customization name for to the MainController and BaseForm
and specified that in menu maintenance (which works for most subforms).
e.g.
The custom code below on the BaseForm but it only works in dev mode where I can manually pick my customization…
private void BaseForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
DateTime dt1 = DateTime.Now;
TimeSpan thirtydays = new TimeSpan(30, 0, 0, 0);
DateTime plus30 = dt1 + thirtydays;
edvMain.dataView[edvMain.Row][“ReqDueLTEQ”] = dt1;
edvMain.dataView[edvMain.Row][“ReqDueGTEQ”] = plus30;
}
Jackchenp
(Jackchenp)
August 17, 2021, 1:27am
3
private void MainController_Load(object sender, EventArgs args)
{
// Add Event Handler Code
Ice.Lib.Framework.EpiDateTimeEditor EPDT_ReqDate=
(Ice.Lib.Framework.EpiDateTimeEditor)csm.GetNativeControlReference(“20fb8777-683a-4f5a-8fc3-2cba940c7360”);
EPDT_ReqDate.Value=DateTime.Now.AddDays(-14).Date;
}