- Home
- Forum
- Angular - EJ 2
- setRulesFromSql method not working as expected
setRulesFromSql method not working as expected
HTML:
TS:
- Content of configColumnasDTO.configColumnasQueryBuilderItem:
- onfigColumnasQueryBuilderItem: [{tipocampo: "string", idcampo: "226", nombreenconsulta: "RESIDENTE",…},…]
- 0: {tipocampo: "string", idcampo: "226", nombreenconsulta: "RESIDENTE",…}
- 1: {tipocampo: "number", idcampo: "3407", nombreenconsulta: "AÑOS EJERCICIO NATURALES", selectayuda: null}
- 2: {tipocampo: "number", idcampo: "222", nombreenconsulta: "AÑOS COLEGIACION", selectayuda: null}
- 3: {tipocampo: "string", idcampo: "3000", nombreenconsulta: "TIPO COLEGIADO",…}
- 4: {tipocampo: "number", idcampo: "3002", nombreenconsulta: "AÑOS EJERCICIO", selectayuda: null}
- 5: {tipocampo: "number", idcampo: "3412", nombreenconsulta: "SEMESTRES COLEGIACION", selectayuda: null}
- 6: {tipocampo: "date", idcampo: "3037", nombreenconsulta: "FECHA INCORPORACION", selectayuda: null}
- 7: {tipocampo: "string", idcampo: "455", nombreenconsulta: "ESTADOCIVIL",…}
- 8: {tipocampo: "number", idcampo: "3410", nombreenconsulta: "AÑOS NATURALES DESDE F. JURA",…}
- 9: {tipocampo: "string", idcampo: "230", nombreenconsulta: "COMUNITARIO",…}
- 10: {tipocampo: "number", idcampo: "454", nombreenconsulta: "EDAD", selectayuda: null}
- 11: {tipocampo: "string", idcampo: "3004", nombreenconsulta: "TIPO DE SEGURO",…}
- 12: {tipocampo: "number", idcampo: "3408", nombreenconsulta: "AÑOS COLEGIACION NATURALES",…}
- 13: {tipocampo: "string", idcampo: "3003", nombreenconsulta: "GRUPO CLIENTE",…}
- 14: {tipocampo: "string", idcampo: "450", nombreenconsulta: "NIF/CIF", selectayuda: null}
- 15: {tipocampo: "string", idcampo: "217", nombreenconsulta: "SEXO",…}
- 16: {tipocampo: "number", idcampo: "3411", nombreenconsulta: "TRIMESTRES COLEGIACION", selectayuda: null}
- 17: {tipocampo: "number", idcampo: "3409", nombreenconsulta: "AÑOS DESDE FECHA DE JURA", selectayuda: null}
method setRulesFromSql doesnt work with that code however If I do a simple try like this:
div *ngFor="let campo of configColumnasDTO.configColumnasQueryBuilderItem; let i = index">
<e-column *ngIf="campo.selectayuda == null && campo.tipocampo != 'date'" field="dni" label="DNI" type="string" [operators]="customOperators"></e-column>
+
this.constructorConsultas.setRulesFromSql("dni = 'hfhg'");
changing field for dni instead using 450 in field attribute works, why doesnt work using campo.idcampo (450) and yes using dni value?
Besides when I used getSqlFromRules after doing the sql manually he gives me 450 = 'hfhg' but it doest work in setRulesFromSQl.
Thanks.
Hi Gayathri, despite I m logged the link shows me access denied.
Regards,
Alejandro.
Hi, Has It been released the needed 1st December patch for solving this issue?
Hi Alejandro,
We are sorry for the delay.
We are facing more complexity in fixing this issue. So, we will include this fix in our upcoming patch release which will be scheduled for December 8th,2021 and we appreciate your patience until then. You can track its status from the below feedback link.
Feedback: https://www.syncfusion.com/feedback/30500/when-field-is-set-as-number-setrulesfromsql-is-not-working
We appreciate your patience until then.
Regards,
Gayathri K
Hi, was the patch released? I have tried with v19.3.57 version released 7th December but the problem still persists.
Regards.
Alejandro.
Hi Alejandro,
We are deeply sorry for the delay.
We need to ensure more test cases for this fix. So, we will include this fix in our Volume 4 main release which will be scheduled for December 17th,2021. You can track its status from the below feedback link.
Feedback: https://www.syncfusion.com/feedback/30500/when-field-is-set-as-number-setrulesfromsql-is-not-working
We appreciate your patience until then.
Regards,
Gayathri K
- 9 Replies
- 3 Participants
-
AL Alejandro
- Nov 16, 2021 01:16 PM UTC
- Dec 21, 2021 07:00 AM UTC