Hello
I'm having problems when I create some direct method of JavaScript, it always tells me that I can not get ownership of any library that I'm sending to call.
I leave the legend of the error and my code, hoping you can support me.
Technical Message: Event handler failed with message: No se puede obtener la propiedad 'relTabbar' de referencia nula o sin definir
Stack Trace: Client Side Error
var tabbar = parent.relationships.relTabbar;
var tabTelecom = tabbar.GetTabId("Certificado Gral");
var tabGral = tabbar.GetTabId("Certificado IFT");
tabbar.setTabVisible(tabTelecom, true);
tabbar.setTabVisible(tabGral, false);
with this code what I try is to hide one or another tab of relationship, take the example of the development guide.
Thank you
We need your help,
We are trying to create an onSearchDialog event and need to get a property to execute a case. The purpose of the method is to restrict the users search dialog to another variable., classification in this case.
I have tried unsuccessfully the following options to collect the variable information:
var norma = document.thisItem.getProperty("classification");
var norma = this.getProperty("classification");
var norma = getFieldByName("classification");
All of them return an undefined object message:
Technical Message: aras_object "-2146823279": "getFieldByName" is not defined"
Stack Trace: Client Side Error
Below the code I am using. A similar code is being used in a form event which controls field visibility using this.getProperty(classification) successfully, where classification is the property regulating the visibility.
switch (norma)
{
case "S-Economia/NOM-001-SCFI-1993":
Filter["description"] = { filterValue:"%01%", isFilterFixed: true };
Filter["is_alias"] = { filterValue: "1", isFilterFixed: true };
break;
case "S-Economia/NOM-019-SCFI-1998":
Filter["description"] = { filterValue:"%02%", isFilterFixed: true };
Filter["is_alias"] = { filterValue: "1", isFilterFixed: true };
break;
case "S-Economia/NOM-003-SCFI-2014_NMX-J-521_1-ANCE-2012":
Filter["description"] = { filterValue:"%03%", isFilterFixed: true };
Filter["is_alias"] = { filterValue: "1", isFilterFixed: true };
break;
default:
Filter["is_alias"] = { filterValue: "1", isFilterFixed: true };
break;
}
return Filter;