Building OutlineFields dynamically

Hi all,
I need to build dynamically an OutlineField :
Example : I have an Array of a class which contains an Array of
TextData which I convert in an array of a class named "LineClass"
inheriting of the DisplayNode class. What I want to do is to build an
Array of OutlineColumnDesc which can map all attributes names of the
class "LineClass". Then I could assign dynamically this Array to my
OutlineField with the SetColumnList method. But the attribute "Name" of
the OutlineColumnDesc class is read-only !
Does anyone have ideas or experience about building OutlineFields
dynamically ?
Thanks.
- Manuel -
Manuel DEVEAUX
Forté Developer
Mutuelle Préviade
Nancy, FRANCE
E-Mail : [email protected]
-----------------------------------------

Hi,
Look bellow sample program
report  ytest.
data: lt_fieldcatalog type lvc_t_fcat.
data: ls_fieldcatalog type lvc_s_fcat.
field-symbols: <fs_data> type ref to data.
field-symbols: <fs_1>.
field-symbols: <fs_2> type any table.
field-symbols: <fs_3> type ypoll.
data: lt_data type ref to data.
assign lt_data to <fs_data>.
ls_fieldcatalog-fieldname = 'MANDT'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'POLLID'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'TEAM'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'INITIATOR'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'DESCRIPTION'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'APPROVED'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'INITIATED_DATE'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'END_DATE'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
ls_fieldcatalog-fieldname = 'WINNER'.
ls_fieldcatalog-tabname   = 'LT_TAB'.
append ls_fieldcatalog to lt_fieldcatalog.
call method cl_alv_table_create=>create_dynamic_table
  exporting
    it_fieldcatalog           = lt_fieldcatalog
  importing
    ep_table                  = <fs_data>
  exceptions
    generate_subpool_dir_full = 1
    others                    = 2
if sy-subrc <> 0.
endif.
assign <fs_data>->* to <fs_1>.
assign <fs_1> to <fs_2>.
loop at <fs_2> assigning <fs_3>.
  write: <fs_3>-pollid.
endloop.
Regards
Gaurav

Similar Messages

  • How to  build a dynamic control  in 'as' file

    example :
    I want to build a dynamic CheckBox in as file (in
    flex2.0),who can help me! thanks

    thanks,i'm a chinese.I'm not be good at English.
    Now the problem have be settled.
    非常感谢你!

  • Setting the Member & data build level dynamically

    Hello, I have got a situation where i need to set the Member & data build level dynamically based on the member. The option "Build Multidimensional down to here"(OLAPMetaoutline Menu)can be used,But when we use this option i could not perform my task as i need set the Build level dynamically based on the member level.I have to set the level dynamically for the following instance.Suppose My time dimension hierarchy is as follows: BY Year BY Quarter By Month If the year is say 1995,then quarter level & month level data is not required. If the year is say 1998,then quarter level & month level data is required. Could anyone provide a solution for dynamically setting the Member & data build level? Thanks,Sathyan

    Hi CTS,
    Thanks for ur repply,
    My source side i am having BANK_BRANCH_STATUS table has BRANCH_CODE and EOC_STATUS(possible values for this column is 'N','T','F','E' & 'B').
    The source table from which data has to tranform will be having BRANCH_CODE.
    i made odiwaitfordata as 1st step in package ,in this step the code looks like this
    OdiWaitForData "-CONTEXT=GLOBAL" "-GLOBAL_ROWCOUNT=1" "-LSCHEMA=ORACLE_FCSAILS" "-POLLINT=1000" "-RESUME_KEY_OPERATOR==" "-SQLFILTER=EOC_STATUS='E'" "-TIMEOUT=0" "-TIMEOUT_WITH_ROWS_OK=YES" "-UNIT_ROWCOUNT=>=1" "-INCREMENT_DETECTION=NO" "-TABLE_NAME=BANK_BRANCH_STATUS" "-OBJECT_TYPE=T"
    In the procedure,
    Source command-select branch_CODE from BANK_BRANCH_STATUS WHERE EOC_STATUS='E'
    Target command- Execute scenario for batch with branchid as a parameter... how to put up this in code form....could u suggest me?
    3) flag those which are executed so you don't wait for them again --how to put up this in code form....could u suggest me?
    Please sugest me,
    Thanks,
    MNK

  • Building a dynamic Member list in HFM

    Good day,
    I want to build a dynamic memberlist in HFM by using the function HS.GetSubmissionPhase("S#scenario.P#period.A#account.C1#custom1.C2 #custom2.C3#custom3.C4#custom4.I#icp”). For some reason it does not return the correct submission phase but always 1 (one). I need to retrieve the submission phase of a specific cell (account) because it can vary from period to period, and therefore it must be dynamic. I am using version 11.1.1.2 (not patched). Is there a way to do this?
    Please assist.
    Thanks,
    Danee

    Hi Chris,
    I understand the member lists are metadata driven and might have a problem with the submission groups per phase (data):
    But according to me the function should return me the valid phase submission for a specific account at a specific point in time. I need it on a report or web form, or need to find another way to filter.
    1. Submission groups are set on the accounts
    2. Submission groups are set per submission phase per period
    3. Want to retrieve all valid accounts for a specific submission phase at a specific point in time in a report
    4. Is there another way that I can filter these accounts dynamically?
    Regards,
    Danee

  • Help me in building menus dynamically to database

    i have the following code whic is developed normal html and .js and .css pages
    i need to deploy all these in a webserver and make the menus dynamically
    i am sending he following code plz help me
    since i am new to java and jsf, jsp i am unable to perfrom the task
    mainpage.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
         <head>
              <title></title>
         </head>
         <frameset rows="93,*" border="0" frameborder="0">
              <frame src="head.htm" name="top" scrolling="no">
                        <frameset cols="130,*" border="0" frameborder="0">
                   <frame name="navi" id="navi" src="nag.htm" scrolling="no" border="0" noresize>
                        <frame name="main" id="main" src="welcome.htm" scrolling="no">
              </frameset>
         </frameset>
    </html>
    menupage.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head></head>
    <body>
      <script type='text/javascript'>function Go(){return}</script>
      <script type='text/javascript' src='verticalmenu_var.js'></script>
      <script type='text/javascript' src='vermenu132_compact.js'></script>
      <noscript>Your browser does not support script</noscript>
    </body>
    </html>and two javascript files they also i am pasting plz help me out how to link up the menu with the database in JSF using the following and above said codes
    verticalmenus.js
         var NoOffFirstLineMenus=9;               // Number of main menu  items
                                  // Colorvariables:
                                  // Color variables take HTML predefined color names or "#rrggbb" strings
                                  //For transparency make colors and border color ""
         var LowBgColor="#336699";               // Background color when mouse is not over
         var HighBgColor="#009900";               // Background color when mouse is over
         var FontLowColor="#ffffff";               // Font color when mouse is not over
         var FontHighColor="#ffffff";               // Font color when mouse is over
         var BorderColor="#ffffff";               // Border color
         var BorderWidthMain=1;               // Border width main items
         var BorderWidthSub=1;               // Border width sub items
         var BorderBtwnMain=1;               // Borderwidth between elements
         var BorderBtwnSub=1;               // Borderwidth between elements sub items
         var FontFamily="arial,comic sans ms,technical";     // Font family menu items
         var FontSize=11;                    // Font size menu items
         var FontBold=1;                    // Bold menu items 1 or 0
         var FontItalic=0;                    // Italic menu items 1 or 0
         var MenuTextCentered="left";          // Item text position left, center or right
         var MenuCentered="left";               // Menu horizontal position can be: left, center, right
         var MenuVerticalCentered="top";          // Menu vertical position top, middle,bottom or static
         var ChildOverlap=0.2;               // horizontal overlap child/ parent
         var ChildVerticalOverlap=0.2;               // vertical overlap child/ parent
         var StartTop=50;                    // Menu offset x coordinate. If StartTop is between 0 and 1 StartTop is calculated as part of windowheight
         var StartLeft=0;                    // Menu offset y coordinate. If StartLeft is between 0 and 1 StartLeft is calculated as part of windowheight
         var VerCorrect=0;                    // Multiple frames y correction
         var HorCorrect=0;                    // Multiple frames x correction
         var DistFrmFrameBrdr=2;               // Distance between main menu and frame border
         var LeftPaddng=8;                    // Left padding
         var TopPaddng=2;               // Top padding. If set to -1 text is vertically centered
         var FirstLineHorizontal=0;               // Number defines to which level the menu must unfold horizontal; 0 is all vertical
         var MenuFramesVertical=1;               // Frames in cols or rows 1 or 0
         var DissapearDelay=1000;               // delay before menu folds in
         var UnfoldDelay=100;               // delay before sub unfolds     
         var TakeOverBgColor=1;               // Menu frame takes over background color subitem frame
         var FirstLineFrame="navi";               // Frame where first level appears
         var SecLineFrame="main";               // Frame where sub levels appear
         var DocTargetFrame="main";               // Frame where target documents appear
         var TargetLoc="";                    // span id for relative positioning
         var MenuWrap=1;                    // enables/ disables menu wrap 1 or 0
         var RightToLeft=0;                    // enables/ disables right to left unfold 1 or 0
         var BottomUp=0;                    // enables/ disables Bottom up unfold 1 or 0
         var UnfoldsOnClick=0;               // Level 1 unfolds onclick/ onmouseover
         var BaseHref="file:///C|/rao/projects/changedframework/WebRoot/pages";                    // BaseHref lets you specify the root directory for relative links.
                                  // The script precedes your relative links with BaseHref
                                  // For instance:
                                  // when your BaseHref= "http://www.MyDomain/" and a link in the menu is "subdir/MyFile.htm",
                                  // the script renders to: "http://www.MyDomain/subdir/MyFile.htm"
                                  // Can also be used when you use images in the textfields of the menu
                                  // "MenuX=new Array("<img src=\""+BaseHref+"MyImage\">"
                                  // For testing on your harddisk use syntax like: BaseHref="file:///C|/MyFiles/Homepage/"
         //var Arrws=[BaseHref+"/resources/tri.gif",5,10,,,,BaseHref+"/resources/trileft.gif",5,10,BaseHref+"/resources/triup.gif",10,5];
                                  // Arrow source, width and height.
                                  // If arrow images are not needed keep source ""
         var MenuUsesFrames=1;               // MenuUsesFrames is only 0 when Main menu, submenus,
                                  // document targets and script are in the same frame.
                                  // In all other cases it must be 1
         var OverFormElements=1;               // Set this to 0 when the menu does not need to cover form elements.
         var RememberStatus=0;               // RememberStatus: When set to 1, menu unfolds to the presetted menu item.
         var BuildOnDemand=1;               // 1/0 When set to 1 the sub menus are build when the parent is moused over
         var BgImgLeftOffset=5;               // Only relevant when bg image is used as rollover
         var ScaleMenu=0;                    // 1/0 When set to 0 Menu scales with browser text size setting
                                  // When set to 2 only the relevant main item stays highligthed
                                  // The preset is done by setting a variable in the head section of the target document.
                                  // <head>
                                  //     <script type="text/javascript">var SetMenu="2_2_1";</script>
                                  // </head>
                                  // 2_2_1 represents the menu item Menu2_2_1=new Array(.......
         var HooverBold=0;                    // 1 or 0
         var HooverItalic=0;                    // 1 or 0
         var HooverUnderLine=0;               // 1 or 0
         var HooverTextSize=0;               // 0=off, number is font size difference on hoover
         var HooverVariant=0;               // 1 or 0
                                  // Below some pretty useless effects, since only IE6+ supports them
                                  // I provided 3 effects: MenuSlide, MenuShadow and MenuOpacity
                                  // If you don't need MenuSlide just leave in the line var MenuSlide="";
                                  // delete the other MenuSlide statements
                                  // In general leave the MenuSlide you need in and delete the others.
                                  // Above is also valid for MenuShadow and MenuOpacity
                                  // You can also use other effects by specifying another filter for MenuShadow and MenuOpacity.
                                  // You can add more filters by concanating the strings
         var MenuSlide="";
         //var MenuSlide="progid:DXImageTransform.Microsoft.RevealTrans(duration=.5, transition=19)";
         //var MenuSlide="progid:DXImageTransform.Microsoft.GradientWipe(duration=.5, wipeStyle=1)";
         var MenuShadow="";
         //var MenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=#888888, offX=2, offY=2, positive=1)";
         //var MenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=#888888, direction=135, strength=3)";
         var MenuOpacity="";
         //var MenuOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=85)";
         //function BeforeStart(){return}
         //function AfterBuild(){return}
         //function BeforeFirstOpen(){return}
         //function AfterCloseAll(){return}
    // Menu tree:
    // MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
    //     "fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","statustext");
    // Color and font variables defined in the menu tree take precedence over the global variables
    // Fontsize, fontbold and fontitalic are ignored when set to -1.
    // For rollover images ItemText or background image format is:  "rollover?"+BaseHref+"Image1.jpg?"+BaseHref+"Image2.jpg"
    Menu1=new Array("DataCollection","","",6,20,120,"","","","","","",-1,-1,-1,"","");
         Menu1_1=new Array("Record Based","","",3,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_1_1=new Array("Data Entry","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_1_2=new Array("Account","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_1_3=new Array("T","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu1_2=new Array("File Based","","",3,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","Nation");
              Menu1_2_1=new Array("Carian","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_2_2=new Array("Senarai ATR","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_2_3=new Array("Senarai Kertas Siasat","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu1_3=new Array("Auto Upload","ATR_Eksibit_Form.htm","",4,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_3_1=new Array("Carian","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_3_2=new Array("Senarai ATR","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_3_3=new Array("Senarai Kompaun","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_3_4=new Array("Senarai LJKR","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu1_4=new Array("Validation Failure","Permohonan_Keluar_Eksibit_Form.htm","",3,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_4_1=new Array("Carian","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","Football Every Day");
              Menu1_4_2=new Array("Senarai ATR","ATR_Eksibit_Form.htm","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_4_3=new Array("Senarai Eksibit","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu1_5=new Array("Pendakwaan","Permohonan_Keluar_Eksibit_Form.htm","",3,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_5_1=new Array("Carian","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_5_2=new Array("Senarai ATR","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
              Menu1_5_3=new Array("Senarai LKKP","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu1_6=new Array("OKT","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
    Menu2=new Array("Statistical Analysis","","",1,20,120,"","","","","","",-1,-1,-1,"","");
         Menu2_1=new Array("Carian","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
    Menu3=new Array("Discovery Analysis","","",1,20,120,"","","","","","",-1,-1,-1,"","");
         Menu3_1=new Array("Carian","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
    Menu4=new Array("Case Management","","",2,20,120,"","","","","","",-1,-1,-1,"","");
         Menu4_1=new Array("Operasi","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu4_2=new Array("Pengurusan","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
    Menu5=new Array("Content Management","","",3,20,120,"","","","","","",-1,-1,-1,"","");
         Menu5_1=new Array("e-LesenNiaga","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu5_2=new Array("e-Tribunal","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu5_3=new Array("e-Aduan","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
    Menu6=new Array("Audit log","","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu7=new Array("Administration","","",6,20,120,"","","","","","",-1,-1,-1,"","");
         Menu7_1=new Array("Akta","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu7_2=new Array("Jenis Cetak Rompak","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu7_3=new Array("Jenis Eksibit","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu7_4=new Array("Jenama","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu7_5=new Array("Karya Cetak Rompak","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
         Menu7_6=new Array("Kawasan","","",0,20,120,"#e1ffb3","#edf6d9","#404040","#0E61AE","#5eb101","",-1,0,-1,"left","");
    Menu8=new Array("Pentadbiran","","",0,20,120,"","","","","","",-1,-1,-1,"","");
    Menu9=new Array("Tukar Kata Laluan","","",0,20,120,"","","","","","",-1,-1,-1,"","");
    plz help me out in doing so and save me
    thank you

    Please view open source JSF menu
    http://myfaces.apache.org/tomahawk/jscookmenu.html

  • How do I build a dynamic business service URL in OSB 11g?

    Hello,
    I am used to using the business service endpoint URIs that we configure on the Transport tab of our business services in OSB 11.1.1.6.  We can add multiple static entries here for load balancing, and we can overwrite these with a Customization File as we migrate through DEV, TEST, PROD.  Everything's just fine there.
    I now need to start consuming RESTful services with dynamic URLs such as:
    http://host:port/customer/{customerId}
    that would result in HTTP calls to values like:
    http://host:port/customer/12345678
    and
    http://host:port/customer/55555555
    I see that I can build the URI using the Routing Options action in our proxy message flow and throw in all of those variable values at runtime.  This is working in DEV just fine.  And, effectively, I've overridden the business service endpoint URIs that we configured in the Transport.
    But now I want to:
    1) Use multiple endpoint URIs for our cluster
    2) Deploy to TEST
    What is the proper way to do this?  I would guess in the business service endpoint URIs in the customization file, but I don't know how to parameterize those.  I would also guess customization file find/replace functionality to change the host:port in my Routing Options action, but then that would still be just a single-node endpoint and not a pointer to multiple servers in our cluster.
    Can someone please advise the best way to configure these dynamic URLs at runtime while still allowing for clustered endpoints and for customization files to be applied as we promote through our environments?
    Thank you,
    Michael

    Found some old code.
    I think you need to do
    property_text = "#"^variable_text
    then you can do the following
    property_list[1][property_text]
    That seemed to work.

  • Table name stored in another table and how to Build the Dynamic Query

    TblMasterTable
    Id
    Unqid
    Tbl_TemplateNameid
    Tbl_Template1
    Unqid
    Field1
    Filed2
    Tbl_Template2
    Unqid
    Field1
    Filed2
    Filed3
    Tbl_Template3
    Unqid
    Field1
    Filed2
    Filed3
    Filed4
    Filed5
    TblMasterTable contains the reference for the table names.
    TblMasterTable contains the data
    1 12     Tbl_Template1
    2 22     Tbl_Template2
    3 12     Tbl_Template1
    4 343 Tbl_Template3
    I want to build the query to retrieve all the Template table records based on the TblmasterTable data for a given id.

    This is possible but you need to understand the performance implications of Dynamic SQL before proceeding with this approach.
    <br>
    use this logic:<br>
    declare sqlstring varchar2(500):=null <br>
    select 'select stuff from '|| tbl_templatenameid into sqlstring from MasterTable where id=someid;<br>
    execute immediate sqlstring;
    <br>
    <br>
    I have really seen very few cases where this approach is justified.
    <br>
    <br>
    Dave<br>
    lehr.servehttp.com

  • Application builder and dynamic class VIs name collision

    I'm, using LabView 8.6 and I'm trying to make executable file. 
    The application builder returns warning:  
    "LabVIEW prevented a file name collision during the build. Duplicate file names cannot be copied to the same destination. You can rename files as part of the build process to avoid name conflicts."
    ...and no executable is created.
    I'm pretty sure the warning comes from the fact that I use dynamic class member VIs, that are by definition have to have same names in both parent and children.    
    The following link (http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/caveats_apps_dlls/) says " If you don't rename the files, Application Builder moves the files to different folders for you to avoid a filename collision.", but no folders are created.
    Any help here? 

    Hi,
    If you have a parent class and one or more child classes, during the build LV will create a folder for each class with a conflicting VI.  The offending VIs will be dumped in their respective folders, resolving the conflict.  For what it's worth, I've used dynamic dispatch VIs several times in executables in LV 8.6 without seeing the issue you're reporting.
    My only advice would be to:
    1) make sure that you haven't somehow put two VIs of the same name in the same class (not even sure that's possible).
    2) make sure you aren't renaming a VI during the build and creating a conflict
    JasonP - CLD

  • Building a dynamic query

    I have a need to build a truly dynamic query, that would be able to take online form input and create a query that would handle data requests like, How many employees earn less than #some salary, have a masters degree, and speak chinese.  or show me all the employees in org A that are vets.
    A true ad hoc query tool. 
    the back end is oracle 11g, the database  contains about 8 or 9 tables all total there about 500 records that will be searched. we are running CF7.
    I just started kicking this around today so I am open for Ideas.  add filters in the where clause, i got that,   start with  1=1 and use conditional statements to add filters as necessary.  setting up the Select and From statements, need help there.
    Since this is a small db, I thout about, but scrapped, making a super-view to query from.
    your thoughts and suggestions would be greatly appreciated.
    thanks
    jb

    What about something like this:
    1) Determine what tables are going to be involved (visual GUI/drag & drop interface for the users?)
    2) Have a table that defines the relationship between the other tables in your database - once the table selection is made by the user, you can query this table to determine what columns you are going to join on.  Obviously this won't allow you complete customization but it would work for the scenarios you describe.
    3) Use your database system properties to retrieve the field names from your included tables
    4) Allow your users to add "filters" based on the fields retrieved in (3)
    e.g. You could use an interface to allow users to add a filter, where you display a list of fields from your tables and allow them to apply a simple filter to them - keep it simple (=, !=, >, <)
    for bonus points, you could limit the options based on the field type (checkboxes for bit fields, etc)
    sanitize the user input - find a SQL-safe reg exp script to handle any unwanted characters (I'm looking at you apostrophe).
    5) Don't try an support aggregates if you don't need to - users can load the results into excel and manipulate them to their hearts content.
    6) Build your SQL using the selections made by the user.  Import all records from your joined tables.  Use the table from (2) to determine which fields they join on.  and build your where clause using the filters the user created in steap (4).  Again, be sure anything not explicitly set by the system is sanitized prior to making its way into the SQL.
    7) Execute() your SQL inside a CF query.  Expect pretty poor performance, since most SQL databases won't optimize a query plan from a dynamic SQL evaluation.
    You could build this as a multi-step wizard in CF, but it would be pretty flashy as a jQuery/web service based application.

  • How ca n i build a dynamic query in a cursor

    i have a cursor in a procedure. it runs some sql query. i want to build a part of this query dynamically based on the parameters passed to this procedure.how should i do thatnow the cursor is before the begin end structure and if i have to build a query whose return results are to be processed then i have to write that in a cursor and i cannot write a cursor inside a begin end(that's my understanding) and only way to build a query is to build it in a begin end . i think reference cursors can be used to accomplish this task. can someone guide me with this.thnx in advance.

    This is straightforward programming logic....
    CREATE OR REPLACE FUNCTION my_qry
       (p1 IN VARCHAR2 := NULL, p2 IN VARCHAR2 := NULL)
       RETURN sys_refcursor
    IS
       stmt VARCHAR2(32767) :='select creation_date from mytable';
       clause1 VARCHAR2(32767) := 'app_id=';
       clause2 VARCHAR2(32767) := 'ticket_number=';
       rc sys_refcursor;
    BEGIN
       CASE
          WHEN p1 IS NOT NULL AND p2 IS NOT NULL
          THEN
             open rc for stmt||
                 ' WHERE '||clause1||':1 AND '||
                 clause2||':2' USING p1, p2;
          WHEN p1 IS NOT NULL AND p2 IS NULL
          THEN
             open rc for stmt||
                 ' WHERE '||clause1||':1 ' USING p1;
          WHEN p1 IS NULL AND p2 IS NOT NULL
          THEN
             open rc for stmt||
                 ' WHERE '||clause2||':1 ' USING p2;
          ELSE
             open rc for stmt;
        END CASE;
        RETURN rc;
    END;
    [pre]
    Cheers, APC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Small target file build and dynamic launching

    I have recently changed by 6.1 build option to "small target file build with external file for sub vi's". For some reason, with this new installation, all the dynamic launching, that used to work, now gives the error message "A sub vi, type definition, or external subroutine is missing or inconsistent with the current VI." Is there some sort of conflict to building this way with dynamic launching?

    Jim:
    Here are more information about the application builder:
    Add Top-Level VI: top-level VI to the application. You must have at least one top-level VI. When you add a top-level VI, LabVIEW automatically includes all its subVIs and related files, such as menu files. LabVIEW also includes DLLs if the VI references the DLL using an absolute path. However, if you use the VI server to call VIs, you must manually add those VIs by using the Add Dynamic VI button.
    Add Exported VI (Shared Library only): Adds an exported VI to the shared library. You must have a least one exported VI. When you add an exported VI, LabVIEW automatically includes all its subVIs and related files, such as menu files. LabVIEW also includes DLLs if the VI references the DLL using an absolute path. However, if you use the VI server to call VIs, you must manually add those VIs by using the Add Dynamic VI button.
    Add Dynamic VI: Adds VIs that the VI Server dynamically loads.
    Add Support File: Adds non-VI files, such as drivers or text and help files to the application.
    I hope this helps.
    Regards,
    Rudi N.

  • Building XML dynamically? Is it possible.

    How do I build an XML Document dynamically.?
    I am wrting MIDP Applications (applications for the Mobile
    device) and I am required to send requests to the server
    in XML Formats.I have multiple requests to be sent to the
    server in XML and then I receive XML responses from the server
    which i need to parse.
    Now,if I store all the required requests in a Class,that are needed to be sent to the server,I am taking a lot of space of the cell phone.
    How can I create an XML string dynamically that is sent to the
    server as and when required.
    Please can any one respond?
    AJAY
    ajay [email protected]

    Hi there,
    So is it possible for me to create an XM file on the fly.?
    For example: I need to send an xml file to the server
    For this I have a class called RequestHandler having a method called
    sendRequest1(),sendRequest2(),sendRequest3() etc etc
    public class Request{
    public void sendRequest()
    String req1 = "<xml.........>
    public void sendRequest2()
    req2 = "<xml......>";
    public void sendRequest3()
    req3 = "<xml...>";
    This way I have a lot of xml file format in each method.
    Please explain as to how I can create the XML file required
    to be sent for each request to the server on the fly.
    Storing this class with all the XML file formats takes up a lot
    of space on the MIDP device...
    Thanks for yr response.
    Ajay

  • How do I build a dynamic property list?

    It has been a long time and all my old Authorware stuff is in the shed somewhere. I want to dynamically build a property list statement in Authorware 7
    I figured it was something like property_list[1]["#"^variable_text]
    but this doesn't seem to be working so I just wanted to check I was using the correct syntax?

    Found some old code.
    I think you need to do
    property_text = "#"^variable_text
    then you can do the following
    property_list[1][property_text]
    That seemed to work.

  • Building a dynamic dialog in Acrobat with Javascript

    I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript.
    I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that there are N pages in the document.  I am going to run through the document and make each page its own PDF.  Each page will be considered a certain kind of page, for example, Cover, Article, Ad, etc.  and the type of page it is will affect the naming convention I use when making the new, one-page file.  For example, let's say that pages 36, 37 and 38 are page, ad and article, respectively.  Then the names I will be using for each output file will be as follows:
    P12345Pg_036.pdf
    P12345Ad_037.pdf
    P12345Ar_038.pdf
    But there is no way for my code to actually look at a given page and decide that it is page, article, ad, or one of four cover types, etc.  So I want to build a dialog that looks something like this (assume a O is meant to be a radio button):
    Page          Pagetype
    1                  O Page      O Inner cover Front         O  Outer cover Front     O Ad           O   Article
    2             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    3             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    4             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    N             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    Beacuse each document varies in length, that means the dialog will need to be dynamic.
    I have looked at the Acrobat API and determined that defining a dialog looks something like this:
    var DialogABC = {
                                       initialize: function(dialog){},
                                       commit : function(dialog){},
                                       description:{}
    app.execDialog(DialogABC)
    What I do not know how to do is create the dialog specification on the fly.  Do I treat it as a string or is there some other way of making this happen?  How can I make a dynamic description that allows for a variable number of rows?
    Please let me know if you have any thoughts.  A good reference or example would serve just as well.
    TIA!
    John

    There are two approaches to this:
    1. Treating the dialog object as a literal object
    2. Treating it as a string
    If you treat it as a literal object you can manipulate it like any other object. Each function can be defined separately, and the items in the various arrays can be added or removed as you please.
    If you treat it as a string then you can construce that string in a dynamic way, using loops or if-conditions, as you please, and then use the eval() command to convert it to an object when done.
    Both approaches are quite complex and require a lot of scripting experience to implement correctly.

  • "Cannot get inner content of frm1 because the contents are not literal." error in building a dynamic form within other HTML

    Hi, 
    I am trying to build an aspx form dynamically but I have to user some HTML tags among controls. I am getting the error "Cannot get inner content of frm1 because the contents are not literal." in my 
    oForm.InnerHtml += "</fieldset>";
    instruction. If I put it before adding the text and button controls to the form the error is gone. What am I doing wrong, if I want the controls to be inside a <fieldset> ... </fieldset> tag?
    public void LoadForm()
    HtmlForm oForm = new HtmlForm();
    oForm.ID = "frm1";
    oForm.Action = "";
    oForm.InnerHtml += "<fieldset>";
    oForm.InnerHtml += "<legend> ### TITALO ### </legend>";
    HtmlInputText oText = new HtmlInputText();
    oText.ID = "txt";
    HtmlInputSubmit oSubmit = new HtmlInputSubmit();
    oSubmit.ID = "btn";
    oSubmit.Value = "submit";
    oForm.Controls.Add(oText);
    oForm.Controls.Add(oSubmit);
    oForm.InnerHtml += "</fieldset>";
    main.Controls.Add(oForm);
    Thanks, regards. 
    Bruno

    According to articles (e.g.
    http://forums.asp.net/t/939432.aspx?Panel+GroupingText), in order to include a
    <fieldset>, you can use a Panel control having GroupingText
    attribute. Therefore, instead of dealing with InnerHtml, try this:
    var panel = new Panel { GroupingText = "### TITALO ###" };
    panel.Controls.Add(oText);
    panel.Controls.Add(oSubmit);
    oForm.Controls.Add(panel);
    main.Controls.Add(oForm);

Maybe you are looking for

  • How do i transfer videos from one iTunes to another?

    I understand that i need to go into Itunes File then Add to libruary select what i want to transfer but what do i do after that?

  • Invalid arguments error while executing oracle procedure

    Dear all, we have a table hr_emp with fields ecode, ename, edoj. the following procedure we created to return the table data to our .net app. CREATE OR REPLACE PACKAGE pname AS TYPE T_hr_cursor IS REF CURSOR; PROCEDURE get_hr_list (P_hrlist OUT T_hr_

  • ISE certifiacte issue

    Hi, I have a ISE certifiacte issue when I try to authenticate wireless user with ISE. He show me this:  12321 PEAP failed SSL/TLS handshake because the client rejected the ISE local-certificate12321 PEAP failed SSL/TLS handshake because the client re

  • How to insert personal signature on invoice

    I have created a work invoice and would like to add my personal signature when I email the form through the internet.  Is there any way for me to make a "signature copy" and add it to my invoice?

  • How do create a live video stream?

    ok I'm pretty new to the streaming thing. I've asked on other forums and have been told flash is the way to go. What I want to do is upload videos to a linux server and have them playing live/in real time as oposed to from the begining each time the