editor.attributeInspector.deleteButtonVisible = false;
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.
Dear Robert,
I tried the code but there is no any effect in the relational table , it still appears.
<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"/>
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: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,
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.
Siddiqui,
If you are sure you made my suggested change in the EditWidgetRelationshipInspectorSkin.mxml then there is nothing else I can help you with.