[CLOSED] Get the value of a Dynamically created Checkbox

  1. #1

    [CLOSED] Get the value of a Dynamically created Checkbox

    Hi,

    I've created a few Textboxs and one Checkbox dynamically in a DirectEvent.
    When I want to gather the Textbox value I do this:

     string cantidadfield = X.GetCmp<TextField>("iDcantidad").Text;
    And it works prefectly

    But Checking if the Checkbox is Checked or not is being impossible. How can I do this?
    Last thing i've tried was something like this:
     if(X.GetCmp<Checkbox>("IDpack").Checked)
                    {
                        pack = 0;
                    }
                    else
                    {
                        pack = 1;
                    }
    But is not working either

    Thank You
    Last edited by fabricio.murta; Oct 06, 2018 at 12:17 AM.
  2. #2
    Hello @PascuV!

    Can't tell much without being able to reproduce this in our side. Can you wrap up an example based on how you set up the direct event and page? I don't think we have any example in examples explorers doing something like that, so that's unlikely we'll be able to reproduce your scenario in our side without knowing how you built it. If in doubt, please refer to our guidelines on posting in the forums:

    - Tips for creating simplified code samples
    - More Information Required
    - Forum Guidelines

    Looking forward to your follow-up.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hi Fabricio!

    I don't know why but the code I posted yesterday It's working fine now. Sorry

    You can close the Thread.

    Thank You very much

Similar Threads

  1. Help with controls created dynamically.
    By Master15 in forum 3.x Help
    Replies: 3
    Last Post: Feb 20, 2016, 3:56 AM
  2. Buttons created dynamically don't appear
    By Prybe in forum 2.x Help
    Replies: 3
    Last Post: Aug 22, 2014, 8:13 PM
  3. Replies: 1
    Last Post: Nov 05, 2013, 2:12 AM
  4. Replies: 3
    Last Post: May 29, 2013, 3:49 AM
  5. [CLOSED] [1.0] Dynamically load checkbox in Checkbox Group
    By vali1993 in forum 1.x Premium Help
    Replies: 1
    Last Post: Jun 14, 2010, 5:05 PM

Posting Permissions