Expand my Community achievements bar.

SOLVED

can i submit only those fields data which are got updated or changed?

Avatar

Level 7

Hi,

I want user to change the details of a form( form is already filled with data).

can i take only updated fields values in xml, and submit it using servlet.

scenario: In a form, i have three fields a. FirstName b. MiddleName and c.LastName. User is told to update his detail. He/she changes only MiddleName detail and clicks on submit button. Then can i submit a form to servlet containing only Middle Name.

Regards

Sunil

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Sunil,

I don't believe it is possible submitting XML. For XDP submission there is an xdpContent property on the submit method that appears to support object selection.

I am curious as to why you would want to do this. On the client side it introduces a lot of script in the form to determine which fields have been changed and then to dynamically build the submission. On the server side you will have to have a unique servlet for each unique update.

Steve

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Sunil,

I don't believe it is possible submitting XML. For XDP submission there is an xdpContent property on the submit method that appears to support object selection.

I am curious as to why you would want to do this. On the client side it introduces a lot of script in the form to determine which fields have been changed and then to dynamically build the submission. On the server side you will have to have a unique servlet for each unique update.

Steve

Avatar

Level 7

because my form may be a very big form. And user could have requested a already submitted form to update few fields only. If let say way we have thousands of fields which has already submitted by user and now user want to update only 2-3 fields. Then we need to submit entire form. but i am lookin a senarios wehre i can update 2-3 (updated fields) only. so that less bandwidth communication channel is required to update that.

hope you got it i wnat.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----