Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Editing Listgrid detail

    Hi,

    I have a listgrid with a expansion component which is a Dynamic form. I am having probelms with saving the data from the detail form.

    What happens is that after editing values on the detail, the detail section does not collapse.

    <code>
    //Event to handle save button click handler
    buttonItem.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {

    // Set action URL
    ((TicketDS)getDataSource()).setActionURL("/service/scheduledtimes/"+ticketItem.getValue()+"/"+ startTime.getDisplayValue()+"/"+endTime.getDisplayValue()+"/"+travelTime.getDisplayValue()+"/"+tag.getDisplayValue()
    +"/"+priority.getDisplayValue()+"/"+instructions.getDisplayValue()+"/"+Admin.getSelectedDate());

    saveData(new DSCallback() {
    @Override
    public void execute(DSResponse response, Object rawData, DSRequest request) {
    //invalidate the cache on the detail form
    workTicketDetail.invalidateCache();
    DispatchPlannerSection.getInstance("mSectionStack").getWorkTicketSection().getTicketGrid().fetchData(null, new DSCallback() {
    @Override
    public void execute(DSResponse response, Object rawData, DSRequest request) {
    }
    });
    }
    });
    </code>

    When I use rememberValues(), the detail does close but the older values are retained.

    What would be the right way to handle saving from the detail ?

    Thanks.
Working...
X