Change fill color, etc.. - InfoPath Dev
in

InfoPath Dev

Change fill color, etc..

Last post 05-11-2012 06:00 AM by jsherman. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 05-09-2012 08:09 AM

    Change fill color, etc..

    Hello

      Is it possible to change the fill color of a control in InfoPath using vb.net code??

  • 05-09-2012 02:02 PM In reply to

    Re: Change fill color, etc..

    AFAIK, you don't have access to control properties via code in InfoPath which includes fill color.
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 05-10-2012 03:24 AM In reply to

    Re: Change fill color, etc..

    You can, however, use conditional formatting rules to control the fill color.
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 05-11-2012 06:00 AM In reply to

    Re: Change fill color, etc..

    Ok... That's what I've ended up doing.. However I have a field in a repeating table.. My code sets that field to true, it's false by default.. I can't seem to setup the condition on confitional formating rule correctly.. I want the rule to disable the field only in rows where the field's attribute = true.. Meaning if row 1 is true the field is disalbed but it row 2 is fals ethe field is enabled and row 3 is true the disable, etc...

     This is the expression I have tried: and several other variants..

    /my:myFields/my:RequestData/my:ItemSyteLineInfo/my:ItemSyteLineInfo_BOM/my:ItemSyteLineInfo_BOM_Operations/my:ItemBOMOpOperation[current()]/@my:IsExisting = "true"

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.