Forum Post: Re: New Ui - Link Lookup/main Lookup And Disabling Field

  • Thread starter Thread starter Meryk
  • Start date Start date
Status
Not open for further replies.
M

Meryk

Guest
Hi Harsha, Ok I think I did not mention that the lookup field I am talking about is a picklist. So I dont have any search Button or add Button to disable. I will resume the situation again: On a QC page I have a lookup field A, rendered as a Selector. Then I have a lookup field B rendered as a Picklist. A is a main lookup and B is a link lookup on A in that object. Here is what I am doing : function enableDisableFieldB(){ var fieldAmultiSelect = $('#fieldA').data('kendoMultiSelect'); if(rbf_isEmpty(fieldAmultiSelect.value()){ $('#fieldB').data('kendoDropDownList').enable(false); } else{ $('#fieldB').data('kendoDropDownList').enable(false); } } $(document).ready(function(){ enableDisableFieldB(); // This one is working fieldAMultiSelect.bind('change', function(){ enableDisableFieldB(); // This one is not }) }); Do you see the problem now ? When I remove the main lookup/link lookup between A and B it is working fine. Thanks Meryem

Continue reading...
 
Status
Not open for further replies.
Back
Top