Skip to main content
Question

Default a Generic Inquiry Parameter that is pulling the financial Periods to the Prior period?


Sagar Greytrix
Captain II
Forum|alt.badge.img+3

Hello team,

I would like to know if it's possible to set a default value for a Generic Inquiry Parameter. Specifically, I want the parameter to pull financial periods from the prior period.

For instance, if I am logged in with a System Login Date of 1/9/2024, the Period parameter currently defaults to 01-2024 when I open the inquiry. However, I would like it to default to 12-2023 (December 2023)

Regards,

Sagar

5 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • January 17, 2024

Hello,

We can default date parameters with functions like @PeriodEnd:

Dates can default to wildcard choice.

When I choose Financial Period, I do not see the same wildcard choices - only exact 6-digit Periods are available as the default parameter:

Financial Period has no wildcards/functions available.

A customization may be needed, to meet your needs.

 

Laura


meganfriesen37
Captain II
Forum|alt.badge.img+12

It looks like there is a similar idea on the idea board here.  I’ve always wished there was something like this so that you could filter by default for a specific period or do some logic of last 12 periods or Period 01 - Period 12 of current year.

 

https://community.acumatica.com/ideas/add-atfinperiodid-as-default-value-for-period-schema-fields-in-generic-inquiry-2415

 


bryanb39
Pro II
Forum|alt.badge.img+6
  • Pro II
  • 177 replies
  • January 17, 2024

One work around would be to:
Set the Parameter default to blank.  If you just leave default blank, it auto fills to Current period as you mentioned.  To force it to be blank, uncheck From Schema and put any text in there, such as the word Blank.  

Set the GI filter to use last day of last month if Parameter is Blank 
OR filter using the parameter set by the user.

The formula for last day of last month is:  =Dateadd(CDate(Concat(CStr(Month(Today())),'/1/',CStr(Year(Today())))),'d',-1)

I like to use the FinPeriod Table to use the Financial Period Dates.  To do this join with the GL.FinPeriods.MasterFinPeriod Table.  Be sure to include OrganizationID = ‘0’ or you’ll double your results.  

If you decide to use the FinPeriod Table, you would filter MasterFinPeriod.EndDate = 1st Day of This Month because the EndDate value is actually the Day after the last day of the period.  

That formula would be =CDate(Concat(CStr(Month(Today())),'/1/',CStr(Year(Today()))))
 

 


Sagar Greytrix
Captain II
Forum|alt.badge.img+3

@bryanb39 Thanks for the response. Could you please share your Generic Inquiry (GI) XML? I have added the same in the condition, but I am not getting the previous default period or date in the parameter. I need to check where I am making a mistake. 


bryanb39
Pro II
Forum|alt.badge.img+6
  • Pro II
  • 177 replies
  • January 18, 2024

Sorry, it won’t show in the Parameter, the parameter will be blank.  So it’s not a perfect solution, it’s just going to filter by default to last period and not try to default the parameter to current period.  

Is the condition working?  Does it only show results for Last Period if the Parameter is blank?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings