Dear Robert, I tried this before but it was not working so i posted this issue in the forum to get the solution. Thanks,siddiqui
Siddiqui, If you are sure you made my suggested change in the EditWidgetRelationshipInspectorSkin.mxml then there is nothing else I can help you with.
siddiqui, Wow today is my day for everyone wanting me to do all the work for them... If you look in the edit widgets folder you will find the EditWidgetRelationshipInspectorSkin.mxml in there you will find this: <esri:AttributeInspector id="attributeInspector" width="100%" height="100%" deleteButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorCancel')}" deleteButtonVisible="{hostComponent.editEnabled}" excludeFrom="queryRelatedRecords,noRelationships,noRelatedRecords" okButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorAdd')}" okButtonVisible="{hostComponent.editEnabled}" skinClass="com.esri.ags.skins.RelationshipInspectorAttributeInspectorSkin" updateEnabled="{hostComponent.editEnabled && hostComponent.featureLayer.isEditable}"/>I guess you could just change that to false.
<esri:AttributeInspector id="attributeInspector" width="100%" height="100%" deleteButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorCancel')}" deleteButtonVisible="{hostComponent.editEnabled}" excludeFrom="queryRelatedRecords,noRelationships,noRelatedRecords" okButtonLabel.addingNewRecord="{resourceManager.getString('ESRIMessages', 'relationshipInspectorAdd')}" okButtonVisible="{hostComponent.editEnabled}" skinClass="com.esri.ags.skins.RelationshipInspectorAttributeInspectorSkin" updateEnabled="{hostComponent.editEnabled && hostComponent.featureLayer.isEditable}"/>
Siddiqui, In the EditWidget change these lines of code: <esri:RelationshipInspector id="relationshipInspector" width="{Math.max(map.infoWindowContent.width, 300)}" height="{Math.max(map.infoWindowContent.height, 300)}" editEnabled="false" infoWindowLabel="{relatedRecordsLabel}" skinClass="widgets.Edit.EditWidgetRelationshipInspectorSkin"/>
<esri:RelationshipInspector id="relationshipInspector" width="{Math.max(map.infoWindowContent.width, 300)}" height="{Math.max(map.infoWindowContent.height, 300)}" editEnabled="false" infoWindowLabel="{relatedRecordsLabel}" skinClass="widgets.Edit.EditWidgetRelationshipInspectorSkin"/>
Dear Robert, I tried the code but there is no any effect in the relational table , it still appears.
Siddiqui, In the EditWidget.mxml try adding this line in the basewidget_WidgetConfigLoaded function:editor.attributeInspector.deleteButtonVisible = false;When you are asking a question about a widget please post the question in the Flex Viewer forum and not the Flex API forum. This will save me the step of moving your post to the proper forum.
editor.attributeInspector.deleteButtonVisible = false;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.