cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

save button active

Former Member
0 Likes
609

Hy experts.

I have a doubt about the save button. I'm using for a tab the spring-bean "marketplaceNestedAttributePanelRenderer" in order to show data from relationed entities. This spring bean is a existing one (not created by me).

With this I can show data from relationed entities, but the problem is, when I change data from the input the save button is not getting enabled.

As you can see in this foto, client is a property from a relationed entity. But if I change his value the save button is not enabled to save changes.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Save button will only be visible once there's change in current type(object). I am not sure what custom logic are you performing in that textfield. As per my understanding you are fetching uid from relation entity. that can be done using current object.getRelationEntity().getUid. If you want to do some custom logic then you can make use of renderer. but the relational object should be fetched from currentobject.

Like for getting value from consignment from parent object Order you can write code in renderer as

 final ConsignmentModel consignment = widgetInstanceManager.getModel().getValue("currentObject", ConsignmentModel.class);
 

Former Member
0 Likes

I'll try to do that. Only that "marketplaceNestedAttributePanelRenderer" it's a class from hybris (I didn't create it, it's .class).

The strange thing is I don't see why if I modify value from an relationed entity it doesn't activate the save button. If property belongs to parent entity it works fine but if belongs to another relationed entity it doesn't.........