Dynamic source value for uix frame

Hi all,
I have UIX page with two frames, left is for navigation (includes tree) and right one is for content.
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:data="http://xmlns.oracle.com/uix/ui"
      xmlns:http="http://www.w3.org/TR/REC-html40">
  <content>
    <frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
      <left>
        <frame source="Tree.uix" name="tree" width="30%"/>
      </left>
      <center>
        <frame name="contents" data:source="${sessionScope.startPage}"/>
      </center>
    </frameBorderLayout>
  </content>
</page>I'm trying to use ${sessionScope.startPage} to get source value, but it doesn't work. I am sure that there's such a parameter in http session and I can't understand why this happens.
Could anyone please say if it's possible to use dynamic source for frame?
Did anyone meet such problems?
Is there any other way to set the source value?
thanx in advance
Renat

Hi again,
So far I've found such a solution:
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:http="http://www.w3.org/TR/REC-html40">
<content>
<frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
<top>
<frame source="Top.uix" name="top" height="10%"/>
</top>
<left>
<frame source="Tree.uix" name="tree" width="30%"/>
</left>
<center>
<frame name="contents" source="startPage.uix"/>
</center>
<bottom>
<frame source="Bottom.uix" name="bottom" height="10%"/>
</bottom>
</frameBorderLayout>
</content>
</page>where startPage.uix is:
<?xml version="1.0" encoding="windows-1251"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
</provider>
<contents>
<document>
<metaContainer>
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<pageLayout title="">
<contents>
</contents>
<pageHeader>
<globalHeader/>
</pageHeader>
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<event name="*">
<method class="myPack.PageUtils.RedirectAction" method="redirect2anotherPage"/>
</event>
</handlers>
</page>and redirect2anotherPage is:
public static EventResult redirect2anotherPage (BajaContext context, Page page,
PageEvent event) throws Throwable {
HttpSession hs = context.getServletRequest().getSession();
Page otherPage = new Page((String) hs.getAttribute("startPage"));
return new EventResult(RedirectUtils.getRedirectPage(context,
otherPage));
}This seems to be working, but I am not sure if this is the correct solution (lonely solution).
Is there a way to use only UIX EL syntax?
Any ideas about this?
Renat

Similar Messages

  • Data source value for data source reportData was null

    hi i'm using struts 2 and jasperreports my problem is
    it generate a pdf file with labels but no data in it..
    and when i try to look at the logs of my sun application server
    it says Data source value for datasource reportData was null.
    reportData is an ArrayList of Personnel object.
    here is my code..
    public class EIS_HR_004_JASPER extends eisSupport {
        private String reportId;
        private String dateStart = null;
        private String dateEnd = null;
        private String pdfFile;
        private final static String _REPORT_FOLDER = "EIS_HR_003";
        private Report thisReport;
        private String dateRange;
        private ArrayList<Personnel> reportData;
        public String execute(ActionMapping mapping,ActionForm form,
                HttpServletRequest request, HttpServletResponse response)
                throws Exception {       
            ReportBean reportBean = new ReportBean();
            setThisReport(reportBean.getReport(getReportId()));         
            reportData=new ArrayList<Personnel>();
            Personnel p1=new Personnel();
            p1.setSurname("Dela Cruz");
            p1.setFirstname("Juan");
            p1.setExamcode("CSC111");
            p1.setExamdate("January 1,2003");
            Personnel p2=new Personnel();
            p2.setSurname("Cruz");
            p2.setFirstname("Miguel");
            p2.setExamcode("CSC222");
            p2.setExamdate("December 2,2003");
            reportData.add(p1);
            reportData.add(p2);
         try {
              JasperCompileManager.compileReportToFile(
                        "apps/reports/templates/hr004.jrxml",
                        "apps/reports/templates/hr004.jasper");
         } catch (Exception e) {
              e.printStackTrace();
              return ERROR;
             return SUCCESS;
        public ArrayList<Personnel> getReportData() {
           // setReportData();
            return reportData;
        here is part of my struts.xml
    <action name="EIS-HR-004_JASPER" class="eis.report.EIS_HR_004_JASPER">
                <result name="error">/apps/reports/ReportNotFound.jsp</result>
                <result name="success" type="jasper">
                    <param name="location">apps/reports/templates/hr004.jasper</param>
                    <param name="dataSource">reportData</param>
                    <param name="format">PDF</param>
                </result>
            </action> i dont know why it doesnt retrieved the data from the ArrayList?
    please help me..Thanks in advance.

    Hi,
    Looking at the code, it seems you are compiling a JRXML and that is all.
    Instead, you should fill it with data and then export the result to PDF.
    No wonder you don't see any result.
    You need to learn more about how JasperReports work. For a start, I can tell you that you could compile JRXML files as part of the application build process using an Ant task, and not dynamically, like you did. But no matter how you compile the report template, you actually need to fill it with data, using the JasperFillManager and then export it to PDF using the JasperExportManager.
    You can see all this in our samples in the /demo/samples folder that is part of our project distribution package. There is even a sample Web application in the /demo/samples/webapp folder.
    I hope this helps.
    Teodor

  • Set anchor yoffset value for inline frame

    Hi everyone!,
    In my document having the one story and it contains the two inline frames.
    then set the anchor yoffset value for inline frame to -5 mm.
    my coding is given by below, what's wrong in my code.
    Please tell me.
    tell application "Adobe InDesign CC 2014"
        set ofset to -5
        tell active document
               tell story 1
            set anchor yoffset of anchored object settings of parent of item 1 of inline frame 1 to ofset
               end tell
          end tell
    end tell

    Hi
    This snippet works ...
    tell application "Adobe InDesign CC 2014"
        set ofset to -5
        tell active document
            tell story 1
                tell text frame 1
                    set anchor yoffset of anchored object settings to ofset
                end tell
            end tell
        end tell
    end tell

  • Hex character value for InDesign frame break

    I have been able to identify that the hex value for a carriage return in InDesign is "000D". Is there a specific hex value for InDesign's frame break character?

    Through internal magic. There are more codes that are "magic" inside an InDesign document. \u0016 for example, is the code for a table, and you can search for it too. But you cannot insert a table by putting "\x16" in the Replace field. Same with anchored object -- \uFFFC -- and various other magic markers.
    I promised "a tip or two" but the only way to bring a frame break in from beyond ID itself is through a Search-and-Replace in ID after you loaded your text. Insert some unique code in your software in place of these frame breaks (something simple like "{FrameBreak}" ought to do it; unless your text may already contain this particular sequence, then you have to make up something on your own), and after placing the text into ID, search for this text and replace it with the code "^R", which is "Frame Break" according to the Find/Replace Text drop down menu.

  • Dynamic Source NAT for multiple POOLS

    I am setting up Dynamic Source NAT with a few Pools and Access-list to translate according to the Access-list. However when configure some ACL don't work anything. And the ACL don't "match" any. I know that the correct way would be to apply the ACL about interface with "ip access-group <ACL-name> in/out" however in this case would be impossible to apply more one ACL with ip access-group command.
    FurthermoreI have tested to creating a route-map named TEST with all ACLs; but cannot to create all "ip nat inside source route-map... " with the same route-map name. Also checked the cisco example: http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13739-nat-routemap.html...
    Attach the all configurations.
    I  need your help, 
    Thanks in advance!

    Oh my God!! Already works fine! I hadn't thought that "log"  would be a painful 
    Thanks John Marshall! 
    Attach my troubleshooting:
    INET#show ip nat translations
    Pro Inside global      Inside local       Outside local      Outside global
    tcp 195.77.205.33:49529 10.55.0.1:49529   4.2.2.2:22         4.2.2.2:22
    tcp 200.200.200.1:62978 10.55.1.1:62978   4.2.2.2:4343       4.2.2.2:4343
    tcp 195.77.205.20:13493 181.70.12.18:13493 195.47.200.32:443 195.47.200.32:443
    Furthermore we can to check the "rotary option also works!"
    "INET#show ip nat translations
    Pro Inside global      Inside local       Outside local      Outside global
    tcp 195.77.205.33:57238 10.55.0.1:57238   4.2.2.2:22         4.2.2.2:22
    tcp 195.77.205.33:16393 10.55.1.1:16393   4.2.2.2:22         4.2.2.2:22"
    Thanks again!

  • Dynamically loading values for jump menu

    Hii all,
    I'm using struts for my web application.
    I have two jump menus in one of my jsp page. The collections need to fill two menus have been loaded to the page.
    I need to fill the second menu according to the id of selection of first menu. i was able to load values for the first menu.
    can anybody tell me how can I pass the selected value of first menu to second menu using javascript or struts?
    Thanks

    What you can do is generate javascript that looks likeif (selectedID == 1) {
        return ['option a', 'option b'];
    } else if (selectedID == 2) {
        return ['option 'c', 'option d'];
    }and use that from a different function (which gets invoked if your first level menu changes). The generation would be done with some loop construct (c:if or logic:iterate for example).

  • Dynamically selecting values for filter in power pivot

    Hi,
    I am creating a power pivot report. I want the values of its filters to be set dynamically based on certain critreria. For Example, if some one changes the Iteration Path then the range of dates should change automatically to Iteration start date -
    Itearation End Date.
    Is there any way to set filter values based on some calculation.
    Any help in this regard will be highly appreciated.
    Thanks,
    Bhawna.
    Bhawna Aggarwal

    Check out the Event-In-Progress pattern as described here:
    http://cwebbbi.wordpress.com/2013/06/13/a-new-events-in-progress-dax-pattern/
    basically you need to create a separate measure which to do the specific filtering for you
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Is there a way to dynamically calculate values for the IN operator?

    I am looking to see if there is a way to dynamically calculate the criteria to include inside an IN operator in the WHERE clause. For example when I try to run the following I get an Oracle error message 'OR!-01722: invalid number'. The script below is just an example to help illistrate the problem, I do not want to hardcode the values assigned to v_test directly within the IN operator becasue the values in v_test will change from user to user.
    DECLARE
    v_test VARCHAR2(10) := '1,15,25,55';
    v_tmp VARCHAR2(50) := NULL;
    BEGIN
    SELECT d.metric_title INTO v_tmp FROM tbl_health_metric_definition d
    WHERE d.metric_status = 'Active' AND d.metric_id IN (v_test);
    END;

    Hi Jason,
    When ever you use IN operator your values should be either seperated by a comma. If the column is of type number then your values should not enclosed in single quotes.
    Eg: Wrong - '1,2,3,4,5'
    Correct - 1,2,3,4,5
    If your column is of type varchar then your values should be seperated by a comma and each value should be enclosed in single quotes.
    Eg : Wrong - '1,2,3,4,5'
    Correct - '1','2','3','4','5'
    Correct - 'sam','boy','girl'
    So correct you query so that the values in the IN operator are with out single quotes.
    DONOT USE IN OPERATOR IN PL/SQL BLOCK WITH OUT A CURSOR._
    If you use IN Operator and fire a query with out a cursor, it throws an error multiple rows returned. If at all you want to use in operator then use cursor.
    Regards,
    Rajesh
    Edited by: Rajesh Gudipati on Jun 23, 2009 9:49 PM

  • Dynamically find values for M_EINK_FRG for FRGCO

    I would like to dynamically fill the release code value in the authorization object M_EINK_FRG based on the user entering ME54N.
    Can this be done?
    So instead of putting 06 as a value in this object I'd like to put a field name that would be filled when this authorization check is made.

    What you can do is generate javascript that looks likeif (selectedID == 1) {
        return ['option a', 'option b'];
    } else if (selectedID == 2) {
        return ['option 'c', 'option d'];
    }and use that from a different function (which gets invoked if your first level menu changes). The generation would be done with some loop construct (c:if or logic:iterate for example).

  • Dynamic F4 values for standard field EAN11 in VA01

    Dear Experts,
    I have a requirement to enable  VBAP-EAN11  field and providing f4 help in Standard transaction VA01, Item detail.
    I have enabled the field using the exit in MV45AFZZ include, now i need to provide f4 values. The values has to be the additional EANS selected at Material Master. I have selected the values from MEAN table into a internal table.
    Now the F4 should provide the values in internal table.  I need to get this f4 help using the exit in MV45AFZZ include. Is there any way of providing the f4 help dynamically based on internal table values.
    The function modules 'F4IF_INT_TABLE_VALUE_REQUEST' etc will not work in this scenario.
    Kindly suggest me.
    Cheers,
    Pavan

    If you are on ECC 6.0, try enhancement-point RV_HELP_05.
    Manoj

  • Dynamic Date Value for Date Range Parameter - Scheduling in BI

    Hi,
    I am New to BO Enterprise XI R3. I want to schedule the Crystal report which takes Date Range as parameter. Is any option available to calculate From Date automatically based on Current Date based on the range required?
    Currently, Parameter option accepts parameters and enterprise process the report for configured parameters. In this case, report always prints only for configured date range eventhough report generated after one month. I am expecting report has to print data for date range (eg. 1 weeks, 4 days, or any range) based on system current date.
    Thanks in Advance,
    Venkateswaran.P

    I'm am in the same situation.  I need to be able to have the date parameter dynamically change based on the current day's date when I schedule a report.  However, because this parameter comes from a Stored Procedure from the database, it cannot be modified in the Report Designer (as far as I know).  I've tried to set a default for it to use "currentdate" but it doesn't seem to take.  Anyone know if this can be accomplished in the scheduler?
    Thanks
    -Tom

  • How to define source value for filtered recordset (ASP)

    Hi,
    I'm using ASP & CS4. I have a search page which upon submission sends form parameters to a results page. The results page matches the search parameters to a recordset and returns the appropriate record/s.
    How can I take one of the values from the returned filtered recordset (which wasn't one of the original variables/parameters), and use it as a value to filter another recordset from another table? Do I have to create a parameter from that value, or can it be done in a SQL statement?
    Many thanks

    How many results are returned from the first recordset? Where is the second recordset to be displayed?
    If the first RS returns a single row and the second RS is displayed on the same page, you don't need to create anything. Just use the value of the column you want in the SQL statement. If you need to pass the value to another page, you can either set a session variable or pass the value in the querystring.

  • Dynamic Sources for a field in Oracle Reports

    Hi there,
    I am sure someone might have encountered this problem.
    I have six Queries in Data Model. Based on certain parameter value, I need to change the source field setting for each field in the report
    output.
    e.g in Report LayOut Model, I have a field F_1. The source for this field in
    the Property pallette is COL1 which is coming from Query1.
    I need to assign a new source based on parameter value for field F_1 to
    COL2 from Query2 or COL3 from Query3 or COL4 from Query4, COL5 from Query5, COL6 from Query6 in the Before Report Trigger. Is there any way to achieve this using srw or any other PL/SQL code?
    This way I can save a lot of devlopment time and use a single physical layout for six different reports and avoid the hassles of creating frames,
    repeating frame and formatting.
    Any help greatly appreciated.
    Let me know if something is not clear in the email. I will provide
    additional information

    Ashok,
    Looks like you've landed in the wrong Forum - this one is for Oracle HTML DB.
    Thanks,
    - Scott -

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

Maybe you are looking for