How to display data in ComboBox when click on DataGrid Row.

Hi!
     I am new to Adobe Flex. I am building one Project that was related to Comapny and Customer. First I created Company Master. Then I create Customer Master successfully and My Backkend is SQLite Database.
     My Problem is I have two files one is CustomerMaster and second one is CustomerForm.
     In CustomerMaster I have a datagrid in that data was displaying thru Array Collection. When ever we doublick on datagrid row it's displayed a CompanyForm. CompanyForm  contains TextFiled and ComboBox. TextFiled populating data but Combobox doesnot. It display always prompt message.
      Please help.
Thanks,
Sree Kumar

Hi! Vibhuti Gosavi,
                      First of all thanks for your quick reply. Already I saw that link.
Actually, In CustomerForm successfully store the information into the database. While retrieving the data problem cames. Sample Code:
CustomerMaster:
private function createItem():void
                                        openTab(new Object());
                              public function openTab(customer:Object):void
                                        var children:Array = tn.getChildren();
                                        var length:int = children.length;
                                        for (var i:int = 0; i<length; i++)
                                                  if (children[i].customer.customerId == customer.customerId)
                                                            tn.selectedIndex = i;
                                                            return;
                                        var form:CustomerForm = new CustomerForm();
                                        tn.addChild(form);
                                        form.customer = customer;
                                        form.dao = dao;
                                        form.addEventListener(CustomerEvent.CREATE, customerChangeHandler),
                                                  form.addEventListener(CustomerEvent.UPDATE, customerChangeHandler),
                                                  form.addEventListener(CustomerEvent.DELETE, customerChangeHandler),
                                                  tn.selectedChild = form;
                              private function customerChangeHandler(event:CustomerEvent):void
                                        customerArrayList = dao.findByCustomerAll();
                                        if (event.type == CustomerEvent.DELETE)
                                                  tn.removeChild(event.target as CustomerForm);
                    ]]>
          </fx:Script>
          <mx:Canvas id="container" left="12" right="12" top="12" bottom="12">
                    <mx:Canvas left="0" top="2" right="0" height="33">
                              <mx:Button id="AddCustomer" x="1" width="108" height="32" click="createItem()"
                                                     icon="@Embed('assets/icon_plus.png')" label="Add Customer" toolTip="Add Customer"
                                                     verticalCenter="-1"/>
                    </mx:Canvas>
                    <code:SuperTabNavigator id="tn" x="0" y="39" width="681" height="197"/>
                    <mx:DataGrid id="customerList" x="1" y="262" width="680" height="231"
                                                   dataProvider="{customerArrayList}"
                                                   doubleClick="openTab(customerList.selectedItem)" doubleClickEnabled="true">
                              <mx:columns>
                                        <mx:DataGridColumn dataField="customerId" headerText="Id"/>
                                        <mx:DataGridColumn dataField="customerName" headerText="Name" />
                                        <mx:DataGridColumn dataField="companyName" headerText="companyName" />
                              </mx:columns>
                    </mx:DataGrid>
          </mx:Canvas>
CustomerForm:
public function set customer(customer:Object):void
                                        this._customer = customer;
                              public function get customer():Object
                                        return this._customer;
                              private function saveCustomer():void
                                        if (Validator.validateAll(customerValidators).length>0)
                                                  return;
                                        _customer.customerName = customerName.text;
                                         _customer.companyName = companyName.text;
                                        if (_customer.customerId > 0)
                                                  updateCustomer();
                                        else
                                                  insertCustomer();
                              private function insertCustomer():void
                                        try
                                                  Alert.show(_customer.normalPkts);
                                                  dao.insertCustomer(_customer);
                                                  customerId.text = _customer.customerId;
                                                  dispatchEvent(new CustomerEvent(CustomerEvent.CREATE, _customer, true));
                                                  var alertText:String="Company Created Successfully!";
                                                  Alert.show(alertText,"",4,null,null,ConfirmMessage);
                                        catch (error:SQLError)
                                                  var alertErrorCreate:String="Company not Created...";
                                                  Alert.show(alertErrorCreate+"\n"+error.details,"",4,null,null,ErrorMessage);
                              private function updateCustomer():void
                                        try
                                                  dao.updateCustomer(_customer);
                                                  dispatchEvent(new CustomerEvent(CustomerEvent.UPDATE, _customer, true));
                                                  var alertText:String="Company Updated Successfully!";
                                                  Alert.show(alertText,"",4,null,null,ConfirmMessage);
                                        catch (error:SQLError)
                                                  var alertErrorText:String="Company not Updated...";
                                                  Alert.show(alertErrorText+"\n"+error.details,"",4,null,null,ErrorMessage);
                              private function deleteItem():void
                                        try
                                                  dao.deleteCustomer(_customer);
                                                  dispatchEvent(new CustomerEvent(CustomerEvent.DELETE, _customer, true));
                                        catch (error:SQLError)
                                                  Alert.show(error.details, "Error");
                    ]]>
          </mx:Script>
   <mx:Grid x="10" y="10" width="665" height="130" verticalAlign="middle">
                    <mx:GridRow width="665" height="100%">
                              <mx:GridItem width="85" height="100%">
                                        <mx:Label width="85" text="Customer Id:"/>
                              </mx:GridItem>
                              <mx:GridItem width="115" height="100%">
                                        <mx:TextInput id="customerId" text="{_customer.customerId}" editable="false" width="115"/>
                              </mx:GridItem>
                              <mx:GridItem width="102" height="100%">
                                        <mx:Label width="102" text="Company Name:"/>
                              </mx:GridItem>
                              <mx:GridItem width="100" height="100%">
                                        <mx:ComboBox id="companyName" dataProvider="{companyIdList}" labelField="companyName"
                                                                       prompt="Select..." text="{_customer.companyName}" width="100"/>
                              </mx:GridItem>
                      <mx:GridItem width="230" height="100%" horizontalAlign="center" verticalAlign="middle">
                                        <mx:Button label="Save" click="saveCustomer()"/>
                                        <mx:Button label="Delete" click="deleteItem()"/>
                              </mx:GridItem>
                    </mx:GridRow>
          </mx:Grid>
=====================================================================
I have two ArrayCollections 1) companyIdList (CustomerForm)
                                          2) customerArrayList(CustomerMaster)
please go through the bold text. Please focus on two dataProviders. These dataproviders are binding for One Combo Field.
Thanks,
Sree Kumar
Message was edited by: sreekumar1976

Similar Messages

  • When clicking on datagrid row it throws me exception - WPF C#

    Whenever I try to double click my datagrid row to edit it, I throws me a few exceptions which doesn't say anything to me. Hovever if
    I set the whole datagrid to IsReadOnly to true, I want have the problem, but I need the second and third columns editable.
    XAML
    <DataGrid x:Name="clientList" HorizontalAlignment="Left" Height="225" Margin="11,126,0,0" VerticalAlignment="Top" Width="349" IsSynchronizedWithCurrentItem="False" AutoGenerateColumns="False" HorizontalGridLinesBrush="#FFB9B9B9" VerticalGridLinesBrush="#FF8B8B8B" GridLinesVisibility="Horizontal" CellStyle="{StaticResource Body_Content_DataGrid_Centering}">
    <DataGrid.Resources>
    <LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" StartPoint="0,0" EndPoint="0,1" >
    <GradientStop Color="#66240000" Offset="0"/>
    <GradientStop Color="#CC240000" Offset="0.65"/>
    </LinearGradientBrush>
    </DataGrid.Resources>
    <DataGrid.Columns>
    <DataGridTextColumn Width="30" Header="Id" IsReadOnly="True" Binding="{Binding Id}"/>
    <DataGridTextColumn Width="100" Header="Company" IsReadOnly="False" Binding="{Binding Company}"/>
    <DataGridTextColumn Width="130" Header="Name, Surname" IsReadOnly="False" Binding="{Binding Name}"/>
    <DataGridTemplateColumn Header="Actions" CellTemplate="{StaticResource myTemplate}"/>
    </DataGrid.Columns>
    </DataGrid>
    C#
    clientList.Items.Add(new DataClients { Id = 1, Company = "My Company", Name = "Jane Roe"});
    Exceptions
    Exception:Thrown: "'EditItem' is not allowed for this view."(System.InvalidOperationException)
    Exception:Thrown: "The string was not recognized as a valid DateTime. There is an unknown word starting at index 0." (System.FormatException)

    You need to set the ItemsSource property of the clientList DataGrid to a collection of DataClients objects that supports editing. HashSet<DataClients> does not for example but List<DataClients> and ObservableCollection<DataClients> does.
    You could call the ToList() method on the collection that you set as the ItemsSource for the DataGrid to convert it to a List<DataClients>:
    clientList.ItemsSource = yourCollection.ToList();
    The "The string was not recognized as a valid DateTime" error message should be pretty self-explanatory. You are trying to convert a string which doesn't contain a valid date or time value to a DateTime value somewhere, perhaps in the 'myTemplate'.
    There is nothing in the DataClients class that you have posted that will cause this exception to be thrown so it is impossible for anyone to tell.
    But please only ask one question per thread and then start a new thread if you have a new question.
    Please also remember to mark helpful posts as answer to close your threads.

  • How to display data in table

    Hi all,
    can any one tell me how to display data in a table when user click on a button. i have created a node with a set of fields from different tables now how to write the logic to display data in that table.
    Thanks & Regards,
    Naveen

    DATA lo_nd_professionaltable TYPE REF TO if_wd_context_node.
      DATA lo_el_professionaltable TYPE REF TO if_wd_context_element.
      DATA ls_professionaltable TYPE wd_this->ElementS_professionaltable. "internaltable
    TYPES: BEGIN OF TY_PFTAB,
           RATEGROUP TYPE /BIC/OIWRATEGRP,
           LEVEL TYPE /BIC/OIWPCSLEVEL,
           FROMDATE TYPE /BI0/OIDATEFROM,
           FROMTO TYPE /BI0/OIDATETO,
           STANDARD TYPE /BIC/OIWSTRATE,
           OVERHEAD1 TYPE /BIC/OIWOHRTE1,
           OVERHEAD2 TYPE /BIC/OIWOHRTE2,
           OVERHEAD3 TYPE /BIC/OIWOHRTE3,
           EXCEPTIONFLAG TYPE /BIC/OIMSECFILER,
           END OF TY_PFTAB.
    DATA : IT_PFTABLE TYPE STANDARD TABLE OF TY_PFTAB,
           WA_PFTAB TYPE TY_PFTAB.
    SELECT /BIC/WRATEGRP /BIC/WPCSLEVEL DATEFROM DATETO /BIC/WSTRATE /BIC/WOHRTE1 /BIC/WOHRTE2 /BIC/WOHRTE3
    FROM /BIC/AGLDCPRTS00 INTO TABLE IT_PFTABLE.
    *TYPES : BEGIN OF TY_EXCEPTION,
           EXCEPTIONFLAG TYPE /BIC/OIMSECFILER,
           END OF TY_EXCEPTION.
    *DATA : IT_EXTABLE TYPE STANDARD TABLE OF TY_EXCEPTION,
          WA_EXTABLE TYPE IT_EXTABLE.
    *SELECT /BIC/MSECFILER FROM /BIC/AGLDCLMLT00 INTO TABLE IT_EXTABLE.
    navigate from <CONTEXT> to <PROFESSIONALTABLE> via lead selection
      lo_nd_professionaltable = wd_context->get_child_node( name = wd_this->wdctx_professionaltable ).
    get element via lead selection
      lo_el_professionaltable = lo_nd_professionaltable->get_element( ).
    @TODO handle not set lead selection
    IF lo_el_professionaltable IS INITIAL.
    ENDIF.
    get all declared attributes
    lo_el_professionaltable->get_static_attributes(
       IMPORTING
         static_attributes = ls_professionaltable ).
    lo_nd_professionaltable->bind_table( new_items = IT_PFTABLE set_initial_elements = abap_false ).

  • How add my data in comboBox

    hi master
    sir this is my class give my right result in textarea
    bu i need my result in comboBox
    please give me idea how i add my result in combo box
    this line add data in taxarea
    allRowValues.append("ROW "+ rset.getString("title") + "\n");
    how i add in combo
    =========
    import javax.swing.JApplet;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import javax.swing.UIManager;
    import javax.swing.JButton;
    import java.awt.Rectangle;
    import javax.swing.JTextArea;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.sql.*;
    import javax.swing.JLabel;
    import java.util.Properties;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class apcl extends JApplet {
    /** Initialization method that will be called after the applet is loaded
    * into the browser.
    private JComboBox Selector;
    private String [] ColorList;
    private JButton DbConnect = new JButton();
    private JTextArea empValues = new JTextArea();
    private Connection con;
    private JLabel jLabel1 = new JLabel();
    public apcl() {
    public void init() {
    try {
    jbInit();
    } catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(null);
    DbConnect.setText("Click to Connect to DB");
    DbConnect.setBounds(new Rectangle(90, 225, 175, 40));
    DbConnect.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    connectToDB(e);
    empValues.setBounds(new Rectangle(40, 50, 310, 150));
    jLabel1.setText("Emp Records :");
    jLabel1.setBounds(new Rectangle(45, 20, 155, 20));
    this.getContentPane().add(jLabel1, null);
    this.getContentPane().add(empValues, null);
    this.getContentPane().add(DbConnect, null);
    private void connectToDB(ActionEvent e) {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:aamir","muhammad","mfa786");
    con = DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
    empValues.setText("...Connected to the Database.Fetching Values from DEPT Tables.....\n");
    fetchValues();
    } catch (SQLException ex) {
    System.out.println("Connection Error = " + ex.toString());
    public void fetchValues() {
    try {
    Statement stmt = con.createStatement();
    StringBuffer allRowValues = new StringBuffer();
    int counter = 1;
    ResultSet rset = stmt.executeQuery("SELECT accid,title FROM chartofacc");
    while (rset.next())
    //allRowValues.append("ROW " + counter + " ENAME = " + rset.getString(1) + " & ENO = " + rset.getString(2) + "\n");
    allRowValues.append("ROW "+ rset.getString("title") + "\n");
    counter++;
    empValues.setText(allRowValues.toString());
    rset.close();
    stmt.close();
    con.close();
    } catch (SQLException ex)
    System.out.println("Error While Fetching Values = " + ex.toString());
    ======
    please give me idea how i add data in combobox
    thank
    aamir

    Three times in the past I've asked you to use the "Code" formatting tags when posting code so the code is formatted and readable.
    Three strikes and your out. No code tags, no help.

  • How to display data depend upon ListBox value?

    Hi Experts and Particularly Hema,
    As I asked before how to display data in the ListBox, I got an very good response from you all(particularly Hema) .
    Now what my doubt is asked with sample scenario below:
    In Screen Painter -
    Two fields namely : One List Box and other is I/O used only for displaying purpose i.e., only for output, not for input purpose.
    List Box is filled by primary key field(C1) value from one table(T1) when the screen load.(i.e., such code is written in PBO).
    Now what I need is :
    If the user select any one value in the List Box then it automatically display the corresponding C2 value from T1 in the I/O field.
    I think you may all understand what I am trying to ask.Please let me know the solution.
    Thanks in advance,
    Regards,
    Raghu

    Simply attached a function code for the listbox... when the user changes the value, you will be able to pick this up in the PAI and loop back to the PBO and redisplay the corresponding output field.
    Jonathan

  • ADF how to display a processing page when executing large queries

    ADF how to display a processing page when executing large queries
    The ADF application that I have written currently has the following structure:
    DataPage (search.jsp) that contains a form that the user enters their search criteria --> forward action (doSearch) --> DataAction (validate) that validates the inputted values --> forward action (success) --> DataAction (performSearch) that has a refresh method dragged on it, and an action that manually sets the itterator for the collection to -1 --> forward action (success) --> DataPage (results.jsp) that displays the results of the then (hopefully) populated collection.
    I am not using a database, I am using a java collection to hold the data and the refresh method executes a query against an Autonomy Server that retrieves results in XML format.
    The problem that I am experiencing is that sometimes a user may submit a query that is very large and this creates problems because the browser times out whilst waiting for results to be displayed, and as a result a JBO-29000 null pointer error is displayed.
    I have previously got round this using Java Servlets where by when a processing servlet is called, it automatically redirects the browser to a processing page with an animation on it so that the user knows something is being processed. The processing page then recalls the servlet every 3seconds to see if the processing has been completed and if it has the forward to the appropriate results page.
    Unfortunately I can not stop users entering large queries as the system requires users to be able to search in excess of 5 million documents on a regular basis.
    I'd appreciate any help/suggestions that you may have regarding this matter as soon as possible so I can make the necessary amendments to the application prior to its pilot in a few weeks time.

    Hi Steve,
    After a few attempts - yes I have a hit a few snags.
    I'll send you a copy of the example application that I am working on but this is what I have done so far.
    I've taken a standard application that populates a simple java collection (not database driven) with the following structure:
    DataPage --> DataAction (refresh Collection) -->DataPage
    I have then added this code to the (refreshCollectionAction) DataAction
    protected void invokeCustomMethod(DataActionContext ctx)
    super.invokeCustomMethod(ctx);
    HttpSession session = ctx.getHttpServletRequest().getSession();
    Thread nominalSearch = (Thread)session.getAttribute("nominalSearch") ;
    if (nominalSearch == null)
    synchronized(this)
    //create new instance of the thread
    nominalSearch = new ns(ctx);
    } //end of sychronized wrapper
    session.setAttribute("nominalSearch", nominalSearch);
    session.setAttribute("action", "nominalSearch");
    nominalSearch.start();
    System.err.println("started thread calling loading page");
    ctx.setActionForward("loading.jsp");
    else
    if (nominalSearch.isAlive())
    System.err.println("trying to call loading page");
    ctx.setActionForward("loading.jsp");
    else
    System.err.println("trying to call results page");
    ctx.setActionForward("success");
    Created another class called ns.java:
    package view;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.model.generic.DCRowSetIteratorImpl;
    public class ns extends Thread
    private DataActionContext ctx;
    public ns(DataActionContext ctx)
    this.ctx = ctx;
    public void run()
    System.err.println("START");
    DCIteratorBinding b = ctx.getBindingContainer().findIteratorBinding("currentNominalCollectionIterator");
    ((DCRowSetIteratorImpl)b.getRowSetIterator()).rebuildIteratorUpto(-1);
    //b.executeQuery();
    System.err.println("END");
    and added a loading.jsp page that calls a new dataAction called processing every second. The processing dataAction has the following code within it:
    package view;
    import javax.servlet.http.HttpSession;
    import oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    public class ProcessingAction extends DataForwardAction
    protected void invokeCustomMethod(DataActionContext actionContext)
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.invokeCustomMethod(actionContext);
    HttpSession session = actionContext.getHttpServletRequest().getSession();
    String action = (String)session.getAttribute("action");
    if (action.equalsIgnoreCase("nominalSearch"))
    actionContext.setActionForward("refreshCollection.do");
    I'd appreciate any help or guidance that you may have on this as I really need to implement a generic loading page that can be called by a number of actions within my application as soon as possible.
    Thanks in advance for your help
    David.

  • How to display data from a recordset based on data from another recordset

    How to display data from a recordset based on data from
    another recordset.
    What I would like to do is as follows:
    I have a fantasy hockey league website. For each team I have
    a team page (clubhouse) which is generated using PHP/MySQL. The one
    area I would like to clean up is the displaying of the divisional
    standings on the right side. As of right now, I use a URL variable
    (division = id2) to grab the needed data, which works ok. What I
    want to do is clean up the url abit.
    So far the url is
    clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
    I want is clubhouse.php?team=Wings.
    I have a separate table, that has the teams entire
    information (full team name, short team, abbreviation, conference,
    division, etc. so I was thinking if I could somehow do this:
    Recordset Team Info is filtered using URL variable team
    (short team). Based on what team equals, it would then insert this
    variable into the Divisional Standings recordset.
    So example: If I type in clubhouse.php?team=Wings, the Team
    Info recordset would bring up the Pacific division. Then 'Pacific'
    would be inserted into the Divisional Standings recordset to
    display the Pacific Division Standings.
    Basically I want this
    SELECT *
    FROM standings
    WHERE division = <teaminfo.division>
    ORDER BY pts DESC
    Could someone help me, thank you.

    Assuming two tables- teamtable and standings:
    teamtable - which has entire info about the team and has a
    field called
    "div" which has the division name say "pacific" and you want
    to use this
    name to get corresponding details from the other table.
    standings - which has a field called "division" which you
    want to use to
    give the standings
    SELECT * FROM standings AS st, teamtable AS t
    WHERE st.division = t.div
    ORDER BY pts DESC
    Instead of * you could be specific on what fields you want to
    select ..
    something like
    SELECT st.id AS id, st.position AS position, st.teamname AS
    team
    You cannot lose until you give up !!!
    "Leburn98" <[email protected]> wrote in
    message
    news:[email protected]...
    > How to display data from a recordset based on data from
    another recordset.
    >
    > What I would like to do is as follows:
    >
    > I have a fantasy hockey league website. For each team I
    have a team page
    > (clubhouse) which is generated using PHP/MySQL. The one
    area I would like
    > to
    > clean up is the displaying of the divisional standings
    on the right side.
    > As of
    > right now, I use a URL variable (division = id2) to grab
    the needed data,
    > which
    > works ok. What I want to do is clean up the url abit.
    >
    > So far the url is
    clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
    > all
    > I want is clubhouse.php?team=Wings.
    >
    > I have a separate table, that has the teams entire
    information (full team
    > name, short team, abbreviation, conference, division,
    etc. so I was
    > thinking if
    > I could somehow do this:
    >
    > Recordset Team Info is filtered using URL variable team
    (short team).
    > Based on
    > what team equals, it would then insert this variable
    into the Divisional
    > Standings recordset.
    >
    > So example: If I type in clubhouse.php?team=Wings, the
    Team Info recordset
    > would bring up the Pacific division. Then 'Pacific'
    would be inserted into
    > the
    > Divisional Standings recordset to display the Pacific
    Division Standings.
    >
    > Basically I want this
    >
    > SELECT *
    > FROM standings
    > WHERE division = <teaminfo.division>
    > ORDER BY pts DESC
    >
    > Could someone help me, thank you.
    >

  • HT201401 i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    hello, the addons manager is exactly the right place to look for it. please try disabling the addons that are listed there one-by-one (a restart of the browser might be necessary after each step). maybe one of them is bundling this kind of adware.
    [[Disable or remove Add-ons]]

  • How to display data elements in the tempalte header

    Hello friends
    i've this date_from and date_to parameters which are date parameters that user enters..
    based on these date parameters I want to display them in the header as
    day of date_from(for example if the date_from is 13-nov-2010.then I should display 13)and for date_to it should dispaly as 15 if for example the user enters
    16-nov-2010.(date-1's day)
    so it should break down to
    date_from-13-nov-2010, 13
    date_to- 16-nov-2010, 15
    I want these two values to be displayed in the header of the template how to do this
    pls help
    also let me know how to display data elements in the template header
    Edited by: erp on Dec 22, 2010 12:44 AM

    Hi Ananth..Thanks for ur timely reply
    Can I use it with <? substring(':date_from',1,2)?>
    where date_from is an input parameter which user enters at the run time of the report.
    I've to capture the date entered by the user and print it in the header..
    Pls reply

  • How to display Date Calendar in Oracle BI Answers Prompts (parameter)

    I'm still new to OBIEE.
    How to display Date Calendar in Oracle BI Answers Prompts (parameter)?
    Thanks.

    Hi,
    While creating Dash Board prompt choose the control to 'Calendar'.
    I think it is not possible to provide 'Calendar' control using Prompts tab while creating request.
    It is possible to write Java Script for a Column of data type 'char'. So, cast the date data type to char.
    Go to: Column Properties --> Data Format
    Choose override default data format to view the available options in the drop down list.
    I would be very happy if anybody acknowledge me that I am wrong.
    -Vency

  • How to display date and time on jsf page

    Hi,
    how to display date and time on jsf page
    we are using 11.2.0.0 jdeveloper on windows.
    thanks
    Edited by: user12187801 on 26-Jul-2012 01:42

    Your question is certainly lacking some information.
    If you want a constantly updating date/time - then JavaScript is your best bet, and Google would find you examples like [url http://www.webestools.com/scripts_tutorials-code-source-7-display-date-and-time-in-javascript-real-time-clock-javascript-date-time.html]this
    If you meant something else, then it's back to you to explain.

  • How to display that Check Box In Down of Tabular Rows .

    Dear Friends,
    i have created tabular form and one check box Item in that region.
    i want to display that checkbox Item after tabular form Rows .
    How to display that Check Box In Down of Tabular Rows .
    Thanks

    Hi,
    From report attributes, you can change column order
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/bldapp_rpt.htm#sthref1348
    Regards,
    Jari

  • How to display data in alv through double click

    Hello Friends,
    I am new to this community,please tell me if I make any mistake while posting.
    Friends I had written this code. ALV is displayed at first time but when I am double clicking on the row then error is coming related to mismatch of actual and formal paramaters while calling function 'USER_COMMAND'. I am unable to locate where the error is. Please help me out.
    REPORT  ZALV12.
    TYPE-POOLS SLIS.
    DATA: it_vbak type standard table of VBAK,
          it_vbap type table of VBAP.
    DATA: wa_vbak like line of it_vbak,
          wa_vbap like line of it_vbap.
    DATA syrepid like sy-repid.
    DATA:fld_vbak type SLIS_T_FIELDCAT_ALV,
          fld_vbap type SLIS_T_FIELDCAT_ALV.
    DATA:fld_wa_vbak type SLIS_FIELDCAT_ALV,
         fld_wa_vbap type SLIS_FIELDCAT_ALV.
    DATA:vevent type SLIS_T_EVENT,
         waevent type SLIS_ALV_EVENT.
    DATA:LST_HEADR type SLIS_T_LISTHEADER.
    DATA title_alv type LVC_TITLE value 'LIST FOR VBAK'.
    INITIALIZATION.
    syrepid = sy-repid.
    perform get_event.
    perform populate_event.
    perform set_list_headr using LST_HEADR.
    perform field_cat.
    START-OF-SELECTION.
    .....                       "code for displaying data from table VBAK in ALV.
    form USER_COMMAND using R_UCOMM type SY-UCOMM.           "error is in this function.
        data r_selfield type SLIS_SELFIELD.
        case R_UCOMM.
         when '&IC1'.
           read table it_vbak into wa_vbak index r_selfield-TABINDEX.
            perform data_select.
            perform list_heading using LST_HEADR.
            perform event_get.
            perform build_event.
            perform alv_display.
        endcase.
    endform.
    form data_select.
       select * from VBAP into table it_vbap up to 20 rows.
    endform.
    form list_heading using i_lst type SLIS_T_LISTHEADER.
       data HLINE type SLIS_LISTHEADER.
       HLINE-TYP = 'H'.
       HLINE-INFO = 'FOR VBAP'.
       append HLINE to i_lst.
    endform.
    form alv_display.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           I_CALLBACK_PROGRAM                = syrepid
          I_STRUCTURE_NAME                  = 'VBAP'
           I_GRID_TITLE                      = 'SCREEN2_VBAP'
         TABLES
           T_OUTTAB                          = it_vbap
       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
       endform.
       form event_get.
         CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
             I_LIST_TYPE           = 0
         IMPORTING
             ET_EVENTS             = vevent
         EXCEPTIONS
           LIST_TYPE_WRONG       = 1
           OTHERS                = 2
         IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
      endform.
      form build_event.
        read table vevent into waevent with key name = 'TOP_OF_PAGE'.
        if sy-subrc = 0.
          waevent-form = 'F_TOP_OF_PAGE'.
          modify vevent from waevent transporting form
          where name = 'TOP_OF_PAGE'.
          endif.
      endform.
      form F_TOP_OF_PAGE.
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
            IT_LIST_COMMENTARY       = LST_HEADR
          I_LOGO                   =
          I_END_OF_LIST_GRID       =
          I_ALV_FORM               =
      endform.

    You missed one paramete in user_command form
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
    Regards,
    Raymond

  • How to display data as separate clumns when db data is as different rows

    Hi,
    I think i have been confusing the group with UI details.
    The basic requirement is " To display the data as columns which is present as rows in the table"
    For example : For customer 1 ,there are 4 accounts. This info is available in the db table as 4 rows.
    But the OAF display has to be like customer <<account 1 name>><<account 2  name>><<account 3 name>><<account 4 name>>
    Also these needs to be advanced table in advanced table in the same feature.
    Also all the account name columns are dynamic. There can be 3 accounts for one case and 4 for other and hence needs to be built in CO and cant be defined.
    Please advise how do i code different row data as columnar data in a table or advanced table in oaf.
    Does this description help you to help me .
    Thanks,
    Rma

    Hi Rma,
    Please try something like this:
    drop table t_;
    create table t_ (
    nm Varchar2(20),
    pr Char ( 7),
    vl Number
    insert into t_ values ('company 1','2003-06', 10);
    insert into t_ values ('company 1','2003-07', 29);
    insert into t_ values ('company 1','2003-08', 39);
    insert into t_ values ('company 1','2003-09', 41);
    insert into t_ values ('company 1','2003-10', 22);
    insert into t_ values ('company 2','2003-06', 13);
    insert into t_ values ('company 2','2003-07', 17);
    insert into t_ values ('company 2','2003-08', 61);
    insert into t_ values ('company 2','2003-09', 55);
    insert into t_ values ('company 2','2003-10', 71);
    insert into t_ values ('company 3','2003-06', 33);
    insert into t_ values ('company 3','2003-07', 18);
    insert into t_ values ('company 3','2003-08', 27);
    insert into t_ values ('company 3','2003-09', 5);
    insert into t_ values ('company 3','2003-10', 32);
    select
    nm,
    jul,
    aug,
    sep,
    jul+aug+sep "Total"
    from (
    select
    nm,
    max(case when pr='2003-07' then vl else null end) jul,
    max(case when pr='2003-08' then vl else null end) aug,
    max(case when pr='2003-09' then vl else null end) sep
    from
    t_
    group by
    nm);
    This query returns:
    NM JUL AUG SEP Total
    company 1 29 39 41 109
    company 2 17 61 55 133
    company 3 18 27 5 50
    I took this from http://www.adp-gmbh.ch/ora/sql/examples/pivot.html
    Regards,
    Reetesh Sharma

  • How to display an alert message on click of link in tableview

    Hi,
    Following is the code for a tableview in layout section of a BSP( i have specified only one tableview column here). The requirement is to display an alert message on click of link in the first column that is "evbeg". Can anyone please help me how to achieve this? Appreciate quick response on this.
    CREATE OBJECT lr_dateiterator TYPE cl_lso_bsp_it_trdates
                EXPORTING im_application = application
                im_tform = trainingform.
            <htmlb:tableView id            = "dates"
                                 table         = "<%= dates %>"
                                 iterator      = "<%= lr_dateiterator %>"
                                 width         = "100%"
                                 rowCount      = "<%= lp_len %>"
                                 footerVisible = "FALSE"
                                 sort          = "SERVER" >
                  <htmlb:tableViewColumn columnName    = "evbeg"
                                         type          = "user"
                                         title         = "<%= otr(LSO_FRONTEND/schedule) %>"
                                         tooltipHeader = "<%= otr(LSO_FRONTEND/schedule) %>"
                                         sort          = "TRUE" >
                  </htmlb:tableViewColum>
    Thanks and Regards,
    Archana.

    you have to code in the iterator for this.
    in the render_cellstart method of the iterator you need to code.
    this is for a column.
    when 'MATNR'.
    data: text type string.
    text = 'disp_alert()'.   "this java script i placed in the page
    data: lo_link type ref to cl_htmlb_link.
      create object lo_link.
         lo_link->id = p_cell_id.
         lo_link->onclientclick = text.
         lo_link->text = <fs>-matnr.
         p_replacement_bee = lo_link.
    below is the java script i added in my page..
    <  sc ri   pt type="text/javasc ript"   >
    f u n  ction disp_alert()
    a  l e  rt("helloworld");
    < /s  c ript >

Maybe you are looking for

  • Dynamic text box, HTML Text with Image

    Hello Everyone, I am using Flash version 8. I have used the text tool and created a dynamic text box and have attached the UIScrollBar component to it. This text box is configured to allow the use of html text to be inputted to it. I have code that r

  • How do I toggle back and forth from the live site in the tutorial to the working site?

    How do I toggle back and forth from the live site in the tutorial to the working site?

  • Unable to write to Seagate Backup Plus drive on Mac

    I just installed a brand new Seagate Backup Plus drive on my laptop with the goal of being able to use it on Macs and PCs.Seagate's web site says this: Using the drive under MacOS and Windows If you want to use the drive under Windows and MacOS, simp

  • Actions in Extensions of ByDesign BOs possible?

    Is it possible to create Actions in Extensions of ByDesign BOs? If I try to activate an BO Extension with defined Actions, i get the following Error Message:    "Generating aborted because of errors in the extended business object" Without any Action

  • Error in F110 transacion - CNTL_ERROR

    We are rececived the following error message when execute the F110 transaction: Short text     Exception condition "CNTL_ERROR" raised. Error analysis     A RAISE statement in the program "CL_GUI_CFW====================CP" raised the      exception