Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 01:11
    justin7251 edited #498
  • 01:11
    justin7251 opened #498
  • Jun 08 10:41
    rxcontributorone opened #497
  • Jun 08 10:37

    rxcontributorone on Development

    add : new Hr Management System … (compare)

  • Jun 07 16:38
    mohanskumar opened #496
  • Jun 07 09:35
    Ushmidave opened #495
  • Jun 07 09:24
    Ushmidave opened #494
  • Jun 04 00:05
    peterje commented #492
  • Jun 02 18:06
    simfyz commented #482
  • Jun 02 17:31
    simfyz commented #474
  • May 25 10:24
    ajayojha milestoned #465
  • May 25 10:24
    ajayojha milestoned #447
  • May 25 10:15
    ajayojha milestoned #471
  • May 25 10:12
    ajayojha milestoned #483
  • May 25 10:12
    ajayojha milestoned #485
  • May 25 10:10
    ajayojha milestoned #486
  • May 25 10:10
    ajayojha labeled #492
  • May 25 10:06
    ajayojha milestoned #493
  • May 25 10:06
    ajayojha milestoned #446
  • May 25 10:05
    ajayojha milestoned #432
bobbyorst
@bobbyorst:matrix.org
[m]
maybe if you could explains how the algorithm for conditionalExpresion root trigger detecion works, ill figure out something
Ajay Ojha
@ajayojha
@bobbyorst:matrix.org it should work. I would suggest please share the stackblitz url
bobbyorst
@bobbyorst:matrix.org
[m]
hm its problematic to move to stackblitz :/ is there any way to check if the ref detection change is pushed to some kind of array or something? so i could check data
it looks likje the RxBuilder doesnt support root conditionalExprs
bobbyorst
@bobbyorst:matrix.org
[m]
#2 is there way to add validators to @propArray() by decorator? @compose() changes formarray to formcontrol
Prateek Gupta
@prateekg415:matrix.org
[m]
@ajayojha: Hi Ajay, Is there anyway to hide a control on form load based on a condition .. eg.. if the textbox value is blank button should not be visible otherwise it is visible
Ushmidave
@Ushmidave
hi @prateekg415:matrix.org This is possible with hide property which can be set based on condition, have a look at this example
2 replies
Prateek Gupta
@prateekg415:matrix.org
[m]
@Ushmidave: Thanks for the response.. Is there any way we can change the form control description on button click outside the form.. To put it in other ways I want to call model function directly from my component but it gives me overrider error
3 replies
Pushpak Panchal
@pushpk
I am trying to use reactive-form-validators in angular 12 but I get following error as soon as I import RxReactiveFormsModule module ,
"Property 'push' in type 'RxFormArray' is not assignable to the same property in base type 'FormArray'"
1 reply
yoan-asdrubal
@yoan-asdrubal
hi @ajayojha , I am having a problem with greatherThanEqualTo and lessThanEqualTo validators
this.form = this.fb.group({
fechaInicioCtrl: new FormControl('',
[Validators.required, RxwebValidators.lessThanEqualTo({
fieldName: 'fechaFinCtrl'
})]),
fechaFinCtrl: new FormControl('',
[RxwebValidators.greaterThanEqualTo({
fieldName: 'fechaInicioCtrl'
})]
)
})
}
every change in one control emite one change in the other control
i am Subscribed to each control , and every change of one of them, emit a change to the other one, i remove lessThanEqualTo y greaterThanEqualTo validators and its works perfectly
Barzille
@Barzille
Hey @ajayojha, can you help us on rxweb/rxweb#490
Ajay Ojha
@ajayojha
@Barzille will check and fix the same on Wednesday
2 replies
Barzille
@Barzille
Thank you :)
anish.samuel84
@anish.samuel84:matrix.org
[m]

Hello.. I am trying to hide and show a control conditionally. The hide works fine but I have a problem with show

Below is the json configuration:
[ { "name": "userAccessLevel", "type": "radio", "source": [ { "value": 1,"text": "Plant Level User "}, { "value": 2,"text": "Central User"} ], "ui": { "label": "User Access "}},
{ "name": "plant", "type": "select", "source": [ { "value": 1,"text": "Plant 1 "}, { "value": 2,"text": "Plant2"} ], , "ui": {"label": "Plant", "placeholder": "Select Plant"}, "modelName":"mfgProModel"},
{ "name": "approvalPath", "type": "checkbox", "source": [ { "value": 1,"text": "Approval 1 "}, { "value": 2,"text": "Approval 2"} ] ,"ui": {"label": "Approval Path", "placeholder": "Select Approval Path"}, "modelName":"mfgProModel1"} ]

Below is the Model:
export class MFGProModel extends FormControlConfig {
private _hide: boolean;
get hide() {
if (this.controlsConfig.userAccessLevel.value == 2) {
return true
} else {
return false
}
}
set hide(value: boolean) {
this._hide = value;
}
}

export class MFGProModel1 extends FormControlConfig {
private _hide: boolean;
get hide() {
if (this.controlsConfig.userAccessLevel.value == 1) {
return true
} else {
return false
}
}
set hide(value: boolean) {
this._hide = value;
}
}

Anish Samuel
@anish.samuel84:matrix.org
[m]
Jon Rosenbaum
@gs-scooter
rxweb/rxweb#490 - Could someone please provide an ETA for this fix? Thanks.
Ajay Ojha
@ajayojha
@gs-scooter tomorrow will be released a new version which fixes angular 12 issues
Bibinthayyil
@Bibinthayyil
Hi Friends,
I want to pass json to the dropdown from web api
EG:
{
name: "department",
type: "select",
//source: [{ value: 1, text: "Male" },{ value: 2, text: "Female" }],
source: 'http://localhost:84/api/Anonymous/BindDropdown',
ui: {
label: 'Department',
placeholder: 'Select',
}
}
Ajay Ojha
@ajayojha
@Bibinthayyil kindly refer the sync source binding section, here is the link https://docs.rxweb.io/reactive-dynamic-forms/controls/dropdown#cascadingdropdownwithsyncsourcebinding
ray314
@ray314
Hello. I get an "Cannot read property '0' of undefined" when I try to add unique validator to a form control:
mayupadh
@mayupadh
Hi I am unable to understand, on editing my form valid shows false and button bcome disable instead all validation passed and value filled properly in inputs
image.png
Plz guide
Ushmidave
@Ushmidave
@mayupadh kindly share the code snippet
Ushmidave
@Ushmidave
@ray314 You need to return a formGroup in the getSkiilsFormGroup method and use the formControlName in the template, refer to this corrected stackblitz
mayupadh
@mayupadh
@Ushmidave pls find above code files
ronakcshah
@ronakcshah
Screen Shot 2021-06-09 at 6.02.57 PM.png
How can I make my multi-select dropdowns searchable?
ronakcshah
@ronakcshah
Any help on if the above is possible?
Bibinthayyil
@Bibinthayyil
RxWeb.PNG
RxWebComp.PNG
Im getting the console error that "core.js:4352 ERROR TypeError: Cannot read property 'formGroup' of undefined". UI and binding is working fine except the console error.
Bibinthayyil
@Bibinthayyil
1.PNG
2.PNG
3.PNG
Hi brother, There is no error when im binding the json from a variable
but when i tried from http client it shows the same error message " ERROR TypeError: Cannot read property 'formGroup' of undefined"
Please help
Ushmidave
@Ushmidave
hi @Bibinthayyil kindly check there are FormsModule,ReactiveFormsModule,RxReactiveDynamicFormsModule,RxReactiveFormsModule registered in the module file
9 replies
Ushmidave
@Ushmidave
@ronakcshah you need to form a custom control for making it searchable the default dropdown wont provide the same
Fayas Ismail
@simfyz
Hi @ajayojha !
Is there any update on this issue #474
Ajay Ojha
@ajayojha
@simfyz will be fixed in next week.
2 replies