Set a value of an element of value in the column of a checkbox (not ROWID) in an interactive report APEX 4

I have an interactive relationship with an APEX_APPLICATION. CHECKBOX (1,MYCOLUMN) I want users to check the box in the column of the report, and then click a button.  When they click this button I want the value of an element of the value of the MYCOLUMN for boxes ticked.  I will concatenate the values with commas. I'm fairly new to APEX and can't seem to define the value AS #MYCOLUMN # is the column alias.  This value would be set with PL/SQL. I now get "#MYCOLUMN # as my value so I don't ' have the correct syntax.

Any help is greatly appreciated.  Thank you.

Hello

Put this in the header HTML of your page and you should be good to go.

Remember to change to the name of the element you want to be defined by the function.

Note that I used al colon as a separator (in le.get (.join(':'))). You can change that to a comma if you like that better.

Tags: Database

Similar Questions

  • Setting cell values in the DataGrid control

    I have a request to a custom component called DataEntryDataGrid (which is a subclass of mx:DataGrid) I started on this blog: http://blogs.Adobe.com/aharui/2008/03/custom_arraycollections_adding.html

    The component works fine, but in this particular datagrid, I need special features.   After the first line of data is entered in the tabs of the user in the following line, I need the first and second columns to be filled based on the values of the previous row and then I need to automatically focus on the cell in the third column.  While the first and second columns must be always editable, they will be largely repetitive, and it would help if users did not have to enter the same numbers over and over again.  The first column of the new row should be the same value as the first column in the last row and the second column of the new row should be (value of the last row + 1). Example:

    DataGrid:
    
    | Slide No. | Specimen No. | Age | Weight | Length |
    |    1      |     1        |  5  |  65    |  40    |  <- This row is manually entered, just text inputs
    |    1*     |     2*       |  #  |        |        |
    
    * = values set programatically, these cells should still be focusable and editable
    # = this is where the focus should be
    

    The problem I have is that when I tab in the next line, the first value in the column don't prepare you.  The second column gets the value correct and properly displayed and emphasis is placed in the correct cell (the third column), but the first column remains empty.  I don't know why that is.  If I put a breakpoint in the code in the function focusNewRow() (which is called in the event of the dataGrid "itemFocusIn") (first column) "slideNo" value is set to the correct value, but after the 'focusNewRow' work finishes, a dataProvider trace [the current line] .slideNo shows the value is empty.  Non-null, just empty.  Traces of all other columns indicate the correct values.  Anyone have any ideas?  Here is the code for my main application:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
             xmlns:s="library://ns.adobe.com/flex/spark" 
             xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:components="components.*">
      <fx:Script>
        <![CDATA[
          import mx.controls.DataGrid;
          import mx.events.DataGridEvent;
          
          public function traceSlideNo():void {
            var i:int;
            var g:Object = myDataGrid.dataProvider;
            for(i = 0; i < g.length -1; i++) {
              trace("sl: " + g[i].slideNo + ", sp: " + g[i].specimenNo + ", age: " + g[i].age);
            }
          }
          
          public function focusNewRow(e:DataGridEvent):void {
            if(e.currentTarget.dataProvider.length > 0 && e.rowIndex != 0 && e.columnIndex == 0) {
              var dg:DataGrid = e.currentTarget as DataGrid;
              var lastItem:Object = dg.dataProvider[e.rowIndex - 1];
              var targetItem:Object = dg.dataProvider[e.rowIndex];
              if(targetItem.specimenNo == "") {
                var focusCell:Object = new Object();
                focusCell.rowIndex = e.rowIndex;
                focusCell.columnIndex = 2;
                dg.editedItemPosition = focusCell;
                
                targetItem.slideNo = int(lastItem.slideNo);
                targetItem.specimenNo = int(lastItem.specimenNo) + 1;
                
                callLater(dg.dataProvider.refresh);
              }    
            }
          }
        ]]>
      </fx:Script>
      
      <components:DataEntryDataGrid x="10" y="10" width="450" id="myDataGrid" itemFocusIn="focusNewRow(event)"
                      editable="true" rowHeight="25" variableRowHeight="false">
        <components:columns>
          <mx:DataGridColumn headerText="Slide No." dataField="slideNo" editable="true"/>
          <mx:DataGridColumn headerText="Specimen No." dataField="specimenNo" editable="true"/>
          <mx:DataGridColumn headerText="Age" dataField="age" editable="true"/>
          <mx:DataGridColumn headerText="Weight" dataField="weight" editable="true"/>
          <mx:DataGridColumn headerText="Length" dataField="length" editable="true"/>
        </components:columns>
      </components:DataEntryDataGrid>
      <s:Button x="10" y="195" label="Trace Slide Numbers" click="traceSlideNo()"/>
    </s:Application>
    

    And here is the custom component, DataEntryDataGrid, just for reference (place in the "components" package in this example):

    <?xml version="1.0" encoding="utf-8"?>
    <mx:DataGrid xmlns:fx="http://ns.adobe.com/mxml/2009" 
           xmlns:s="library://ns.adobe.com/flex/spark" 
           xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init(event)"
           editable="true" wordWrap="true" variableRowHeight="true">
      <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      
      
      
      <fx:Script>
        <![CDATA[
          import components.NewEntryArrayCollection;
          
          import mx.controls.Alert;
          import mx.controls.dataGridClasses.DataGridColumn;
          import mx.events.DataGridEvent;
          import mx.events.DataGridEventReason;
          import mx.events.FlexEvent;
          import mx.utils.ObjectUtil;
          
          private var arr:Array = [];
          private var ac:NewEntryArrayCollection;
          private var dg:DataGrid;
          
          public var enableDeleteColumn:Boolean;
          
          private function generateObject():Object
          {
            // Returns a new object to the datagrid with blank entries for all columns
            var obj:Object = new Object();
            for each(var item:Object in this.columns) {
              var df:String = item.dataField.toString();
              obj[df] = "";
            }
            return obj;
          }
          
          private function isObjectEmpty(obj:Object):Boolean
          {
            // Checks to see if the current row is empty
            var hits:int = 0;
            
            for each(var item:Object in this.columns) {
              var df:String = item.dataField.toString();
              if(obj[df] != "" || obj[df] !== null) {
                hits++;
              }
            }
            if(hits > 0) {
              return false;
            }
            return true;
          }      
          
          private function init(event:FlexEvent):void
          {
            dg = this;                // Reference to the DataEntryDataGrid
            ac = new NewEntryArrayCollection(arr);  // DataProvider for this DataEntryDataGrid
            ac.factoryFunction = generateObject;
            ac.emptyTestFunction = isObjectEmpty;        
            dg.dataProvider = ac;
            
            // Renderer for the DELETE column and Delete Button Item Renderer
            if(enableDeleteColumn == true){
              var cols:Array = dg.columns;
              var delColumn:DataGridColumn = new DataGridColumn("del");
              delColumn.editable = false;
              delColumn.width = 35;
              delColumn.headerText = "DEL";
              delColumn.dataField = "delete";
              delColumn.itemRenderer = new ClassFactory(DeleteButton);
              cols.push(delColumn);
              dg.columns = cols;
              dg.addEventListener("deleteRow",deleteClickAccept);
            }
          }
          
          private function deleteClickAccept(event:Event):void { // Handles deletion of rows based on event dispatched from DeleteButton.mxml
            dg = this;
            ac = dg.dataProvider as NewEntryArrayCollection;
            if(dg.selectedIndex != ac.length - 1) {
              ac.removeItemAt(dg.selectedIndex);
              ac.refresh();
            }
          }
    
        ]]>
      </fx:Script>
      
    </mx:DataGrid>
    

    In addition, the NewEntryArrayCollection.as file that is referenced by the component custom.  This is true also in the package "components":

    package components 
    {
      import mx.collections.ArrayCollection;
      
      public class NewEntryArrayCollection extends ArrayCollection
      {
        private var newEntry:Object;
        
        // callback to generate a new entry
        public var factoryFunction:Function;
        
        // callback to test if an entry is empty and should be deleted
        public var emptyTestFunction:Function;
        
        public function NewEntryArrayCollection(source:Array)
        {
          super(source);
        }
        
        override public function getItemAt(index:int, prefetch:int=0):Object
        {
          if (index < 0 || index >= length)
            throw new RangeError("invalid index", index);
          
          if (index < super.length)
            return super.getItemAt(index, prefetch);
          
          if (!newEntry)
            newEntry = factoryFunction();
          return newEntry;
        }
        
        override public function get length():int
        {
          return super.length + 1;
        }
        
        override public function itemUpdated(item:Object, property:Object = null, 
                           oldValue:Object = null, 
                           newValue:Object = null):void
        {
          super.itemUpdated(item, property, oldValue, newValue);
          if (item != newEntry)
          {
            if (emptyTestFunction != null)
            {
              if (emptyTestFunction(item))
              {
                removeItemAt(getItemIndex(item));
              }
            }
          }
          else
          {
            if (emptyTestFunction != null)
            {
              if (!emptyTestFunction(item))
              {
                newEntry = null;
                addItemAt(item, length - 1);
              }
            }
          }
        }
        
      }
    
    }
    

    Sorry for the length of this post, but I hate to see people post without including enough information to solve the problem.  If there is nothing, I have left out, made me know.

    I think that in the NewEntryArrayCollection, I would wire up to generate a

    populated point instead of where you are right now.

  • need to update the value of the column automatically (exists and the new value)

    Hello

    (1) I Segment1, Segment2, Segment3, Segment4, item_status (new column modified in the Temp table)

    Must update the form OFA and the DB Temp table item_status value in the column when I click APPLY to SAVE the Inserted records in the DB table and form and must register the mtl_system_items_b Segment1, Segment2, Segment3, Segment4 in which the condition

    Note: need to update automatically item_status for existing and new inserted records in the Table and the form

     Serializable[] param = {Segment1, Segment2, Segment3, Segment4
                       };
                       am.invokeMethod("InsertRecord", param);
                       row.setAttribute("SelectFlag", "N");
    

    Thank you

    Renon,

    When you write code, try to understand what makes each line. (If you don't understand all the lines, feel free to ask)

    row.setAttribute ("ItemStatus", row.getAttribute ("ItemStatus"));

    What do you think that the above line done? You try to get the value of the attribute and trying to put the same value. How is it, that will have an impact?

    You need to do 2 things.

    1. change the insertRecord method and the State of return of this method.

    Change the definition of the function:

    public String InsertRecord (String itemstyle, String itemcust, String itemsize, String itemcolor, String ordrno,

    String desc)

    Add a return statement at the end after validation.

    TR.Commit ();

    return the situation;

    }

    2 accept that status in CO and set the value to the attribute details VO.

    String status = (String)am.invokeMethod ("InsertRecord", param);

    row.setAttribute ("ItemStatus",status);

    I hope this helps.

    See you soon

    AJ

  • update line and reset the value of the column

    I have table (CORS_MTR) with 3 columns...

    SEQ ID of the EPR the ID of the child / / desc
    100221one
    101222two

    new entry as 1 number , that means change the flow of child #

    102223three

    When I enter the new line in number of children 1 instead of 2 and then the values of the column (child id, desc) another need to be reset as...

    SEQ ID of the EPR the ID of the child / / desc
    100222two
    101221one
    102223three
    103224four
    SEQ PRT_ID CHILD_ID DESC_
    100 22 1 one
    101 22 2 two
    102 22 3 three

    declare

    number of p_seq: = 103;

    number of p_prt_id: = 22;

    number of p_child_id: = 1;

    p_desc varchar2 (25): = 'a ';

    Start

    Update cors_mtr

    set seq = case when child_id = p_child_id

    then seq + 1

    other seq - 1

    end

    where prt_id = p_prt_id

    and child_id (p_child_id, p_child_id + 1);

    insert into cors_mtr (seq, prt_id)

    values(p_seq,p_prt_id);

    Update cors_mtr

    Set child_id = (select max (child_id) + 1 of the cors_mtr).

    desc_ = (select to_char (to_date (max (child_id) + 1, 'J'), 'jsp') of cors_mtr)

    where child_id is null.

    end;

    SEQ PRT_ID CHILD_ID DESC_
    100 22 2 two
    101 22 1 one
    102 22 3 three
    103 22 4 four

    Concerning

    Etbin

  • The data specified in the request is invalid. The value of the field id package is not a MultipleLiteral, but the field is defined as MultiValued

    We have a property in a component software which is an array. the value is [""]

    In the blueprint I am sitting a value property ['vim', 'emacs'] defalult

    When I ask this plan and change the values of foo, bar, I get this error

    The data specified in the request is invalid. The value of the field id package is not a MultipleLiteral, but the field is defined as MultiValued

    someone knows why this happens?

    I'm runnign vra7.0.1

    Strangely, it works if

    Overridable is set to NO

  • Partial Page rendering - refresh value in the column

    Hi gurus of the OFA.
    I created a page of creation and followed the tutorial on Partital page made by creating a view PVO object and I am able to make the "EmployeeNumber" / "Location" column true false GOLD according to the value of another field (area).

    The 'TypeMonitored' (choice of message) has 2 values (area/employee). If the user selects the 'zone' then "EmployeeNumber" column should be hidden and if the user selects 'Employee', then the 'Place' column should be hidden. It works very well.

    My problem is if the user has selected 'Employee' in the 'TypeMonitored' of poplist and registered the "EmployeeNumber" and then immediately again if the user selects "Domain" of the "TypeMonitored" of poplist and enters the 'place' (since the site is now visible to the user) and click on Save and then the record is get recorded with the two values. I need to have the value of the column of 'Employee' to be empty in this case.

    Basically need to SETTING / erases the value of EmployeeNumber before any record in the database.

    Any help would be appreciated to greatlly. Please let me know if you want more details.

    Thank you
    Mir

    Here is my Code AMImpl
    ===============
    package lac.oracle.apps.lac.lacempexposure.server;

    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    Import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    Import oracle.jbo.Row;
    Import oracle.apps.fnd.framework.OAViewObject;
    Import oracle.jbo.Transaction;

    Import oracle.jbo.domain.Number;
    Import oracle.apps.fnd.framework.OARow;
    Import oracle.apps.fnd.common.MessageToken;
    Import oracle.apps.fnd.framework.OAException;

    // ---------------------------------------------------------------------
    -File generated by Oracle ADF business components Design-time.
    -Custom code can be added to this class.
    -WARNING: do not change the methods generated method signatures.
    // ---------------------------------------------------------------------
    SerializableAttribute public class LacEmpExposureAMImpl extends OAApplicationModuleImpl {}

    / * This is the default constructor (do not remove)
    */
    public LacEmpExposureAMImpl() {}
    }

    /*
    *****************************************************************
    * Initializes the application transient VO properties.
    *****************************************************************
    */
    public void init()
    {

    System.out.println ("in LACEmpExposureAMImpl.java IN init");
    System.out.println (LacTypeMonitored);

    OAViewObject appPropsVO = (OAViewObject) findViewObject ("LacExpCreatePVO1");

    If (appPropsVO! = null)
    {
    Not reset the VO unless necessary. Note that this method
    not trying to query the database for your with no SELECT statement
    and only transient attributes.

    If (appPropsVO.getFetchedRowCount () == 0)
    {

    Set the mapping size extraction to 0 to a VO in memory
    It prevents to try the query lines. The call
    executeQuery() ensures that the lines are not lost after
    validation under (workaround for known issue of BC4J) operation.

    appPropsVO.setMaxFetchSize (0);
    appPropsVO.executeQuery ();

    You must create and insert a line in the original Version, before you start
    definition of the properties.

    appPropsVO.insertRow (appPropsVO.createRow ());
    Set the primary key for this single-rwo VO.
    Line OARow = (OARow) appPropsVO.first ();
    row.setAttribute ("RowKey", new Number (1));
    }
    } / / Initialization of application VO properties (and the user interface) based on the
    Tracking to default value set on the underlying object Type.


    handleTypeMonitoredChangeEvent();

    } / / end of init()


    /*
    * *******************************************************
    Manages the poplist TypeMonitored changes to set the
    * application properties value of PRR VO
    * *******************************************************
    */

    Public Sub handleTypeMonitoredChangeEvent()
    {
    Get the properties of special application, einreihig, and make the
    First (only) current line.

    OAViewObject vo = (OAViewObject) findViewObject ("LacExpCreatePVO1");
    Line OARow = (OARow) vo.first ();

    Get the value of the attribute of the object from view with the code TypeMonitored


    OAViewObject LacEmpExposureCreateVO = (OAViewObject) findViewObject ("LacEmpExposureVO1");
    OARow LacEmpExposureCreateRow = (OARow) LacEmpExposureCreateVO.getCurrentRow ();
    String LacTypeMonitored = (String) LacEmpExposureCreateRow.getAttribute ("TypeMonitored");


    System.out.println ("in LACEmpExposureAMImpl.java IN handleTypeMonitoredChangeEvent");
    System.out.println (LacTypeMonitored);
    row.getAttribute ("LocationMonitoredRender");
    System.out.println (Row.GetAttribute ("LocationMonitoredRender"));


    If (("Personal".equals (LacTypeMonitored)))
    {
    row.setAttribute ("LocationMonitoredRender", Boolean.FALSE);
    row.setAttribute ("EmployeeNumberRender", Boolean.TRUE);
    row.setAttribute ("FullNameRender", Boolean.TRUE);

    }
    else if (("Area".equals (LacTypeMonitored)))
    {

    row.setAttribute ("LocationMonitoredRender", Boolean.TRUE);
    row.setAttribute ("EmployeeNumberRender", Boolean.FALSE);
    row.setAttribute ("FullNameRender", Boolean.FALSE);
    }

    } / / handleTypeMonitoredChangeEvent()



    / * Main sample for debugging code of business using the tester components.
    */
    Public Shared Sub main (String [] args) {}
    launchTester ("lac.oracle.apps.lac.lacempexposure.server", / * name of the package * /)
    ("LacEmpExposureAMLocal" / * Configuration name * /);
    }

    / * Getter of the container for LacEmpExposureVO1
    */
    public OAViewObjectImpl getLacEmpExposureVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacEmpExposureVO1");
    }

    / * Getter of the container for EmployeeNamesLovVO1
    */
    public OAViewObjectImpl getEmployeeNamesLovVO1() {}
    return (OAViewObjectImpl) findViewObject ("EmployeeNamesLovVO1");
    }

    / * Getter of the container for MonitoringTypeVO1
    */
    public OAViewObjectImpl getMonitoringTypeVO1() {}
    return (OAViewObjectImpl) findViewObject ("MonitoringTypeVO1");
    }

    / * Getter of the container for LacParameterMonitoredVO1
    */
    public OAViewObjectImpl getLacParameterMonitoredVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacParameterMonitoredVO1");
    }

    /*
    *******************************
    * Creates a new record of the exhibition
    *******************************
    */
    Public Sub CreateLacEmpExposure()
    {
    OAViewObject vo = (OAViewObject) getLacEmpExposureVO1 ();

    By coding standards, it is the right way of
    initialize a VO that is used for queries and inserts.
    See the objects in view in detail in the developer's Guide can do for
    Additional information.

    System.out.println ("in LACEmpExposureAMImpl.java IN CreateLacEmpExposure");

    If (!) VO.isPreparedForExecution ())
    {
    vo.executeQuery ();
    }
    Line = vo.createRow ();
    vo.insertRow (row);
    Required by OA Framework model M69 coding standards

    row.setNewRowState (Row.STATUS_INITIALIZED);

    } / / end CreateLacEmpExposure


    /*
    *****************************************************************
    * Performs a rollback, including the database and the middle-tier
    *****************************************************************
    */
    Public Sub rollbackLacEmpExposure()
    {
    Transaction txn = getTransaction();

    This small optimization ensures that we do not have persorm a restore
    If you have not to.

    If (txn.isDirty ())
    {
    TXN. Rollback();
    }
    } / / end rollbackLacEmpExposure()

    / * Getter of the container for LacEmpExposureLOVDataVO1
    */
    public OAViewObjectImpl getLacEmpExposureLOVDataVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacEmpExposureLOVDataVO1");
    }

    /*
    * *****************************
    * Commits the transaction
    * *****************************
    */
    public void Apply()
    {
    getTransaction () .commit ();
    } / / end apply()

    / * Getter of the container for LacExpCreatePVO1
    */
    public OAViewObjectImpl getLacExpCreatePVO1() {}
    return (OAViewObjectImpl) findViewObject ("LacExpCreatePVO1");
    }


    /*
    ***********************************************************************
    * Initializes the request of employee details for the Update Page.
    ***********************************************************************
    */
    public void initDetailsUpdate (String EmployeeNumber,
    String FullName,
    String RecordSeq)
    {

    System.out.println ("in LACEmpExposureAMImpl.java IN initDetailsUpdate");

    System.out.println ("LACEmpExposureAMImpl == > EmployeeNumber in initQueryUpdate is:" + EmployeeNumber);
    System.out.println ("LACEmpExposureAMImpl == > FullName in initQueryUpdate is:" + FullName);
    System.out.println ("LACEmpExposureAMImpl == > RecordSeq in initQueryUpdate is:" + RecordSeq);

    OAViewObjectImpl vo = getLacEmpExposureVO1();

    LacEmpExposureEditVOImpl vo = (LacEmpExposureEditVOImpl) getLacEmpExposureEditVO1 ();


    OAViewObject vo = (OAViewObject) getLacEmpExposureVO1 ();

    If (vo is nothing)
    {
    MessageToken [] errTokens = {new MessageToken ("parameter", "LacEmpExposureVO1")};
    throw new OAException ("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    }

    ToL InitQueryUpdate (EmployeeNumber, FullName, RecordSeq);

    Line row = vo.first ();

    vo.setCurrentRow (row);



    /*
    Since we will interview a single row with a primary key value, we
    can use the findByKey method, which first checks the cache of BC4J
    and if it does not find one matching row, it will put forward a request for help
    the given key and retrieve it from the database.
    String [] keys = {employeeNumber};
    Line lines [] = vo.findByKey (new Key (keys), 1);

    You must set the current line, or the details page will not display any
    data. When you explicitly query data, you don't have to do it.

    If (rows! = null)
    {
    vo.setCurrentRow(rows[0]);
    }
    */

    } / / end initDetails()


    / * Getter of the container for LacEmpExposureEditVO1
    */
    public LacEmpExposureEditVOImpl getLacEmpExposureEditVO1() {}
    return (LacEmpExposureEditVOImpl) findViewObject ("LacEmpExposureEditVO1");
    }
    } / / end of class LacEmpExposureAMImpl

    Hello

    In your LacTypeMonitored / / I guess it will fire when you change the value of employee poplist form in area
    Add logic for null value, the value of the employee
    If (("Area".equals (LacTypeMonitored)))
    {

    row.setAttribute ("LocationMonitoredRender", Boolean.TRUE);
    row.setAttribute ("EmployeeNumberRender", Boolean.FALSE);
    row.setAttribute ("FullNameRender", Boolean.FALSE);

    Change the attribute used to null
    (OARow) LacEmpExposureCreateVO.getCurrentRow () .setAttribute ("", null);

    }

    Let me know that it works.

    Thank you

    With respect,
    Kali.
    OSSI.

  • How to use the prompt value in the column of the report

    Hello

    I have a quick report column which is 'Adj Type' that contains values 10,20,30, and when the user selects Adj Type = 10, this value should be passed on to the column of the report.

    For example. Value in column 1 is 10 and this should multiple with the prompt value and production is expected to be 10 * 10.

    Ideas how to capture the prompt values in the column of the report for the calculation.

    Hi hsekar,

    (1) declare a presentation online in the section variable set Variable--> Variable--> P_var presentation

    (2) in Fx Table_name. Your_column * @{P_Var}

    @{P_var} {20} (20 is the default, it replaces when a user selects the value in the command prompt

    Thank you
    Saichand.v

  • Showing the value of the column in the custom alert

    Hi all

    I want to show the value of the column with the message the user defined alert. Have someone to help me with this problem?


    Arif

    This is the only code that you use for the alert. This code is just to set the alert message. Use the complete as code...

    DECLARE
     vAlert NUMBER;
    BEGIN
      set_alert_property('ALERT_TO_VERIFY',ALERT_MESSAGE_TEXT, 'Your Form has successfully submitted and your Reference id is '||:USERCREATION.REF_NO);
      vAlert:=SHOW_ALERT('ALERT_TO_VERIFY');
    END;
    

    -Clément

  • How to highlight the line of the ADF table based on the value of the column?

    Hi all

    I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.

    Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.

    How can I achieve this? Please help me with this.

    Thank you
    Abhijit

    Hello

    You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)

    Something like

    
    

    If you want the entire line to be a different color, you have 2 options.

    1. define the same style inline for all columns in the table (good if you want to do only for a single table).
    2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).

    Arun-

    Published by: joel Ramamoorthy, October 23, 2009 16:56

  • Change quick values to 'ALL' of 'all values in the column.


    Hello

    I want to change the 'all values in the column' value for 'all' in the quick view of dashboard.

    I went to the location following: < MW_HOME > / Oracle_BI1/bifoundation/web/msgdb/l_en/messages /.

    But I am unable to determine which xml file to be changed.

    Help, please.

    Just in case where to check Srinivasan Software Solutions Pvt.Ltd.: [OBIEE 11 g] customization invites "All THE values in column" Custom value

  • Dynamically by passing the values in the columns

    Hi all

    I'm trying a pl/sql block that take a string and execute it dynamically. Suppose that here is the string

    M_COL: = Q' [(Code_P = > ': DEPTNO', P_CODE_TYPE = > "ÉTAT")]';

    Now try to run. using below

    M_STR: = 'SELECT CHK_DEPT ' | M_COL | ' FROM EMP WHERE EMPNO = "7499" ';


    RUN IMMEDIATELY M_STR

    IN M_DATE;

    Now what I want is M_STR vairable executed as

    SELECT CHK_DEPT (Code_P = > DEPTNO, P_CODE_TYPE = > 'STATE') FROM EMP WHERE EMPNO = '7499'

    Instead of

    SELECT CHK_DEPT (Code_P = > 'DEPTNO', P_CODE_TYPE = > 'STATE') FROM EMP WHERE EMPNO = '7499'

    another other way in the Code_P column DEPTNO value parameter must be passed. Also note that the DEPTNO column in the M_COL string is Dynamic.i.e

    M_COL: = Q' [(Code_P = > ': DEPTID', P_CODE_TYPE = > "ÉTAT")]'; OR

    M_COL: = Q' [(Code_P = > ': EMP_ID', P_CODE_TYPE = > "ÉTAT")]';

    Any suggestions, please share with me.

    And also, please don't bother much about the data and the output of function. If I get a way to pass the value of the column in function, my problem is solved.

  • How to display the value of the column

    Oracle 10g on Linux

    I want to display the value of the id column in the table of www if count (distinct id) is 1. The following query is fine except that it does not display the value of the column ID help, please.
    SELECT count(distinct id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1                                                

    I think you can use MAX in this case

    SELECT max(id)
                   FROM www c
                  WHERE C.x_code IN (SELECT D.x_code
                                                     FROM www_app d
                                                    WHERE d.y_code = '1151299386')
                  having count(distinct id) = 1
    
  • How can I replace the value of the column with a particular value in SQL

    Hi all

    Is someone can you please tell me how can I format my output with the replacement of a column value with a specific value that really depends on the current value of the column

    I am executing the following SQL statement

    Select state, count (id) from < table_name > where composite_dn = < composite_dn_name > Group by State;
    My current performance is:

    State Instance number
    1 3
    3 28

    I want to replace the value in the State column as follows

    No.OfInstances State
    3 filled
    28 faulted

    I want '1' to be reppaced of 'Done' and '3' is replaced by 'Faulted. '

    Is is possible with SQL or PL/SQL, if it is then how I can achieve this required. Help, please!

    Thanks in advance!

    Published by: Roshni Shankar on October 27, 2012 12:38 AM

    Hi Claude,.

    I guess this CASE clause can be simulated by a DECODE and also it is very easy to use.
    See - http://www.techonthenet.com/oracle/functions/decode.php

    select decode(t1.state,t2.state_id,t2.state_name), t1.count_id
    from  t2, (select state,count(id) count_id
     from 
     where composite_dn= 
    group by state) t1
    where t1.state = t2.state_id;
    

    HTH
    Vanessa B.

    Published by: Vanessa B on October 27, 2012 14:02
    -link added

    Published by: Vanessa B on October 27, 2012 14:19
    -added code sample

  • How to find if the DEFAULT VALUE of the COLUMN is stored as metadata?

    Hello
    I am using Oracle 11 g enhanced functionality add a COLUMN. Adding new columns with the DEFAULT values and unconstrained NULL is no longer requires that the default value in all existing records.
    Sometimes, we change DB columns not NULL with default with the DEFAULT value null. This operation "materialize" the default for the column.
    Y at - it an easy way (see Dictionary) how to find the default value of the COLUMN is stored as metadata or 'materializes '?
    Thank you. Filip

    Version of Oracle RDBMS: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Look at the table SYS COL$. He has a column called PROPERTY.

    It will have the magic number 1073741824 for columns that have been added by using this new feature...

  • Add numeric value in the column in the Table

    Hello
    My problem:
    I have a VO with a numeric attribute (Sal). This VO is present in a table in a JSF Page.
    I need to add a numerical value to the value of the column.

    I have try it with #{row.bindings.Sal.attributeValue * 2} or #{rank. SAL + 2} or #{rank. Sal.inputValue + 2} but I get an error.

    Can someone help me?

    Thank you

    11.1.3 JDev

    Hello

    one option would be to use a transitional attribute in the VO to calculate math or to fill in the field column of a managed bean. You can point the field for the column to a property of the managed bean (say sumSal). In this getSumSal() method you

    1. use ELContext and ValueExpression ExpressionFactory to resolve the reference #{line} (you can cast oracle.jbo.domain.Row
    2. call the row.get ("attribute_name") to access the value of the field
    3 compute and return the value to display in the table

    Note that using a transitional attribute may be easier to achieve and easier to reuse in other uses of the VO. However, you will have options

    Frank

Maybe you are looking for

  • DLLEXPORT, DLLSTDCALL and the two

  • Silverlight can not uninstall

    I can't get rid of silverlight.  It says "the component you are trying to use is on a network resource that is unavailable". Please enter a different path... .silver light.msi "Cant find msi, tried to remove silverlight reg keys. It won't go away

  • help me to the radio station to play?

    All of a sudden I can't play a radio station I have on My Favorites bar. http://www.927jillfm.com/ I must have done some settings change that messed up. When I click the button to listen live online on the homepage of the site, now, it appears a smal

  • WRT1900AC - password is admin?

    Well, not sure if this happened to someone else. I had problems with the router, chatted with technical support, did what they suggest: 1.Re - flash the new firmware 2. Hold button reset for 10 seconds. I was somewhere, a few new options for options

  • What services do need me for a wireless network running?

    Original title: wireless network. What services do need me for a wireless network running? Or is completely managed by the modem provided from my ISP?