[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Emiel

11/9/2005 8:44:00 AM

With the option Setup in the right mouse button menu you are able to make
user specific changes to the setup of a form. I want to make changes to the
Salesorder form. When I open the Table structure I see the underlying
structure Tabheader and ButtonsHeader. But the icon TabHeader has a yellow
lock, stating changes to this item is locked.
In a different Axapta installation I do not see these yellow locks at the
same position. Where do these locks come from. In the AOT the parameter
AllowUserSetup is set to Yes everywhere. Or does it come from the security
settings (user or usergroup)?
How can I unlock the form (or parts of) in order to make my changes?

Regards,
Emiel
2 Answers

JF

11/10/2005 9:39:00 AM

0

Hi,

The reason for disable the UserSetUp (yellow lock) is because the
'tabchange()' or "tabchanged()" method has been overwritten on the form. When
one of these method is overwritten then usersetup will be disabled by the
kernel automatically.

In order for user setup to work, it is important that the code is
independent of the actual positioning of the control, meaning that the
developer must not use any information on the position of the control or
assume that the ordering of controls is retained.

If either one of the below methods are overridden, the user setup level of
â??tab controlsâ? cannot be higher than restricted, regardless of the property
value.

tabChange()
tabChanged()

The reason for this is that these methods receive integer values for the
FromTab and ToTab parameters.

public void tabChanged(int _FromTab, int _ToTab)

Because it cannot be certain what the exact values of these tabs are, the
methods will lose focus on the index of the tab, and focus is put on the tab
as a parameter. If the tab pages are reordered by the user, the parameters
passed to these functions will lose their meaning. Therefore, it is possible
to either override these methods, or allow for full customization of layout
and content.

The following methods on the â??tab page controlâ? should be used instead:

pageActivated()
allowPageDeactivate()

These methods do not pass any information on the current positioning of the
tab page, and therefore the code should be independent of the positioning.

Hope this will answer your question.

Regards



"Emiel" wrote:

> With the option Setup in the right mouse button menu you are able to make
> user specific changes to the setup of a form. I want to make changes to the
> Salesorder form. When I open the Table structure I see the underlying
> structure Tabheader and ButtonsHeader. But the icon TabHeader has a yellow
> lock, stating changes to this item is locked.
> In a different Axapta installation I do not see these yellow locks at the
> same position. Where do these locks come from. In the AOT the parameter
> AllowUserSetup is set to Yes everywhere. Or does it come from the security
> settings (user or usergroup)?
> How can I unlock the form (or parts of) in order to make my changes?
>
> Regards,
> Emiel

Emiel

11/10/2005 10:20:00 AM

0

Hi JF,

Thanks for your reply. It did help. I now understand where it comes from. I
have seen that the probleem exists in SP1. The method ic changed in the GLS
layer (CRM module), so it cannot be altered. However, I have seen that from
SP3 onwards in standard Axapta the problem does not exist.

Regards,
Emiel

"JF" wrote:

> Hi,
>
> The reason for disable the UserSetUp (yellow lock) is because the
> 'tabchange()' or "tabchanged()" method has been overwritten on the form. When
> one of these method is overwritten then usersetup will be disabled by the
> kernel automatically.
>
> In order for user setup to work, it is important that the code is
> independent of the actual positioning of the control, meaning that the
> developer must not use any information on the position of the control or
> assume that the ordering of controls is retained.
>
> If either one of the below methods are overridden, the user setup level of
> â??tab controlsâ? cannot be higher than restricted, regardless of the property
> value.
>
> tabChange()
> tabChanged()
>
> The reason for this is that these methods receive integer values for the
> FromTab and ToTab parameters.
>
> public void tabChanged(int _FromTab, int _ToTab)
>
> Because it cannot be certain what the exact values of these tabs are, the
> methods will lose focus on the index of the tab, and focus is put on the tab
> as a parameter. If the tab pages are reordered by the user, the parameters
> passed to these functions will lose their meaning. Therefore, it is possible
> to either override these methods, or allow for full customization of layout
> and content.
>
> The following methods on the â??tab page controlâ? should be used instead:
>
> pageActivated()
> allowPageDeactivate()
>
> These methods do not pass any information on the current positioning of the
> tab page, and therefore the code should be independent of the positioning.
>
> Hope this will answer your question.
>
> Regards
>
>
>
> "Emiel" wrote:
>
> > With the option Setup in the right mouse button menu you are able to make
> > user specific changes to the setup of a form. I want to make changes to the
> > Salesorder form. When I open the Table structure I see the underlying
> > structure Tabheader and ButtonsHeader. But the icon TabHeader has a yellow
> > lock, stating changes to this item is locked.
> > In a different Axapta installation I do not see these yellow locks at the
> > same position. Where do these locks come from. In the AOT the parameter
> > AllowUserSetup is set to Yes everywhere. Or does it come from the security
> > settings (user or usergroup)?
> > How can I unlock the form (or parts of) in order to make my changes?
> >
> > Regards,
> > Emiel