Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Hint Style Mixup

    Hi,

    I'm having a "hint" styling issue following a clearValues() and a setValues() to a field. The field values get reset
    properly but the field displays using the HINT style instead of the appropriate/regular style.

    The steps to reproduce the problem are as follows :

    1) Choose a value in the combo box.
    2) Click the "No problem here" button. Field gets cleared, hint shows in the field. All ok ...
    3) Choose a value in the combo box.
    4) Click the "Reproduce issue" button. Field gets cleared, value gets set back OK, but the value is displayed using
    the "hint" style instead of the regular field style.

    Here's the code to reproduce the problem :
    Code:
    <HTML>
    	<HEAD>
    		<SCRIPT>
    			window.isomorphicDir = 'isomorphic/';
    		</SCRIPT>
    
    		<SCRIPT SRC="isomorphic/system/modules/ISC_Core.js"></SCRIPT>
    		<SCRIPT SRC="isomorphic/system/modules/ISC_Foundation.js"></SCRIPT>
    		<SCRIPT SRC="isomorphic/system/modules/ISC_Containers.js"></SCRIPT>
    		<SCRIPT SRC="isomorphic/system/modules/ISC_Grids.js"></SCRIPT>
    		<SCRIPT SRC="isomorphic/system/modules/ISC_Forms.js"></SCRIPT>
    		<SCRIPT SRC="isomorphic/system/modules/ISC_DataBinding.js"></SCRIPT>
    		<SCRIPT SRC="isomorphic/skins/EnterpriseBlue/load_skin.js"></SCRIPT>
    
    		<TITLE>Investigation - selected value displayed with hint CSS</TITLE>
    	</HEAD>
    
    	<BODY>
    		<SCRIPT>
    
    		var dataSource = DataSource.create
    		({
    			ID : 'dataSource',
    			fields : [
    				{ name : 'fieldName', required : true, type : 'select' }
    			]
    		});
    
    		var valuesManager = ValuesManager.create({ dataSource : 'dataSource' });
    
    		var myForm = isc.DynamicForm.create
    					({
    						valuesManager : valuesManager,
    						fields :
    						[
    							{
    								name : 'fieldName',
    								type : 'select',
    								required : true,
    								valueMap :
    								{
    									'value1' : 'label1',
    									'value2' : 'label2',
    									'value3' : 'label3'
    								},
    								title : 'field',
    								showHintInField : true,
    								hint : 'this is my hint'
    							}
    						]
    					});
    
    		var myLayout = VLayout.create({
    			width : 400,
    			members :
    				[	isc.Label.create({ contents: "Selector displaying value with hint CSS after clicking on 'reproduce issue' button" }),
    					myForm,
    					IButton.create
    					({
    						title: 'no probleme here',
    						click: 'myLayout.scenarioOk();'
    					}),
    					IButton.create
    					({
    						title: 'reproduce issue',
    						click: 'myLayout.scenarioFailure();'
    					})
    
    				],
    				//----------------------------------------------------------------------------------------------------------------------------
    				scenarioOk : function()
    				{
    					myForm.valuesManager.setValues(null);
    				},
    				//----------------------------------------------------------------------------------------------------------------------------
    				scenarioFailure : function()
    				{
    					var savedValues = myForm.valuesManager.getValues();
    					myForm.valuesManager.clearValues();
    					myForm.valuesManager.setValues(savedValues);
    				}
    
    		});
    
    		</SCRIPT>
    	</BODY>
    </HTML>
    Is this a bug ? If not, do you have any idea on how I can avoid this behavior ?

    Thanks,

    #2
    Anyone had a chance to look into this one ?

    Tx!

    Comment


      #3
      We're reproducing it, and looking into the cause but don't yet have a resolution. We should have something in the next couple of days.

      Regards
      Isomorphic Software

      Comment


        #4
        Thanks. I'll stay tunned !

        Comment


          #5
          Can you also let us know which build you're currently using so we can be sure we patch the correct branch

          Comment


            #6
            We're using 8.2p (SmartClient_v82p_2012-07-24) ... This is not a production issue, but a development
            issue we encountered.

            Therefore, we don't need a patch for this item. Simply adding it to your 8.2p mainline will be good for
            us. We'll upgrade to the latest version of 8.2p following the fix.

            Thanks,

            Comment


              #7
              Ok we've made a change which we believe will address this. It's present in both the 8.2p branch and the 8.3d branch and should hit the next nightly build.

              Let us know if it doesn't resolve things for you

              Comment


                #8
                Hi,

                Thanks for the fix. It seems to have resolved my issue. I'll have my QA person test for any regressions.

                If you don't hear back from me, it's all good.

                Thanks again!

                Comment

                Working...
                X