Custom Control - InfoPath Dev
in

InfoPath Dev

Custom Control

Last post 07-22-2005 09:42 AM by Richard. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-20-2005 07:39 PM

    Custom Control

    I have added a custom control ( a textbox in it) to the form.
    with value and enable mapped.

    1- Can not bind it to a secondary.!

    2- Tried to add On_After_Change or a rule , but it does not show up unless you start to close the form or switch the view. !


    Any tips to go around both issues ?
  • 07-20-2005 10:19 PM In reply to

    Hi Richard,
    1. By custom control did you ActiveX" control? or a regular InfoPath Textbox control?
    If you want to bind text box to a Secondary datasource then drop the secondary datasource element into the UI then that control should automatically connect secondary datasource.

    2. You can add On_After_Change or a rule on a datasource element, it need not be on the control.

    Agni
    InfoPath Dev India
  • 07-21-2005 09:09 AM In reply to

    It is an active X custom control coded in c#.
    modified the ict file to reflect the id and it show up under the custom controls.
  • 07-21-2005 01:59 PM In reply to

    It would be hard for us to answer without knowing actual scenario, If you can send us your custom control we can try it out and let you know why it is breaking.

    Agni
    InfoPath Dev India
  • 07-22-2005 09:42 AM In reply to

    Ok, the On_After_Change is solved , because the value was not being set.

    Binding I was able to do with modifying the view.xsl, and changing the following:
    xd:binding="xdXDocument:GetDOM("mycon")/myfield">

    <xsl:attribute name="src">

    <xsl:value-of select="xdImage:getImageUrl(xdXDocument:GetDOM("mycon")/myfield)"/>

    </xsl:attribute>


    But I am wondering how I can make a property page for this contorl that shows up in the infopath together with the rest of the property pages..Because, it is a big hastle to keep changing the view.xsl each time.

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