Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Re: How to changing default tabs thru java based on condition?

From: al_potanin (2013-01-15 04:59)

Hi,
Not sure about java. Probably by creating a custom databean you will be able to achieve this. But there are other options with using conditional UI (if you are on 7.x).
Also it depends on the actual functionality where you want to do this.

Let's say you in Invoice application in Copy PO Lines dialog you want to display Service tab first for Service POs and Materials tab for Materials POs.
Solution 1 can be:
- Using conditional UI to set default property on a tab to false and true depending on a condition
Solution 2 can be:
- in designer clone Materials tab and copy after Services tab so you will have 2 Materials tabs (use different IDs for all new controls)
- put a conditional UI on first and third tab to show/hide one or another tab depending on a condition
- Move PO Lines tab to the end
Cheers,
Alexey
--- In MAXIMO@yahoogroups.com, yudi.irianto@... wrote:
>
> Dear all,
>
> I just curious, is it possible to change active tab (default property)
> based on condition.
>
> Let say:
> ...
> if(something.equals("A"))
> active-tab-is-TabA
> else
> active-tab-is-TabB
> ...
>
> Many thanks for your suggestion.
>
> Best Regards,
>
> Yudi Irianto
>
>
>


From: yudi.irianto (2013-01-17 13:48)

Hi Alexey,

Thanks for your suggestions, supposed conditional UI the best solution.

rgrd,
Yudi Irianto
Max7501



"al_potanin" <spivot@gmail.com>
Sent by: MAXIMO@yahoogroups.com
15-01-2013 11:59
Please respond to
MAXIMO@yahoogroups.com


To
MAXIMO@yahoogroups.com
cc

Subject
[MAXIMO List] Re: How to changing default tabs thru java based on
condition?







Hi,

Not sure about java. Probably by creating a custom databean you will be
able to achieve this. But there are other options with using conditional
UI (if you are on 7.x).

Also it depends on the actual functionality where you want to do this.

Let's say you in Invoice application in Copy PO Lines dialog you want to
display Service tab first for Service POs and Materials tab for Materials
POs.
Solution 1 can be:
- Using conditional UI to set default property on a tab to false and true
depending on a condition

Solution 2 can be:
- in designer clone Materials tab and copy after Services tab so you will
have 2 Materials tabs (use different IDs for all new controls)
- put a conditional UI on first and third tab to show/hide one or another
tab depending on a condition
- Move PO Lines tab to the end

Cheers,
Alexey

--- In MAXIMO@yahoogroups.com, yudi.irianto@... wrote:
>
> Dear all,
>
> I just curious, is it possible to change active tab (default property)
> based on condition.
>
> Let say:
> ...
> if(something.equals("A"))
> active-tab-is-TabA
> else
> active-tab-is-TabB
> ...
>
> Many thanks for your suggestion.
>
> Best Regards,
>
> Yudi Irianto
>
>
>