Suggestion to add label and checkboxes dynamically

Hi,
I am trying to add labels and check boxes dynamically when I touch a button. I am able to generate the labels and check boxes when I click buttons. Can any one suggest a general layout manager for this? Where do I add the componenst dynamically? Thanks.
Edited by: Lilly07 on Mar 20, 2008 8:10 AM

Hi,
I am reading about gridBagLayout. I tried with Flow layout and it was messy.
I will be having 4 buttons, 2 on top and 2 at the buttom, where as If I click one of the top right button, I have to populate labels and check boxes in the centre(mid) area. For every click, I will be populating one label and set of check boxes.. How do I do this?
button1     button2
....(dynamically populated mid area)
button3      button4I am able to add all the buttons in the layout. But how do I declare the mid area where dynamically populated ones will be added. Any suggestions would be helpful. Thanks.

Similar Messages

  • Add Label (and other things like SequenceCall, Statement etc) in Main Sequence ?

    Hi all,
    I try to add Label in Main sequence, but problem is how to refer there. Successfully were done subsequences and their content, but now want to add content in main sequence (labels, SequenceCall, Statement etc). Can you someone help me with this code ? (CVI/LabWidows). This code in intended to add Label (szName) into Main sequence.
    Before entering Label, need to refered to Main in Sequence file. This part missing.
    tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path, TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle));
    tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "","Label",&labelStep));
    tsErrChkMsgPopup( TS_StepSetName (labelStep, &errorInfo, szName));
    error = TS_SequenceInsertStep (SequenceFileHandle, &errorInfo, labelStep, indexL, TS_StepGroup_Main);
     I've tryed with TS_SeqContextGetMain(), but does not work.
    Best regards,
    branar
    Solved!
    Go to Solution.

    Hi Ray,
    Still does not work. I've tried first to add Sequence, but it was add subsequence (not is MainSequence)
    tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path,
    TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle));
    // tsErrChkMsgPopup( TS_EngineNewSequence (EngineHandle, &errorInfo, &newSequence));
    // tsErrChkMsgPopup(TS_SequenceSetName (newSequence, NULL, "Main"));
    // tsErrChkMsgPopup( TS_SeqFileInsertSequence (SequenceFileHandle, &errorInfo, newSequence));
    tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "","Label",&labelStep));
    tsErrChkMsgPopup( TS_StepSetName (labelStep, &errorInfo, szName));
    error = TS_SequenceInsertStep (SequenceFileHandle, &errorInfo, labelStep, indexL, TS_StepGroup_Main);
     After that, I was tried with:
    tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path,
    TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle));
    tsErrChkMsgPopup( TS_SeqFileGetSequence (SequenceFileHandle, &errorInfo, 0, &Sequence));
    tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "","Label",&labelStep));
    tsErrChkMsgPopup( TS_StepSetName (labelStep, &errorInfo, szName));
    error = TS_SequenceInsertStep (SequenceFileHandle, &errorInfo, labelStep, indexL, TS_StepGroup_Main);
     Problem is probably in defining seq. file's MainSequence. So, I use two files (one default where i get normal subsequencies, and second (target), created with new formed subsequencies and default file. New subsequencies are copied into a target file. Adding context in MainSequence seems to be problematically, at least for me. I want first to "fulfill" mainSequence (trying to get code for this) and after that rest of subsequences and default context. My code currently create subsequences and their context succesfully.
    best regards,
    branara

  • Add parm and more dynamic

     How can I add the parm of userid password for machines that need SQL authenication. In the script it passes in Server now I want 2 other pieces
    a userid and password. If both blank use a trusted connection. The second piece would be to add a DateTime to the report and
    store it in a Network folder like
    \\server\db_inventory\filename. I would like the script just to append new days actiivity to the report.
     Thanks.
    #Create a new Excel object using COM
    $Excel = New-Object -ComObject Excel.Application
    $Excel.visible = $True
    $Excel = $Excel.Workbooks.Add()
    $Sheet = $Excel.Worksheets.Item(1)
    $intRow = 1
    ForEach ($instance in Get-Content "C:\sql_servers.txt")
    [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null
    $s = New-Object ('Microsoft.SqlServer.Management.Smo.Server') $instance
    $dbs=$s.Databases
    $intRow++
    #Create column headers
    $Sheet.Cells.Item($intRow,1) = "Server: $s"
    $Sheet.Cells.Item($intRow,1).Font.Size = 12
    $Sheet.Cells.Item($intRow,1).Font.Bold = $True
    $intRow++
    $Sheet.Cells.Item($intRow,2) = "Database"
    $Sheet.Cells.Item($intRow,2).Font.Bold = $True
    $Sheet.Cells.Item($intRow,3) = "Data Name"
    $Sheet.Cells.Item($intRow,3).Font.Bold = $True
    $Sheet.Cells.Item($intRow,4) = "Data File"
    $Sheet.Cells.Item($intRow,4).Font.Bold = $True
    $sheet.Cells.Item($intRow,5) = "Data Size (MB)"
    $Sheet.Cells.Item($intRow,5).Font.Bold = $True
    $Sheet.Cells.Item($intRow,6) = "Data Used Space (MB)"
    $Sheet.Cells.Item($intRow,6).Font.Bold = $True
    $Sheet.Cells.Item($intRow,7) = "Log Name"
    $Sheet.Cells.Item($intRow,7).Font.Bold = $True
    $Sheet.Cells.Item($intRow,8) = "Log Size (MB)"
    $Sheet.Cells.Item($intRow,8).Font.Bold = $True
    $Sheet.Cells.Item($intRow,9) = "Log Used Space (MB)"
    $Sheet.Cells.Item($intRow,9).Font.Bold = $True
    $Sheet.Cells.Item($intRow,10) = "Log File"
    $Sheet.Cells.Item($intRow,10).Font.Bold = $True
    foreach ($db in $dbs)
    $dbname = $db.Name
    $fileGroups = $db.FileGroups
    ForEach ($fg in $fileGroups)
    # write-host $fg.files | select name
    If ($fg)
    $intRow++
    $mdfInfo = $fg.Files | Select Name, FileName, size, UsedSpace
    $Sheet.Cells.Item($intRow,2) = $dbname
    $Sheet.Cells.Item($intRow,3) = $mdfInfo.Name
    $Sheet.Cells.Item($intRow,4) = $mdfInfo.FileName
    $Sheet.Cells.Item($intRow,5) = ($mdfInfo.size / 1000)
    $Sheet.Cells.Item($intRow,6) = ($mdfInfo.UsedSpace / 1000)
    $logInfo = $db.LogFiles | Select Name, FileName, Size, UsedSpace
    $Sheet.Cells.Item($intRow,7) = $logInfo.Name
    $Sheet.Cells.Item($intRow,8) = ($logInfo.Size / 1000)
    $Sheet.Cells.Item($intRow,9) = ($logInfo.UsedSpace / 1000)
    $Sheet.Cells.Item($intRow,10) = $logInfo.FileName
    $intRow++
    $Sheet.UsedRange.EntireColumn.AutoFit()

    You could use some nested hash tables to accomplish as well with your requirement of multiple instances along with multiple credentials.
    #Requires -Version 3.0
    $Hash = @{
    Instance1 = @{
    UserName = 'user1'
    Password = 'password1'
    Instance2 = @{
    UserName = 'user2'
    Password = 'pass1'
    Instance3 = @{
    Username = ' '
    Password = ' '
    Instance4 = @{}
    $Hash.GetEnumerator() | ForEach {
    If ((-Not [string]::IsNullOrWhiteSpace($_.Value.UserName)) -AND `
    (-Not [string]::IsNullOrWhiteSpace($_.Value.Password))) {
    Write-Verbose "$($_.Name): Make connection using credentials" -Verbose
    } Else {
    Write-Verbose "$($_.Name): Make connection using trusted connection" -Verbose
    This does require PowerShell 3.0 for the use of IsNullOrWhiteSpace method in System.String.
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • How does one label and add description to multiple photos?

    How does one add label and description to multiple photos in one action as one could do in iPhoto?
    Bob Wines

    This link asks the same question,  https://discussions.apple.com/thread/6994338?searchText=How%20do%20I%20add%20a%2 0description%20to%20multiple%20photos?
    Someone shows the method to use AppleScript/ Automator to make Photos add the same description to multiple photos. I just opened up AppleScript editor and poked around the Dictionary for Photos and saw we have access to GPS longitude,latitude and altitude. So by using a third party app/web page to get those values, an Apple Script could be used to batch add the info to selected photos. That being said, I'm really busy these days and lack time to write scripts and migrate to photos.

  • Programmatic, using bean add Parent and child nodes in af:tree dynamically

    Hi All,
    i have to add parent and child nodes dynamically in tree .
    Example :
    i have created a tree like below.On click of button i will get value A ,from pl/sql function i will A1 and A 2 values.which i have to show in pop as tree.
    A
    |-----A1
    |-----A2
    If user clicks on A2.I have to catch A2 value and pass to pl/sql function which gives A2.01 and A2.02 values.
    A
    |-----A1
    |-----A2
    |------A2.01
    |------A2.02.
    A, A1 ,A2,A2.01 ...........values comes from pl/sql funchtion .
    thanks in advance ......... any suggestion will greatly helps

    no use ......................

  • Dynamic Table - Add rows and columns in same table

    Hi there,
    I wonder if someone could help please? I'm trying to create and table where a user can add both rows and columns (preferably with separate buttons) but am having trouble trying to figure out how to do this. Is it possible? If so how? I'm not familar with script but have found examples of seprate tables where you can add a row and then another table where you can add columns and essentailly want to merge the two but cannot make it work.
    Any help much appreciated!
    Thanks,
    Ken

    It is great example....you can learn the concepts there and apply....however you may have to think twice before you implement column adding dynamically....because the technique here is make copy of what we already have and reproduce it as a new item and this technique works great for rows as they all have every thing in common. But when it comes to columns it may have unique visible identity as column head and displaying repeatedly the same column head may not look good. Of-Course you can do few extra lines of code and change the column appearance based on users input each time. Situations where users need to add additional column is very unlikely (sure your requirement might be an exception).
    Key in allowing adding/removing instances is managing design mode settings under Object>>Binding>>....and select the checkbox "Repeat <subform/row/...> for Each Data Item" and then set Min, Max and Initial count values.
    Also you need to club your effots by using simple scipt with button clicks....
    for the example refered in URL you posted following is what I did to make the first table allow Adding/Removing Rows....
    1. Opened the form in LC designer.
    2. Add two buttons AddRow & RemoveRow right next to RemoveColumn
    3. For AddRow I used following JS code....
          Table1._Row1.addInstance(1);//that means any time this button is clicked a new instance of Row1 is added use _Row2 or Row3 based on your needs
          var fVersion = new Number(xfa.host.version); // this will be a floating point number like "7.05"
          if (fVersion < 8.0) // do this for Acrobat versions earlier than 8.0
           // make sure that the new instance is properly rendered
           xfa.layout.relayout();
    4.  For RemoveRow I used following JS code....
         Table1._Row1.removeInstance(1);//Syntax is...<objectReference>.removeInstance(<index of the repeating object that needs to be removed>); //in this case since we used 1 alwasys second object from top gets deleted.
          var fVersion = new Number(xfa.host.version); // this will be a floating point number like "7.05"
          if (fVersion < 8.0) // do this for Acrobat versions earlier than 8.0
           // make sure that the new instance is properly rendered
           xfa.layout.relayout();
    5. Now time to update settings at Object>>Binding tab and set "Repeat......" and also set Min, Max and Initial count as explained above.
         Those settings needs to be updated for Row1 (or your choice of row) of the table
    6. Set the Height to Expand of the Subform, where the table is housed....  this is done under Layout pallet
    7. Save the PDF as dynamic template and verify the results...
    If you still run into issues I can send you copy that works on my machine, but you need send me an email at n_varma(AT)lycos.com
    Good luck,

  • Dynamic Page Rendering (based on the difinition for labels and field setup)

    We have a requirement to display pages dynamically based on the setup or configuration for labels and fields.
    1. For example (the display page will look like):
    Company Name: -------------------------
    DB No:
    2. Setup for this will be in a UI (saved to the database):
    Page Seq Label Field type size
    1 1 Company Name comp_nm text char(50)
    1 2 DB No db_no number
    The pages will be rendered through the database procedure for the above.
    Thanks in advance for help.

    Hi Timo
    JDEV Version: Studio Edition Version 11.1.2.2.0
    I mean the definitions for the page like labels, text fields will be setup as this page will change as per the business requirements.
    We are open to sql or xml if the db procedure will not work.
    The objective is to give the business user to add anything to the page (for example, we have a lot of questions which changes in time due to specific business needs), so that the user can add a question or disable one based on the need.
    Hope if clarifies.
    Thanks
    Bibs

  • Dynamic Label for CheckBox

    Hi,
    I am creating CheckBox dynamically based on the entries in the table.
    Is it possible to give them label dynamically as I am creating it. I want to do it in simple ABAP. I am in Basis and do not want to go to Module programming or Dypro etc.
    I will be glad if it is possible via simple ABAP.
    Regards,
    SC

    Hi SC,
    you could try the following code snippet:
    PARAMETERS: p_xcheck AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      %_p_xcheck_%_app_%-text = 'hola'.
    (extracted from [SAP ABAP Help - Dynamic Parameter Texts in Selection Screen|http://help-abap.zevolving.com/2009/04/dynamic-parameter-texts-in-selection-screen/] and Dynamic changes to the text field label on a screen
    Kind regards,
    Alvaro

  • Add label on y-axis and x-axis in excel using Report Generation toolkit

    Hello,
    I want to add label in x-axis(Date/Time) and y-axis(Temperature O=oC)
    There are only header and data array connection, how can i add label to the chart?
    Thank you.

    Hello,
    The way I've done this is by specifying the string inputs named "Column Header" and "Row Header" on the Excel Insert Graph.vi. This should provide the axis labels that you specify on your graph.
    Cheers,
    Emilie

  • How to create checkbox group and table dynamically?

    HI All
    How to create checkbox group and table dynamically?
    Regards
    Ravi

    hi
    check this links for creating  tables dnamically
    How to Create a table dynamically?
    Re: how to create a table dynamically in webdynpro
    and for checkboxgroup
    IWDTransparentContainer rootContainer =
    (IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
    //Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
    check.setChecked(false);
    rootContainer.addChild(check);
    or Re: adding checkboxes dynamically

  • Grab Frame Number, add 6 and display in dynamic textbox

    Hey,
    I have a gallery that needs numbered images. To do this I
    need to grab the current frame number of a parent movie, add 6 and
    display in a dynamic textbox. Sounds simple!
    The frame number I need to grab is in:
    _root.gallery
    The dynamic textbox has the var name 'displayNumber' and is
    in:
    _root.gallery.controlbox
    I need this to refresh every time the frame number changes in
    the _root.gallery clip. This is a fairly urgent project so swift
    help is obviously appreciated!
    Thank you in advance

    your code will work if all you state is valid and there's no
    other _root.gallery.onEnterFrame overwriting the one you
    posted.

  • How do i have subsequent fields label and values move down the page dynamic

    how do i have subsequent fields label and values move down the page dynamicly...
    the field in question "can grow" and can become quite big...overlaping the content of the fileds below...how can i make the fields below this large field move dyanmically so there is no overlap?

    if it is the same field and it is set to can grow you just need to make sure you put space between by inserting a section below

  • Label and Button in VBox, how to dynamically insert something between them?

    I'm probably missing something simple here, but scratching my head. If I have a VBox with a label and a button in it, is there no way to insert a new child between the other two children ? Something like a way to get at "nth child"? or "insertAtIndex" ? Most likely I am just thinking about this wrong-headedly. Thanks.

    ah, so .add() takes an int which determines the position among the children in which it will be inserted? I knew I was completely missing something critically simple. Thank you.

  • [svn:fx-trunk] 10889: Add FTETextTests which check that a Label and NumericStepper configured to use FTEText have a textField and textInput , respectively, of type UIFTETextField and MXFTETextInput.

    Revision: 10889
    Author:   [email protected]
    Date:     2009-10-06 09:29:53 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Add FTETextTests which check that a Label and NumericStepper configured to use FTEText have a textField and textInput, respectively, of type UIFTETextField and MXFTETextInput.  The components are configured via style properties rather than by theme which would require another version/compile of the BasicTests.swf.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer: Alex
    Tests run: basictests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests-config.xml
        flex/sdk/trunk/frameworks/tests/basicTests/BasicTests.mxml
    Added Paths:
        flex/sdk/trunk/frameworks/tests/basicTests/halo/scripts/FTETextTestScript.mxml
        flex/sdk/trunk/frameworks/tests/basicTests/halo/views/FTETextTests.mxml

    I'm also having this problem. I'm using Flash Builder 4.6, AIR 3.4 and I've made a DLL (e.g. ExtensionDll.dll) which needs to call functions in another DLL (e.g. DllUsedByExtensionDll.dll) . I've made sure my ANE is working with the ExtensionDll.dll already, so there are no issues with my actionscript code or my ANE packaging or my DLL compilation. However, once I start calling functions from the other DLL, it starts throwing me Error #3500. Even if I call this function (e.g. abc()) in ExtensionDll.dll, but I never actually use the function from actionscript, and I call another function (e.g. def()) from actionscript, the Error #3500 still appears, so it does not seem to depened on the whether the code is used or not.
    It's similar to this problem.
    http://stackoverflow.com/questions/9823504/how-to-use-external-dll-in-air-native-extension
    Does anyone have a solution or at least a way to debug this?

  • How to add a JPanel with label and border line

    hi,
    I want a Jpanel with label and border line like this.Inside it i need to have components.Is there a resuable component to bring this directly??
    Any solution in this regards.???
    Label-----------------------------------------------------------
    | |
    | |
    | |
    | |
    | |
    |________________________________________ |

    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html]How to Use Borders

Maybe you are looking for

  • New event in calendar

    I can't create events in my calendar. It won't even let me press "+" button. Help!

  • Pinball test fixture

    I am real new to Labview and I thought this would be a simple project to help me with the learning process.  I want to build a test fixture for the Pinball machine pcbs.  I have a number of them in storage from different manufactures.  I think most o

  • "Find Form" calendar is not working after migration

    Hi, We have migrated from Oracle 9i to 10g.we have one form ''FormA" and "find form" for that FormA.Calendar functionality is present in both FormA and "Find FormA".if we try to use calendar functionality in "Find formA",its giving error like FRM-401

  • Download error message 7

    I just purchased the cloud and photoshop and bridge downloaded just fine but LR5 is giving me this error message: Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW006 ... --------------------------------------

  • ITunes freezing while synching apps!

    k the apps on my iPhone have stopped working so i deleted them all and wanted them to synch back on but now iTunes froze and doesnt response but my iPhone still says "synching" should i leave it alone or should i force iTunes to close and try it agai