I am trying to send form array to backend using dataform but I am not getting array object while debugging
Below is my code : I am trying to send arrayControl to java spring but while debugging no object is coming in data form.
saveFormFields(){
const currentUser = localStorage.getItem('currentUser');
this.DataForm.userSessionDataForm = JSON.parse(currentUser);
this.arrayControl = this.DataFormGroup.get('itemRows') as FormArray;
this.DataForm.DocumentDataForm=this.arrayControl.value;
this.Service.save(this.DataForm).subscribe(resp => {
this.DataForm = resp as DataForm;
}, error => {
console.log(error);
this.snotifyService.error(error);
})
}
This is my java code where I am trying to get ArrayList
`@RequestMapping(value = "/saveUpdate/{userToken}", method = RequestMethod.POST)
public @ResponseBody void saveUpdate(@RequestBody DataForm dataForm,
@PathVariable("userToken") String userToken, HttpServletResponse response)
throws ProcessFailed, IOException {
try {
if (!userTokenUtil.isTokenExpired(userToken)) {
DataForm saveUpdate = searchService.saveAndUpdate(dataForm);
SecurityUtils.sendResponse(response,HttpServletResponse.SC_OK, saveUpdate );
}else {
SecurityUtils.sendError(response, new BadCredentialsException("Invalid password."),
HttpServletResponse.SC_UNAUTHORIZED, "Authentication failed");
}
} catch (Exception e) {
logger.error("Error: " + e.getMessage());
SecurityUtils.sendError(response, new ProcessFailed(e.getMessage()),
HttpServletResponse.SC_SERVICE_UNAVAILABLE, e.getMessage());
}
}`
Below is my from code:
<mat-step [stepControl]="DataFormGroup.get('Reference')">
<form [formGroup]="DataFormGroup" class="doing-form" #Reference="ngForm">
<div>
<mat-card class="col-sm-10 mx-auto">
<mat-card-header>
<mat-card-title>7. Review the reference with short description</mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="doing-instructions">
<p class="learning-example">Instruction:</p>
<ul>
<li>Compare the working </li>
</ul>
</div>
<div class="doing-example">
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>Example</mat-panel-title>
</mat-expansion-panel-header>
<ul>
<li></li>
<li></li>
</ul>
<div class="text-right">
<span(click)="allExpandState=false;expandLess(4)">
<mat-icon class="expansion">expand_less</mat-icon>
</span>
</div>
</mat-expansion-panel>
</div>
<br>
<h6>Do you have document?</h6>
<mat-radio-group formControlName="Reference" [(ngModel)]="checkTable">
<mat-radio-button color="primary" value="true">Yes</mat-radio-button>
<mat-radio-button color="primary" value="false">No</mat-radio-button>
</mat-radio-group>
<mat-error *ngIf="DataFormGroup.get('Reference').errors?.required && Reference.submitted">Please select atleast one option</mat-error>
<br>
<div style="overflow-x:auto;" *ngIf="checkTable == 'true' ">
<p>List the documents in the below table</p>
<table class="table table-bordered table-responsive" id="document">
<thead>
<tr>
<th>Country Name</th>
<th>Document </th>
<th>Reference</th>
<th>Name</th>
<th>Title </th>
<th>Action</th>
</tr>
</thead>
<div formArrayName="itemRows">
<tbody>
<tr *ngFor="let itemrow of DataFormGroup.controls.itemRows.controls.slice(0,15); let i=index" [formGroupName]="i">
<td>
<input class="form-control" formControlName="countryName" >
</td>
<td>
<mat-radio-group formControlName="document">
<mat-radio-button color="primary" value="xyz">Hello</mat-radio-button>
<mat-radio-button color="primary" value="abc">Bye</mat-radio-button>
</mat-radio-group>
</td>
<td>
<input class="form-control" formControlName="reference" >
</td>
<td>
<input class="form-control" formControlName="Name" >
</td>
<td>
<input class="form-control" formControlName="title" >
</td>
<td>
<input class="form-control" formControlName="Difference">
</td>
<td>
<button mat-raised-button *ngIf="DataFormGroup.controls.itemRows.controls.length > 1" (click)="deleteRow(i)"
color="basic">
<mat-icon>delete</mat-icon>
</button>
<button mat-raised-button (click)="addNewRow()" color="primary">
<mat-icon >add</mat-icon>
</button>
</td>
</tr>
</tbody>
</div>
</table>
</div>
<!-- <button mat-raised-button (click)="autoSaveFunctionCall()">Submit</button> -->
</mat-card-content>
</mat-card>
</div>
<div class="row">
<div class="col">
<button mat-raised-button matStepperPrevious class="back">BACK</button>
</div>
<button mat-flat-button matStepperNext color="primary" class="next" (click)="saveFormFields()">NEXT</button>
</div>
</form>
</mat-step>
dataForm should get value of DocumentDataForm as ArrayList but it is showing element:Object[0],size[0].
Actually I want to save the table in database in which i am getting multiple rows from the user on clicking of add button.
java angular typescript
|
show 2 more comments
Below is my code : I am trying to send arrayControl to java spring but while debugging no object is coming in data form.
saveFormFields(){
const currentUser = localStorage.getItem('currentUser');
this.DataForm.userSessionDataForm = JSON.parse(currentUser);
this.arrayControl = this.DataFormGroup.get('itemRows') as FormArray;
this.DataForm.DocumentDataForm=this.arrayControl.value;
this.Service.save(this.DataForm).subscribe(resp => {
this.DataForm = resp as DataForm;
}, error => {
console.log(error);
this.snotifyService.error(error);
})
}
This is my java code where I am trying to get ArrayList
`@RequestMapping(value = "/saveUpdate/{userToken}", method = RequestMethod.POST)
public @ResponseBody void saveUpdate(@RequestBody DataForm dataForm,
@PathVariable("userToken") String userToken, HttpServletResponse response)
throws ProcessFailed, IOException {
try {
if (!userTokenUtil.isTokenExpired(userToken)) {
DataForm saveUpdate = searchService.saveAndUpdate(dataForm);
SecurityUtils.sendResponse(response,HttpServletResponse.SC_OK, saveUpdate );
}else {
SecurityUtils.sendError(response, new BadCredentialsException("Invalid password."),
HttpServletResponse.SC_UNAUTHORIZED, "Authentication failed");
}
} catch (Exception e) {
logger.error("Error: " + e.getMessage());
SecurityUtils.sendError(response, new ProcessFailed(e.getMessage()),
HttpServletResponse.SC_SERVICE_UNAVAILABLE, e.getMessage());
}
}`
Below is my from code:
<mat-step [stepControl]="DataFormGroup.get('Reference')">
<form [formGroup]="DataFormGroup" class="doing-form" #Reference="ngForm">
<div>
<mat-card class="col-sm-10 mx-auto">
<mat-card-header>
<mat-card-title>7. Review the reference with short description</mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="doing-instructions">
<p class="learning-example">Instruction:</p>
<ul>
<li>Compare the working </li>
</ul>
</div>
<div class="doing-example">
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>Example</mat-panel-title>
</mat-expansion-panel-header>
<ul>
<li></li>
<li></li>
</ul>
<div class="text-right">
<span(click)="allExpandState=false;expandLess(4)">
<mat-icon class="expansion">expand_less</mat-icon>
</span>
</div>
</mat-expansion-panel>
</div>
<br>
<h6>Do you have document?</h6>
<mat-radio-group formControlName="Reference" [(ngModel)]="checkTable">
<mat-radio-button color="primary" value="true">Yes</mat-radio-button>
<mat-radio-button color="primary" value="false">No</mat-radio-button>
</mat-radio-group>
<mat-error *ngIf="DataFormGroup.get('Reference').errors?.required && Reference.submitted">Please select atleast one option</mat-error>
<br>
<div style="overflow-x:auto;" *ngIf="checkTable == 'true' ">
<p>List the documents in the below table</p>
<table class="table table-bordered table-responsive" id="document">
<thead>
<tr>
<th>Country Name</th>
<th>Document </th>
<th>Reference</th>
<th>Name</th>
<th>Title </th>
<th>Action</th>
</tr>
</thead>
<div formArrayName="itemRows">
<tbody>
<tr *ngFor="let itemrow of DataFormGroup.controls.itemRows.controls.slice(0,15); let i=index" [formGroupName]="i">
<td>
<input class="form-control" formControlName="countryName" >
</td>
<td>
<mat-radio-group formControlName="document">
<mat-radio-button color="primary" value="xyz">Hello</mat-radio-button>
<mat-radio-button color="primary" value="abc">Bye</mat-radio-button>
</mat-radio-group>
</td>
<td>
<input class="form-control" formControlName="reference" >
</td>
<td>
<input class="form-control" formControlName="Name" >
</td>
<td>
<input class="form-control" formControlName="title" >
</td>
<td>
<input class="form-control" formControlName="Difference">
</td>
<td>
<button mat-raised-button *ngIf="DataFormGroup.controls.itemRows.controls.length > 1" (click)="deleteRow(i)"
color="basic">
<mat-icon>delete</mat-icon>
</button>
<button mat-raised-button (click)="addNewRow()" color="primary">
<mat-icon >add</mat-icon>
</button>
</td>
</tr>
</tbody>
</div>
</table>
</div>
<!-- <button mat-raised-button (click)="autoSaveFunctionCall()">Submit</button> -->
</mat-card-content>
</mat-card>
</div>
<div class="row">
<div class="col">
<button mat-raised-button matStepperPrevious class="back">BACK</button>
</div>
<button mat-flat-button matStepperNext color="primary" class="next" (click)="saveFormFields()">NEXT</button>
</div>
</form>
</mat-step>
dataForm should get value of DocumentDataForm as ArrayList but it is showing element:Object[0],size[0].
Actually I want to save the table in database in which i am getting multiple rows from the user on clicking of add button.
java angular typescript
can you post your form code ?
– CruelEngine
Nov 24 '18 at 6:38
form code posted@CruelEngine
– ankit mishra
Nov 24 '18 at 6:57
you want to get the form Value right ?
– CruelEngine
Nov 24 '18 at 6:58
if form value is what you want @ankitmishra , you can just usethis.DataForm.value
inside the click handler
– CruelEngine
Nov 24 '18 at 7:01
Property 'value' does not exist on type 'DataForm'.--It is showing like this
– ankit mishra
Nov 24 '18 at 7:04
|
show 2 more comments
Below is my code : I am trying to send arrayControl to java spring but while debugging no object is coming in data form.
saveFormFields(){
const currentUser = localStorage.getItem('currentUser');
this.DataForm.userSessionDataForm = JSON.parse(currentUser);
this.arrayControl = this.DataFormGroup.get('itemRows') as FormArray;
this.DataForm.DocumentDataForm=this.arrayControl.value;
this.Service.save(this.DataForm).subscribe(resp => {
this.DataForm = resp as DataForm;
}, error => {
console.log(error);
this.snotifyService.error(error);
})
}
This is my java code where I am trying to get ArrayList
`@RequestMapping(value = "/saveUpdate/{userToken}", method = RequestMethod.POST)
public @ResponseBody void saveUpdate(@RequestBody DataForm dataForm,
@PathVariable("userToken") String userToken, HttpServletResponse response)
throws ProcessFailed, IOException {
try {
if (!userTokenUtil.isTokenExpired(userToken)) {
DataForm saveUpdate = searchService.saveAndUpdate(dataForm);
SecurityUtils.sendResponse(response,HttpServletResponse.SC_OK, saveUpdate );
}else {
SecurityUtils.sendError(response, new BadCredentialsException("Invalid password."),
HttpServletResponse.SC_UNAUTHORIZED, "Authentication failed");
}
} catch (Exception e) {
logger.error("Error: " + e.getMessage());
SecurityUtils.sendError(response, new ProcessFailed(e.getMessage()),
HttpServletResponse.SC_SERVICE_UNAVAILABLE, e.getMessage());
}
}`
Below is my from code:
<mat-step [stepControl]="DataFormGroup.get('Reference')">
<form [formGroup]="DataFormGroup" class="doing-form" #Reference="ngForm">
<div>
<mat-card class="col-sm-10 mx-auto">
<mat-card-header>
<mat-card-title>7. Review the reference with short description</mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="doing-instructions">
<p class="learning-example">Instruction:</p>
<ul>
<li>Compare the working </li>
</ul>
</div>
<div class="doing-example">
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>Example</mat-panel-title>
</mat-expansion-panel-header>
<ul>
<li></li>
<li></li>
</ul>
<div class="text-right">
<span(click)="allExpandState=false;expandLess(4)">
<mat-icon class="expansion">expand_less</mat-icon>
</span>
</div>
</mat-expansion-panel>
</div>
<br>
<h6>Do you have document?</h6>
<mat-radio-group formControlName="Reference" [(ngModel)]="checkTable">
<mat-radio-button color="primary" value="true">Yes</mat-radio-button>
<mat-radio-button color="primary" value="false">No</mat-radio-button>
</mat-radio-group>
<mat-error *ngIf="DataFormGroup.get('Reference').errors?.required && Reference.submitted">Please select atleast one option</mat-error>
<br>
<div style="overflow-x:auto;" *ngIf="checkTable == 'true' ">
<p>List the documents in the below table</p>
<table class="table table-bordered table-responsive" id="document">
<thead>
<tr>
<th>Country Name</th>
<th>Document </th>
<th>Reference</th>
<th>Name</th>
<th>Title </th>
<th>Action</th>
</tr>
</thead>
<div formArrayName="itemRows">
<tbody>
<tr *ngFor="let itemrow of DataFormGroup.controls.itemRows.controls.slice(0,15); let i=index" [formGroupName]="i">
<td>
<input class="form-control" formControlName="countryName" >
</td>
<td>
<mat-radio-group formControlName="document">
<mat-radio-button color="primary" value="xyz">Hello</mat-radio-button>
<mat-radio-button color="primary" value="abc">Bye</mat-radio-button>
</mat-radio-group>
</td>
<td>
<input class="form-control" formControlName="reference" >
</td>
<td>
<input class="form-control" formControlName="Name" >
</td>
<td>
<input class="form-control" formControlName="title" >
</td>
<td>
<input class="form-control" formControlName="Difference">
</td>
<td>
<button mat-raised-button *ngIf="DataFormGroup.controls.itemRows.controls.length > 1" (click)="deleteRow(i)"
color="basic">
<mat-icon>delete</mat-icon>
</button>
<button mat-raised-button (click)="addNewRow()" color="primary">
<mat-icon >add</mat-icon>
</button>
</td>
</tr>
</tbody>
</div>
</table>
</div>
<!-- <button mat-raised-button (click)="autoSaveFunctionCall()">Submit</button> -->
</mat-card-content>
</mat-card>
</div>
<div class="row">
<div class="col">
<button mat-raised-button matStepperPrevious class="back">BACK</button>
</div>
<button mat-flat-button matStepperNext color="primary" class="next" (click)="saveFormFields()">NEXT</button>
</div>
</form>
</mat-step>
dataForm should get value of DocumentDataForm as ArrayList but it is showing element:Object[0],size[0].
Actually I want to save the table in database in which i am getting multiple rows from the user on clicking of add button.
java angular typescript
Below is my code : I am trying to send arrayControl to java spring but while debugging no object is coming in data form.
saveFormFields(){
const currentUser = localStorage.getItem('currentUser');
this.DataForm.userSessionDataForm = JSON.parse(currentUser);
this.arrayControl = this.DataFormGroup.get('itemRows') as FormArray;
this.DataForm.DocumentDataForm=this.arrayControl.value;
this.Service.save(this.DataForm).subscribe(resp => {
this.DataForm = resp as DataForm;
}, error => {
console.log(error);
this.snotifyService.error(error);
})
}
This is my java code where I am trying to get ArrayList
`@RequestMapping(value = "/saveUpdate/{userToken}", method = RequestMethod.POST)
public @ResponseBody void saveUpdate(@RequestBody DataForm dataForm,
@PathVariable("userToken") String userToken, HttpServletResponse response)
throws ProcessFailed, IOException {
try {
if (!userTokenUtil.isTokenExpired(userToken)) {
DataForm saveUpdate = searchService.saveAndUpdate(dataForm);
SecurityUtils.sendResponse(response,HttpServletResponse.SC_OK, saveUpdate );
}else {
SecurityUtils.sendError(response, new BadCredentialsException("Invalid password."),
HttpServletResponse.SC_UNAUTHORIZED, "Authentication failed");
}
} catch (Exception e) {
logger.error("Error: " + e.getMessage());
SecurityUtils.sendError(response, new ProcessFailed(e.getMessage()),
HttpServletResponse.SC_SERVICE_UNAVAILABLE, e.getMessage());
}
}`
Below is my from code:
<mat-step [stepControl]="DataFormGroup.get('Reference')">
<form [formGroup]="DataFormGroup" class="doing-form" #Reference="ngForm">
<div>
<mat-card class="col-sm-10 mx-auto">
<mat-card-header>
<mat-card-title>7. Review the reference with short description</mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="doing-instructions">
<p class="learning-example">Instruction:</p>
<ul>
<li>Compare the working </li>
</ul>
</div>
<div class="doing-example">
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>Example</mat-panel-title>
</mat-expansion-panel-header>
<ul>
<li></li>
<li></li>
</ul>
<div class="text-right">
<span(click)="allExpandState=false;expandLess(4)">
<mat-icon class="expansion">expand_less</mat-icon>
</span>
</div>
</mat-expansion-panel>
</div>
<br>
<h6>Do you have document?</h6>
<mat-radio-group formControlName="Reference" [(ngModel)]="checkTable">
<mat-radio-button color="primary" value="true">Yes</mat-radio-button>
<mat-radio-button color="primary" value="false">No</mat-radio-button>
</mat-radio-group>
<mat-error *ngIf="DataFormGroup.get('Reference').errors?.required && Reference.submitted">Please select atleast one option</mat-error>
<br>
<div style="overflow-x:auto;" *ngIf="checkTable == 'true' ">
<p>List the documents in the below table</p>
<table class="table table-bordered table-responsive" id="document">
<thead>
<tr>
<th>Country Name</th>
<th>Document </th>
<th>Reference</th>
<th>Name</th>
<th>Title </th>
<th>Action</th>
</tr>
</thead>
<div formArrayName="itemRows">
<tbody>
<tr *ngFor="let itemrow of DataFormGroup.controls.itemRows.controls.slice(0,15); let i=index" [formGroupName]="i">
<td>
<input class="form-control" formControlName="countryName" >
</td>
<td>
<mat-radio-group formControlName="document">
<mat-radio-button color="primary" value="xyz">Hello</mat-radio-button>
<mat-radio-button color="primary" value="abc">Bye</mat-radio-button>
</mat-radio-group>
</td>
<td>
<input class="form-control" formControlName="reference" >
</td>
<td>
<input class="form-control" formControlName="Name" >
</td>
<td>
<input class="form-control" formControlName="title" >
</td>
<td>
<input class="form-control" formControlName="Difference">
</td>
<td>
<button mat-raised-button *ngIf="DataFormGroup.controls.itemRows.controls.length > 1" (click)="deleteRow(i)"
color="basic">
<mat-icon>delete</mat-icon>
</button>
<button mat-raised-button (click)="addNewRow()" color="primary">
<mat-icon >add</mat-icon>
</button>
</td>
</tr>
</tbody>
</div>
</table>
</div>
<!-- <button mat-raised-button (click)="autoSaveFunctionCall()">Submit</button> -->
</mat-card-content>
</mat-card>
</div>
<div class="row">
<div class="col">
<button mat-raised-button matStepperPrevious class="back">BACK</button>
</div>
<button mat-flat-button matStepperNext color="primary" class="next" (click)="saveFormFields()">NEXT</button>
</div>
</form>
</mat-step>
dataForm should get value of DocumentDataForm as ArrayList but it is showing element:Object[0],size[0].
Actually I want to save the table in database in which i am getting multiple rows from the user on clicking of add button.
java angular typescript
java angular typescript
edited Nov 24 '18 at 6:59
ankit mishra
asked Nov 24 '18 at 6:25
ankit mishraankit mishra
65
65
can you post your form code ?
– CruelEngine
Nov 24 '18 at 6:38
form code posted@CruelEngine
– ankit mishra
Nov 24 '18 at 6:57
you want to get the form Value right ?
– CruelEngine
Nov 24 '18 at 6:58
if form value is what you want @ankitmishra , you can just usethis.DataForm.value
inside the click handler
– CruelEngine
Nov 24 '18 at 7:01
Property 'value' does not exist on type 'DataForm'.--It is showing like this
– ankit mishra
Nov 24 '18 at 7:04
|
show 2 more comments
can you post your form code ?
– CruelEngine
Nov 24 '18 at 6:38
form code posted@CruelEngine
– ankit mishra
Nov 24 '18 at 6:57
you want to get the form Value right ?
– CruelEngine
Nov 24 '18 at 6:58
if form value is what you want @ankitmishra , you can just usethis.DataForm.value
inside the click handler
– CruelEngine
Nov 24 '18 at 7:01
Property 'value' does not exist on type 'DataForm'.--It is showing like this
– ankit mishra
Nov 24 '18 at 7:04
can you post your form code ?
– CruelEngine
Nov 24 '18 at 6:38
can you post your form code ?
– CruelEngine
Nov 24 '18 at 6:38
form code posted@CruelEngine
– ankit mishra
Nov 24 '18 at 6:57
form code posted@CruelEngine
– ankit mishra
Nov 24 '18 at 6:57
you want to get the form Value right ?
– CruelEngine
Nov 24 '18 at 6:58
you want to get the form Value right ?
– CruelEngine
Nov 24 '18 at 6:58
if form value is what you want @ankitmishra , you can just use
this.DataForm.value
inside the click handler– CruelEngine
Nov 24 '18 at 7:01
if form value is what you want @ankitmishra , you can just use
this.DataForm.value
inside the click handler– CruelEngine
Nov 24 '18 at 7:01
Property 'value' does not exist on type 'DataForm'.--It is showing like this
– ankit mishra
Nov 24 '18 at 7:04
Property 'value' does not exist on type 'DataForm'.--It is showing like this
– ankit mishra
Nov 24 '18 at 7:04
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53455733%2fi-am-trying-to-send-form-array-to-backend-using-dataform-but-i-am-not-getting-ar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53455733%2fi-am-trying-to-send-form-array-to-backend-using-dataform-but-i-am-not-getting-ar%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
can you post your form code ?
– CruelEngine
Nov 24 '18 at 6:38
form code posted@CruelEngine
– ankit mishra
Nov 24 '18 at 6:57
you want to get the form Value right ?
– CruelEngine
Nov 24 '18 at 6:58
if form value is what you want @ankitmishra , you can just use
this.DataForm.value
inside the click handler– CruelEngine
Nov 24 '18 at 7:01
Property 'value' does not exist on type 'DataForm'.--It is showing like this
– ankit mishra
Nov 24 '18 at 7:04