Post Wed Dec 16, 2015 12:35 am

Finding Dynamic Identifiers

I have a question on how to locate Tab Identifiers .. I hope this fourm is still checked it looks like its been awhile since there was a question..

In the smoke suite selecting a tab looks like this ( the name of the tab and its identifier )
/**
* Select and return the Unit of Measure tab.
*
* @return the Unit of Measure tab.
*/
public UnitOfMeasureTab selectUnitOfMeasureTab() {
return (UnitOfMeasureTab) selectTab(UnitOfMeasureTab.IDENTIFIER);
}
... the Identifier is hard coded ...

UnitOfMeasureTab extends GeneratedTab<UnitOfMeasureData> {
/** The tab identifier. */
public static final String IDENTIFIER = "133";

This maps to
FORMAT_REGISTRY_KEY_BUTTON_NEW_IN_FORM = "org.openbravo.client.application.toolbar.button.newDoc.%s

My Identifiers are dynamic ie ( ["org.openbravo.client.application.toolbar.button.newDoc.2BBDC42FB4394C9190A12F9F240E83A7"]

what method or methods can i use to find and return the newDoc identifier of the tab i just opened before i call it.
IE ( i open a tab from the application menu ... get the maintabset then find what new Doc identifier goes with it. then click on newdoc. )