Display the Columns in the grid at run time

Hi,
My Query is returning fix number of columns in the output.I dont want to Explicitly set the columns i want to see in the display template(display columns field) rather i want to show the number of columns in the grid at run time selected by the user.
Any Suggestion.
Thankyou in Advance.
Nikhil

Here's is what i came up with:
YOu can run one query to get the list of all columns from a table using the following SQL code:
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Customers'
Once you do that you can run the query for your table with the selected columns with the following applet property code:
function MyFunc(){
               document.MyApplet.getGridObject().setDisplayColumns('CompanyName,City');
               document.MyApplet.updateGrid(true);
User the following to extract all selected rows:
selRows = parseInt(myGrid.getSelectedRowCount());
You then itterate through the iGrid to extract the value:
for (var i=1; i<=selRows; i++) {
     selRowNum = myGrid.getSelectedRowAt(i);
     selDate = myGrid.getCellValue(selRowNum,1);

Similar Messages

  • Module Pool for displaying the Grid values in Matrix format

    Hi Experts,
    I have one requirement which as follows,
    In Module pool program i need to display the Grid Values in Matrix format i.e,
    Row = Color
    Column = Size
    Like what we can see in Sales order or Purchase Order if you click Grid Entries Button.
    Can you Please Help me out.
    Thanks n Advance.
    Logu

    Hi
    the sources ate the function groups WMMB and WMMA.
    In a new release you should find the function module MGW_UTILITIES_MATRIX_SHELL_RA
    the report RWRFMATCHARVAL is a good example
    Regards
    Björn

  • How to display the rows number of times by giving the column values?

    Hi All,
    I want to display the rows number of times as the value exists in num column in the below query
    with t AS
       ( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
         UNION ALL
         SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
         UNION ALL
         SELECT 'krishna' NAME,     'hyd' LOC, 1 NUM FROM DUAL )
      SELECT T.* FROM T
      CONNECT BY ROWNUM <= NUM
    Expected output:
             venkatesh            hyd      2
             venkatesh            hyd        2
             prasad                 hyd        3
             prasad                   hyd      3
             prasad                   hyd      3
             krishna           hyd       1Edited by: Nag Aswadhati on Nov 1, 2012 12:34 AM

    Nag Aswadhati wrote:
    Hi All,
    I want to display the rows number of times as the value exists in num column in the below query
    Expected output:
    venkatesh            hyd      2
    venkatesh            hyd        2
    prasad                 hyd        3
    prasad                   hyd      3
    prasad                   hyd      3
    krishna           hyd       1Using Connect By:-
    with t AS
       ( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
         UNION ALL
         SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
         UNION ALL
         select 'krishna' name,     'hyd' loc, 1 num from dual )
      select t.name, t.loc
      from t
      connect by level <= num
             and name = prior name
             and (prior sys_guid() is not null);
    NAME      LOC
    krishna   hyd
    prasad    hyd
    prasad    hyd
    prasad    hyd
    venkatesh hyd
    venkatesh hyd
    6 rows selected

  • Which column gives the complete db run time in RSDDSTAT ?

    Hello community,
    On table RSDDSTAT, which column gives me the complete db run time? 
    Is it QDBSEL + QDBTRANS? Or is it QTIMEOLAPINIT + QTIMEOLAP + QTIMEBD + QTIMEVARDP + QTIMECLIENT? Or perhaps something else?
    Thanks very much !

    hi keith,
    check this field  <b>QRUNTIMECATEGORY</b>
    hope it helps
    bhaskar.

  • Create the pages at run time in smartforms

    How to create the pages at run time in smartforms????

    Hi..
    You cannot create pages at run time, however you can decide based upon conditions and using commands in Smartforms, which page needs to be displayed next.
    Those pages should be created beforehand.
    Regards,
    Karthik

  • How to display the current Date and time in xslt version 1

    i am using xslt version 1 .i want to display the current date and time in the output xml using xslt(Jdeveloper) ..i just added the namespace xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
         xmlns:ns1="urn:oracle:integration:b2b:7D30046DC68A4FA689956D8241FA3B99">
    and used thsi function <xsl:value-of select = "xp20:current-date()"/>
    but it does not works for me ..help needed????
    Edited by: user9519185 on Jan 20, 2009 3:04 AM

    Use a formula: =NOW()
    Format the cell for Date and Time, with both the Date part and the Time part displayed. Format the two parts as you wish, using the choices in the Inspector's menus.
    The cell will update each time the table is recalculated.
    (Description is for Numbers '09 (Mac), Numbers for iOS will be similar, but not necessarly identical in details.)
    Regards,
    Barry

  • I'm trying to display the current date and time on my iPad.

    First, I'm not sure this is a valid post to this forum.  If not, I'd appreciate knowg in where I can get help. 
    I have tried several ways to display the current date and time on my iPad.  None  work.  Most things I try give me complier errors but the latest code compiles but won't display the correct time. 
    Here's the dispatch code in my ViewController.m file:
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);
        dispatch_async(queue, ^{
            [NSTimer scheduledTimerWithTimeInterval:NSTimeInterval)1.0f target:self selector:@selector(updateLabel:) userInfo:nil repeats:YES];
    Here's the updateLabel code: (which never gets executed).
    - (void)updateLabel:(id) sender {
        dispatch_sync(dispatch_get_main_queue(), ^{
        NSLog(@"Datefield Update Called");
        NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
        [dateFormatter setDateFormat:@"EEEE, MMMM dd, yyyy 'at' HH:mm  ZZZZ"];
        NSDate *dayTime = [NSDate date];
        NSString *formattedDateString = [dateFormatter stringFromDate:dayTime];
            _dateField.text = formattedDateString;
        [self.view addSubview:_dateField];
        NSLog(@"Datefield %@",_dateField.text);

    Your code is needlessly complicated and has a few problems:
    // These objects should be created only once.
    NSTimer *dateAndTimeTimer; (You might need to make this a property with a strong reference).
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"EEEE, MMMMM dd, yyyy 'at' HH:mm ZZZZ"];
    // The subview should only be added once.
    [self.view addSubview:_dateField];
    [self performSelectorOnMainThread:@selector(startDateAndTimeTimer)
                            withObject:nil
                         waitUntilDone:YES];
    -(void)startDateAndTimeTimer
        NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:1
                                                          target:self
                                                        selector:@selector(updateLabel)
                                                        userInfo:nil
                                                         repeats:YES];
        dateAndTimeTimer = timer;
        [[NSRunLoop mainRunLoop] addTimer:dateAndTimeTimer forMode:NSRunLoopCommonModes];
    -(void)updateLabel
         NSDate *dateTime = [NSDate date];
         NSString *formattedDataString = [dateFormatter stringFromDate:dateTime];
         _dateField.text = formattedDateString;
         NSLog(@"_dateField.text=%@", _dateField.text);

  • How to change the skin at run time

    I am using jDeveloper 11.1.1.3 for ADF.
    My UseCase: i want to give a dropdown for skins. User should be able to select the skin at run time and it should be loaded. Please let me know how can i achieve it.
    Zee

    As per usecase, looks like you have the LOV containing the different skins.
    You can ensure that the application is skinned according to the selected value in the LOV.
    Ensure that you have a session scope variable that is set, whenever you change the LOV.
    For more details, look into this link http://download.oracle.com/docs/cd/E14571_01/web.1111/e10140/skinning.htm
    Thanks for your reply, but then...... what will be the skin loaded by default before the user selects the skin - drop down. Do i have to set something default before hand .?Define the LOV such that there are no empty elements. i.e the first element in the LOV is selected.
    In the Managed bean, if the session scope is not set, return the skin family for the first element. This would be the scenario when the application loads.
    Thanks,
    Navaneeth

  • Since i have upgraded my i phone5 to 7.0.3 it has problem with 3g it display the service message every time, it reduce the battery life also.

    since i have upgraded my i phone5 to 7.0.3 it has problem with 3g it display the service message every time, it reduce the battery life also.

    Try using Settings > General > Reset > Reset All Settings.

  • How to Display Sub-Columns using ALV Grid

    Hi ,
      Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
    Thanks,
    Abaper.
    Message was edited by:
            ABAP'er

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • Add an element to the list in run time

    There is an item in my form which is a list of values.It is getting populated based on a record group query.
    I want to let the user enter values at run time and add the values to the exiting list in the form and same
    should be added to the record group so that next time i open the form the added value can be seen.
    Is this possible?
    Regards,

    I have written this code on when_button_pressed trigger to populate the record group RGSTD and LOV(Name LOVSTD).
    I have added the element in the list using add_list_element built in. But it is not giving me proper results.
    Record group has two columns STDID and STDNAME.
    DECLARE
    ln_num NUMBER := 0;
    BEGIN
    ln_num := show_alert('ALERT15');
    IF ln_num = 88 THEN
    add_group_row('RGSTD', 1);
    set_group_char_cell('STDID', 1, 'ST00004');
    set_group_char_cell('STDNAME', 1, 'Add To List');   
    add_list_element('LOVSTD', 1, 'Add To List', 'Add To List');  
    ELSE
    NULL;
    END IF;
    END;Edited by: LostWorld on Feb 9, 2009 5:49 AM

  • Change number / date format for the user at run time

    Hi,
    Can I configure a report in Oracle Answers to display a column in a particular format for one group of users and a different format for another group of users?

    Hi,
    Yes this is possible.
    In the BMM layer duplicate column which is to be formatted for different group of users. And pull it into the presentation layer.
    Suppose Column 1 for the Group 1 users
    and Column 2 for the Group 2 users
    In the presentation layer, double click on the column and give permission for the column 1 for the group 1 users and group 2 users for column.
    First create a report with all the desired columns with Administrator or Presentation Server Administrator Role. And format the columns according to the different group of users.
    In, NQSConfig.ini change the parameter PROJECT_INACCESSIBLE_COLUMN_AS_NULL which is under security section. By default it is set to No. Set it to yes. And restart the services.
    Now logon with the group 1 users and you can see only the column1 and when logged on with group 2 users, you can see the column2.
    And will solve your problem.
    Please let me know if you need step-by-step process for solving.
    Please award if you found this useful/helpful
    Regards
    MuRam

  • CWIMAQView​er toolbar not showing all the tools at run time

    Hi
    I'm using the cwimaqviewer control to display images acquired from a CCD camera.  I set the viewer's ShowToolBar property to true.  All the toolbar items showup fine at design time.  However most of them go missing at run time.  See attached photos.  I'm using VS2008, and version 9.0 of the CWIMAQ control.   Any ideas why this is happening?   I need the circle tool to draw overlay over the image.   Thanks.
    Design time toolbar:
    Runtime Toolbar:

    nikale wrote:
    Hi,
    I found a resource that may be helpful for you; I've attached the link below. It depends what you're wanting to do but chapter 3 Interactively Defining Regions might be a good starting point.
    IMAQ Vision for Measurement Studio™ User Manual: Visual Basic:
    http://www.ni.com/pdf/manuals/323023a.pdf
    I hope this helps!
    Kale W.
    Applications Engineer
    National Instruments
    http://www.ni.com/support
    Hi Kale,
    Thanks for the tip.  The document gives information on where to find particular examples, which is helpful. 
    I found this page that gives overlay examples.  I really wanted to see how the fifth one is done.  Unfortunately, it's implemented in LabView.  Is there a similary example in VB? 
    http://www.ni.com/example/25623/en/
    Thanks much.

  • Sample XSLT code to Display the Current date and time

    Hi all,
    Please Let me know code to display the system date in my target in xslt mapping.
    I am trying fn:current-datetime() function for the same.but could not get how to use it .Is it  function right  function.If so please send me the examples on the same.
    Thanks and Regards,
    Srini

    hey
    use this date:date-time()
    also have a look at this
    http://www.w3.org/TR/xpath-functions/#func-current-dateTime
    thanx
    ahmad

  • Variable to hold the value at run time

    Dear Friends,
         I have a requirement in customer ageing report to select a particluar record from the cube based on the record selected by the query. Is there any option for holding a value of the dimension selected by the query in to a variable at run time. kindly let me know if am not clear.
    Thanks
    Prem

    you want to :
    Exeute a query - this will select a particular record and this is to be used to select another reord from a cube. I assume that the seletion from the cube will also happen through a query - then try using a prequery - have a variable on the query on the cube which is filled using replacement path from the previous query..?

Maybe you are looking for

  • How do I save markers in an mp3?

    I have the "save extra non-audio information" checked.  It will save markers in a .wav, but not an mp3.  How do I get it to save markers in an mp3? I'm using Audition 2.0 build 5306.2 [Audition\2.0] on an hpe-447C w/Windows 7 Home Premium 64-bit Serv

  • ABAP and JAVA stack on different SP Level

    Hi We tried to move our XI System on SP 21 and we managed to do so for ABAP stack on 21, while Java is still in 19. Will it make a difference and any problem will occur, is there any Notes/Link in this regard for a matrix to prove that inconsistency

  • ITunes sudden failure

    I used my computer on the 10th December to back up my iPhone 3GS in preparation for getting an iPhone 4S. On the 12th, having done nothing more, I tried to open iTunes and all of a sudden it wouldn't open at all. I recieved the error message: iTunes

  • Sun Directory Server giving errors during installion

    Hi, Iam new to the LDAP world. Iam trying to install, a Sun Directory Server on windows platform. Iam using the zipped package of the installation. While installing , the error i encounterd is as follows: Error: dsccsetup failed. Please help in insta

  • Content Aware with Magic Wand¿

    I used to fill in gaps of missing Panos with content aware in CS5 using the magic wand and fill - content aware. In CS6 it fills it in with the foreground color. The only way I can get the content aware to work is if I make the selection with the las