close

1. 初次化時 (UI 方法)

On a TabPage control on forms there is a property called FastTabExpanded.
The property controls weather the FastTab appears expanded or collapsed and how this can be changed by the user.

FastTabExpandedProperty

The default value is Auto.

Values:

FastTabExpandedEnumValues

Auto

Default value. Decision is taken by the system. User settings are considered.

Yes

When a user opens the form for the first time, the FastTab appears expanded. As soon as the user collapses the FastTab, this is getting stored in the users usage data and the next time opening the form the FastTab appears collapsed (or whatever state the user defined for the FastTab before leaving the form).

No

Behaves like the option Yes but on the first opening the FastTab appears collapsed.

Always

The FastTab always appears expanded and the user cannot collapse the FastTab!
In this example below, the first FastTab has the property Alwaysand the second has the property Yes.

 

2.     初次化時 (X++ 方法)

        tabFinancialDimensions.fastTabExpanded(FastTabExpanded::Always);

 

3.    每次進入畫面都用指定狀態顯示   

/// <summary>
    ///
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    [FormControlEventHandler(formControlStr(PurchTable, HeaderView), FormControlEventType::PageActivated)]
    public static void HeaderView_OnPageActivated(FormControl sender, FormControlEventArgs e)
    {
        FormRun             element       = sender.formRun(); //form element

        FormTabPageControl  tabSetup = element.design(0).controlName("TabHeaderSetup");
        FormTabPageControl  tabAddress = element.design(0).controlName("TabHeaderAddress");
        FormTabPageControl  tabDelivery = element.design(0).controlName("TabHeaderDelivery");
        FormTabPageControl  tabPriceCalc = element.design(0).controlName("TabHeaderPriceCalc");
        FormTabPageControl  tabForeignTrade = element.design(0).controlName("TabHeaderForeignTrade");

        // collapse the fasttab
        tabSetup.collapse();
        tabAddress.collapse();
        tabDelivery.collapse();
        tabPriceCalc.collapse();
        tabForeignTrade.collapse();
    }

 

 

arrow
arrow
    文章標籤
    Dynamics AX D365 Fast Tab
    全站熱搜

    lionlionchopper 發表在 痞客邦 留言(0) 人氣()