How to set Destination URI of a column in a multi row table

Hi,
I need to programmatically set the destinationURI property of a 'messageStyleText' column in a multi-row table.
I have used the below code in the processRequest of the Controller of the page:
OAViewObject viewObject = (OAViewObject)am.findViewObject("IntSummBackOrdDetVO");
String url = (viewObject.getCurrentRow().getAttribute("ErrorCode")).toString();
url = "/oiphtml/o2c22_"+url+".htm";
OAStaticStyledTextBean errorlink = (OAStaticStyledTextBean) webBean.findChildRecursive("ErrorCode1");
errorlink.setDestination(url);
But this code is not working. Could you please help me in correcting the above code?

user594528 ,
What ur trying to do can be conceptually possible through bound values only as there are many rows in table.Read bound values section in dev guide, to understand the fundamentals.
You can refer to thread to correct ur code:
Re: Unable to set Destination URI to URL stored in a VO attribute
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • SOLVED: Unable to set Destination URI to URL stored in a VO attribute

    Hi OAF Gurus,
    I want to set destination URI for a message styled text bean in my custom OAF page, such that on clicking the link a popup window comes up with an external url. This external url is record specific and is stored in a db table. I have access to this url thru a VO attribute on my page.
    If I set destination URI declaratively using a static url, it works fine for me. However when I try to pick up the destination url from VO attribute, fwk is prefixing "http://server:port/" to the url and consequently making it an invalid url.
    Please suggest a way to stop fwk from prefixing "http://server:port/" to the url stored in my VO attribute.
    What works:
    Destination URI:
    javascript:var a = window.open('http://www.google.com/', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    What doesn't work:
    Destination URI:
    javascript:var a = window.open('{@BpelInstanceUrl}', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    VO attribute BpelInstanceUrl has value "http://www.google.com/".
    When I specify the above destination uri using VO attribute 'BpelInstanceUrl', I get the following url on the link:
    javascript:var a = window.open('http%u003a//www.google.com/', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    I searched the forum, but couldn't find any discussion on setting destination uri to an external url based on the value of a VO attribute.
    Thanks for the help. Waiting for your valuable inputs.

    Shiv,
    I don't think your suggestion will work, because jsp redirect which framework will use internally will take default port number if fully qualified url(like http://www.google.com/') is not used.So, Ritesh will have the same problem as he mentioned.
    Now, Ritesh coming back to your problem, the solution is to attach the fully qualified url in the table component at runtime. This will help you in two forms:
    1)There will be no MAC key validation for your javascript generated url.
    2)Your fully qauilified url will be attached to url property at runtime, so would not face the current problem.
    Hence you need to use bound values api. Here is the sample code:
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "<vo attr name which stores url for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Setting the header of a Column group in a Advanced table dynamically

    Hi All,
    There is a requirement to set the Header of a column group in a Advanced table dynamically by fetching the values from a view attribute.
    Code :
    OAAdvancedTableBean spiderTbl1 ;
    Problem:
    It is not able to set the value for the header inspite of getting the handle of the bean.
    Analysis:
    the same piece of code works for
    1) Setting the text of the advanced table
    2) Setting the header of a column in a column group
    Please let me know if there is anything more that needs to be done for setting the prompt of a column group header.
    Thanks in advance!

    I have posted it without giving the complete code by mistake. Below is the code:
    OAAdvancedTableBean spiderTbl1 ;
    OASortableHeaderBean spiderHdr1;
    spiderTbl1 = (OAAdvancedTableBean)webBean.findChildRecursive("SpiderCatTbl1RN");
    if (spiderTbl1!=null){
    spiderHdr1= (OASortableHeaderBean)spiderTbl1.findChildRecursive("AnalogHdr");
    if (spiderHdr1!=null) {
    spiderHdr1.setAttributeValue(OAWebBeanConstants.PROMPT_ATTR,
    new OADataBoundValueViewObject(spiderHdr1,
    "SpiderCategory1",
    "ProjRegPVO1"));
    }

  • Setting Destination URI of a Pie Chart Graph Programatically-OA Framework

    Hi All,
    I have created a OF Page with the following Regions one under the other:
    1. PageLayoutRN
    2. HideShowHdr1 - Hide/Show Header
    3. TblLayout1RN - Table Layout
    4. Tbl1RowLayout1RN - Table Row Layout
    5. Row1CellFormat1RN - Cell Format
    6. Row2CellFormat2RN - Cell Format
    Basically I have a page with a hide/show header, which contains a table with 1 Row and 2 Columns, where 1 column contains an advanced table and the 2nd contains a Graph (Pie Chart).
    In the Row2CellFormat2RN, I have a GraphTable Region under the name PieChart1RN, which contains a graph called graph1 of style Pie.
    As per the OA Framework Development Guide (744832.1) for R12.1.1 on Graphs (Page 255), a Code snippet is provided for setting the Destination URI of the graph programatically.
    This code is as follows:
    if(webBean.getUINodeName().equals("region3"))
       OAGraphTableBean g2 =(OAGraphTableBean)webBean;
       g2.setDisplayDataMarkers(0, true);
       g2.setDrillDownUrl(0, "OA.jsp?page=/oracle/apps/ak/pages/FWK_TEST_AGR_SUM&akRegionApplicationId=601&sal={@Salary}");
       //Test line graph with data markers and drill-down 
       g2.setDisplayToolTip(1,true);
       g2.setDisplayDataMarkers(1, true);
       g2.setDrillDownUrl(1,"http://www.oracle.com");
    } I have tried using this code to set the Destination URI for my graph.
    However, it does not work.
    I do not understand which region name to specify as when I displayed the value contained in webBean.getUINodeName(), it refers to PageLayoutRN.
    In short, I am not being able to set the Destination URI. Even though I have ensured the Bubble Text Property is set to True.
    Can someone pls. help me into adapting this code to my context?
    Thks
    Ravi

    Hi Kumar,
    I have already done it.
    However, it still does not work.
    The controller code looks like it does not recognise my graph region at all.
    Thks
    Ravi

  • How to set default value in matrix column

    Hi all,
    Does any one know how to set a default value in matrix column ?. I just want , when an event right click and add row. so i set a default value in a column field for example 'Test'. FYI the matrix is in the UDO.
    so my code will be like this
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim oColumn As SAPbouiCOM.EditTextColumn
                            Dim matrix As SAPbouiCOM.Matrix
                            matrix = oForm.Items.Item("Matrix").Specific
                           oColumn = mat.Columns.Item("Code").specific
                            oColumn.Value = "Test"
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
                    End If
    I have run it and when i right click and add row it still can not set the default value in one of the matrx column.
    does any one know how to solve it. thanks in advance

    Hi Bodhi
    Sandeep is right you can set value using SetValue() function
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim matrix As SAPbouiCOM.Matrix= oForm.Items.Item("Matrix").Specific
                            oForm.DataSources.DBDataSources.Item("UDT").Clear()
                            matrix .AddRow()
                            matrix .FlushToDataSource()
                            With form.DataSources.DBDataSources.Item("UDT") 
                                    .SetValue("UDF", matrix .RowCount - 1, "Test")
                            End With
                            matrix .LoadFromDataSource()
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
    End If

  • How to set when press Tab in column matrix, then it will show a list

    Hi
    I want to my form exactly as Sales order, so when I press Tab in item No (on sales order) column it will show list of item
    So I want to create my own form with matrix, and in the first column I want to set Tab event, so when I press Tab in that column it will shown list of something from database.
    how to get an event Tab in column matrix ??
    and what object in the list of item form (on sales order) ?? matrix or grid or something else ??
    Thanks

    Hi,
    Linking a ChooseFromList to the matrix column should give you what you want. Samples of using the ChooseFromList can be found in the SDK HelpCenter and here in the SDN forum. For example:
    choosefromlist in the fields of a matrix
    Kind Regards,
    Owen
    P.S. Please note, you have posted this question in the general SAP Business One forum. Your question is more about development so I would recommend you post in the SAP Business One SDK forum rather than here.

  • How to set different renderers to same column

    I am trying to set different renderer to same column.
    table.getColumn("columnname").setCellRenderer(
                   FirstCellRenderer);
    table.getColumn("columnname").setCellRenderer(SecondCellRenderer);
    I want both to work at the same time.
    It is taking the second renderer but not first.
    Can anyone please help me, how can i achive it.

    In my situation i need first renderer for all the columns in the table.
    Second renderer only for one column.(which shows thw column value as tooltip)
    Can you please tell me how can i do it.
    when i tried to consolidate in one renderer , it is showing me the same value to all the columns.

  • Help on how to set value on LinkButton type column

    Hello,
    Can I programmatically set a value on Item No. in matrix on Sales Quotation which is of type SAPbouiCOM.LinkedButton?
    This code helped me set values to an edittext type column
    Dim et As SAPbouiCOM.EditText = oMatrix.Columns.Item(matrixColumnID).Cells.Item(rowNumber).Specific
    et.Value = value
    Dim et As SAPbouiCOM.LinkedButton = oMatrix.Columns.Item(matrixColumnID).Cells.Item(rowNumber).Specific
    How can set value for the Item No.?
    Thanks and Regards,
    Sheetal

    Just treat the Item No. column as an EditText for purposes of setting its value.
        Dim sboEdit As SAPbouiCOM.EditText
        Set sboEdit = sboMatrix.Columns("1").Cells(lngRow).Specific
        sboEdit.Value = "XXXXXX"
    John.

  • How to set  Oracle username to a column .

    Hi Everyone,
    i have a table with some columns for example: ROW_CREATED_BY,ROW_CHANGED_BY we have to set Oracle username in trigger
    i.e., i have a trigger
    create or replace
    TRIGGER "EMP_TRG" BEFORE INSERT OR UPDATE ON EMPLOYEE FOR EACH ROW
    BEGIN
    If inserting then
    if :new.ROW_CREATED_BY is NULL then
    :new.ROW_CREATED_BY := *?;*
    end if;
    END;
    we can make use of V$SESSION.USERNAME, how to set this in trigger
    can we write   :new.ROW_CREATED_BY      := V$SESSION.USERNAME;
    since i didnt have permission to acess V$SESSION table or any other approch to set Oracle username to a column
    Please NeedHelpFul

    The USER-Function gives you the name of the currently logged in user.
    Are you looking for this?
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions207.htm#sthref2462
    you could directly use it in your trigger like this:
    create or replace
    TRIGGER "EMP_TRG" BEFORE INSERT OR UPDATE ON EMPLOYEE FOR EACH ROW
    BEGIN
    If inserting then
    if :new.ROW_CREATED_BY is NULL then
    :new.ROW_CREATED_BY := USER;
    end if;
    END;

  • How to Find Destination URI

    I have a table in a page ,in this table a column is there "Details" clicking on this it reders a diffrenet page where user can fill details and can return to the same table ,i have to render a custom page in place of this standard page ,but i m unable to find where the destination uri is metioned in this page where user clicks on "Details" ,i have FTPied the entire page and all its controllers ,in the page destination is given like destination="" ihave also lookes in to all the controllers after decompiling them ,but nothing is there ,a fire action is happening after clicking on "Details" ,but none of its controller is capturing this event ,can sombedy help me ,where else to look into to find these
    destination uri

    Include the decompiled seed controllers in the project and debug it.
    Step down the code line by line, Step into all methods in the flow.
    There must be setForwardURL() or forwardImmediately() defined somewhere in the flow.
    check if the seeded controller has inherited other controllers etc.
    There is no other way in OAF to redirect controls to other pages..
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to set destination filename at runtime

    Hello All ,
    I want to set the destination filename at runtime , so that it will include the run date and time in the generated file name .
    It should be like this , in the distribution xml file :
    &lt;destinations&gt;
    &lt;file id="MyFiles" name="v_report_file_name" format="pdf"&gt;
    &lt;include src="report"/&gt;
    &lt;/file&gt;
    &lt;/destinations&gt;
    and v_report_file_name will be replaced by the runtime file name.
    Any ideas anybody ?
    Regards

    Hi Navneet ,
    Thanks for for your input. I tried following solution provided by you . I got the following error :
    REP-34304: Expected name instead of &lt;.
    REP-0110: Unable to open file 'C:\....\LOCALS~1\Temp\xyz_distribution00202584.xml'.
    REP-34304: Distribution failed to complete, please review the distribution lists
    I tried creating a user parameter with a default initial value and using the same parameter in the distribution file . I also tried creating a formula column in the data model and referring to it in the distribution xml file .
    The distribtion xml file contents are as under :
    &lt;destinations&gt;
    &lt;!-- Generate file for printing --&gt;
    &lt;foreach&gt;
    &lt;file id="MyFiles" name="&&lt;p_param_name&gt;.pdf" instance="this"&gt;
    &lt;include src="mainSection"/&gt;
    &lt;include src="trailerSection"/&gt;
    &lt;/file&gt;
    &lt;/foreach&gt;
    &lt;/destinations&gt;
    Did I go wrong anywhere ?
    Regards
    Shripad

  • How to set color for a particular column in advance table?

    How can we set the color of a particular column in advance table based on some parameter feteched from vo query in process request?

    i have tried the same way as mentioned in the post but ,its giving error
    java.lang.ArrayIndexOutOfBoundsException: 0
    processRequest code
    OAAdvancedTableBean table =
    (OAAdvancedTableBean)webBean.findIndexedChildRecursive("TimEntAdvtbl");
    if (table != null)
    System.out.println("table");
    OAColumnGroupBean daily =
    (OAColumnGroupBean)table.findIndexedChildRecursive("DailyColGrp");
    if (daily != null)
    System.out.println("daily col");
    OAColumnGroupBean ColGrp6 =
    (OAColumnGroupBean)table.findIndexedChildRecursive("ColGrp6");
    if (ColGrp6 != null)
    System.out.println("ColGrp6");
    OAColumnBean SatCol =
    (OAColumnBean)webBean.findIndexedChildRecursive("SatCol");
    if (SatCol != null)
    System.out.println("col");
    OAMessageTextInputBean sat1 =
    (OAMessageTextInputBean)SatCol.findIndexedChildRecursive("sat");
    if (sat1 != null)
    System.out.println("sat1");
    OADataBoundValueViewObject csssat= new OADataBoundValueViewObject(sat1,"Color");
    sat1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, csssat);
    Error Page
    ## Detail 0 ##
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)
         at oracle.sql.NUMBER.toString(NUMBER.java:761)
         at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)
         at oracle.jbo.domain.Number.toString(Number.java:390)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.formatObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    Please help

  • PDF/X-3:2 (PDF 1.3): Destination differs from Output Intent; how to set Destination -

    Hello.
    In InDesign CS5 (7.0), I set up a document containing greyscale images (profile: Dot Gain 15%) and cmyk-images (profile: Euroscale Coated v2). The latter is also the working space, and it is also the Output Intent Profile Name set in the Export Adobe PDF Dialog under Output – PDF/X. The Colour Settings in the .indd set the Colour Management Policies to Preserve Embedded Profiles (and Colour Conversion is set to No).
    Now, when exporting this .indd to a .pdf (PDF/X-3:2 (PDF 1.3)), the Summary tells me that the Destination is ISO Uncoated Yellowish, and Acrobat (View – Navigation Panels – Standards) feels:
    Conformance:
    Standard: PDF/X-3:2002
    ISO Name: ISO 15930-3
    Status: verification succeeded
    Trapped:False
    OutputIntent
    Identifier: ISO Uncoated Yellowish
    Info: ISO Uncoated Yellowish
    —so what was Destination in the export settings now appears as Output Intent, meaning:  the Destination overrides the OutputIntent as set in the export settings.
    I have no idea where this ISO Uncoated Yellowish comes from. As far as I can see, nothing, neither in the placed content, nor in the document, has this profile set.
    In a second document, with the exact same settings as specified above and the only difference that it contains only greyscale images. In this case, Acrobat sees the Identifier as FOGRA1 (which is indeed the (greyed out, unchangeable) setting in the export Dialog's Output – PDF/X – Output Condition Identifiert—but that is the case in the first document, too), and the Info as Euroscale Coated v2. This seems correct, but why might "ISO Uncoated Yellowish" appear in the first case, and how would I get rid of it and set  the correct Destination?
    Thanks a lot.

    No, it isn't a colour space, but there's still grey profiles, specifying e.g. the dot gain.
    Links panel does list the gray profiles, but they're not used in anyway.
    If you assign different gray profiles in Photoshop the gray profile makes the conversion back to monitor RGB for preview. So here's the same image with 10% and 30% dot gain in Photoshop and the previews are very different even though the output values are the same:
    If I place the two images in ID and turn on overprint the previews are identical (the output values are also identical)—via the document CMYK profile, which is EuroScale here. The preview would be the same if you pasted the grayscale into the black channel of a CMYK document:
    If I export the ID doc as PDF/X-4 which includes all profiles, the grayscales show as DeviceGray (no profile):

  • How to set the width of a Column

    Hi friends
    I have problem with setting up the Width for each column. Let us i want to set different column width for each Column.
    That is for first column the Width may be Different and the other column the width may be different.
    So please help me out on this Issue
    Cheers
    Jofin

    How to set the width of a ColumnWhat component are you talking about? Are you talking about the width of a column in a JTextPane?
    Have you read the API for the component in question?
    Have you followed the link titled "How to Use...." to the Swing tutorial?
    Learn to read the API and ask a proper question with all the relevant information.

Maybe you are looking for

  • Can different icloud accounts be linked to the same apple id

    I'm not exactly sure how to word this, but we have one apple ID for iTunes - I have an iPod, along with my son and husband.  We share the library.  Well, we all downloaded ios5 which includes the iCloud, and now my son is seeing my contacts and calen

  • Is MBP Fans always on?

    well, I have notice while the room is empty and quit that the MBP Fans working so I got curious I closed every application and Fans still working... I restarted the OS and no application is running, still Fans working at 1999-2000 rpm is that normal

  • Two copies of most files - fix?

    I'm new to Aperture and inadvertently imported two versions of the iPhoto files - causing almost all older photos to be double. I didn't notice this immediately, and managed to import additional new photos into both libraries. I currently have almost

  • Acrobat 7.0 - Lost "pages" docked on side as tab

    I need some assistance figuring out how to get my "pages" tab docked back on the left hand side of Adobe.  I used to be able to go to view, navigation tabs, and select pages but that would open a box.  This doesn't help me as when i open another docu

  • Dead in the Wa

    Hello, and thanks in advance for any help you can provide. No one answers the phone at the free support line--I have let it ring 200 times three different times. Here's where I am: Zen Micro Win XP Downloaded music from Napster. Got a pop-up that sai