How to use Endeca Url Optimization API

Hi All,
Iam working to implement Endeca Url Optimization API to a java project developed in RAD.
Any one please guide me to achieve the same.
Issue:
Iam calling parseRequest(String Querystring,String pathinfo,string encoder) method to get encoded N-vaue value
For the case of multiple filter selection, Iam passing pathinfo as “/cat_CL167288/_/N-1z139r3” where N-1z139r3 is the encoded N-value of previously selected filter.
UrlState baseUrlState=seoFormatter.parseRequest("catalogId=10020&storeId=50001&langId=1&N=1z139r3","/cat_CL167288/_/N-1z139r3","UTF-8");
We are getting an error which is thrown from SEOURL API jars. I have decompiled the jar and found that the exception is throwing while setting N Param value, but able to set other values without exception.
paramUrlState.setParam(“N”, “1z139r3”);
Here is the error message :
java.lang.IllegalStateException: UrlState doesn't contain valid navigation state: you must explicitly call UrlState.inform(ENEQueryResults) or UrlState.setNavState(...) before handling the navigation state of an UrlState
at com.endeca.soleng.urlformatter.UrlState.getNavStateUrlParam(Unknown Source)
Please help me
thanks,
RGL

Hi Roy,
> I found this line:
Within the docu or within your page?
Normally, when it's within the page, you don't have to add it to your iView. It has to be on the page.
There must be somethin else strange. Maybe an error in NW implementation, but I would think that's probably some minor mistake on your site.
Please minimize your example as far as you can: Use a JSPDynpage with nothing in it than the redirect to the JSP, within the JSP, do nothing in it than the things needed for the call of the pageSupport object, and a corresponding minimized portalapp.xml.
Post them here in the thread (using code marker).
And give additional info how the iView when you tested and still it didn't work has been isolated (URL/embedded). Also try to play with these settings by yourself.
Hope it helps
Detlev

Similar Messages

  • How to use one URL for several Oracle AS?

    Hi folks,
    how do I use one URL to access several application servers (i.e. for different applications).
    Example:
    We have one URL:
    www.test.com
    In our DMZ, wie have three application servers and one web cache:
    test1.intranet.com:7777
    test2.intranet.com:7777
    test3.intranet.com:7777
    webcache.intranet.com:8000
    One application server is no problem. In Web Cache, i just map site www.test.com:443 to AS test1.intranet.com:7777.
    But what is the correct setting, to access all three Oracle AS over one URL? I tried URL PATH Prefix. Then i am able to access all three Oracle AS, but the application server does not know the Path.
    Example for mapping:
    www.test.com:443/server2 -> test2.intranet.com:7777
    When I access www.test.com:443/server2, I get redirected to the correct AS (test2.intranet.com:7777), but the Oracle AS does not know the path /server2.
    How do I have to configure the Oracle AS?
    Thanks in advance and best regards.

    I setted up a proxy and at first glance,
    it works fine. The problem are internal links. Some links redirect to the
    machine name, which is of course not accessible from outside our dmz.
    My httpd.conf entries:
    ProxyPass /test1infra/ http://test1.intranet.com:7777/
    ProxyPassReverse /test1infra/ http://test1.intranet.com:7777/
    ProxyPass /test1mid/ http://test1.intranet.com:7778/
    ProxyPassReverse /test1mid/ http://test1.intranet.com:7778/
    When I now access (for example) www.test.com/test1infra/pls/orasso I get
    redirected to www.test.com/pls/orasso, which is another Oracle AS!
    How can I prevent my OracleAS doing this? It has to "know" that all its internal urls need a url path prefix.

  • How to use GO URL?

    Hi All,
    I have two Reports-
    Report1 - Dim A (A1,A2,A3) , Fact A (B1,B2,B3)
    Report2 - Dim C (C1,C2,C3) , Fact C (D1,D2,D3)
    Where A1,A2.. ,B1,B2.. ,C1,C2..,D1,D2.. are the attributes of dimensions and facts.
    While drilling from attribute B1 in report1, i want to pass parameter A1 to report2 and want to see only the records in report 2
    for which C1 = A1. The attributes A1 and C1 are having the same values.
    For Drilling from measure B1 , i can use GO URL. But in the report2 "Dim A.A1" is not present.In Report2 , i have "Dim C.C1".
    For GO URL, the parameter that is passed from one report should be present in second report.
    Thus , how can i implement this scenario? My target report has different attribute.
    Thanks, Ashish

    Hi Goran,
    I have the same requirement and implementing what you said
    As you said,I have given HTML for the dataformat and in the column fx i gave the following.
    case when project.SOURCE = 'BETA' then '' ||Sample.org_code || '' else Sampleorg_code end
    case when project.SOURCE = 'BETA' then '' ||Sample."PWA#_L" || '' else Sample."PWA#_L" end
    The first navigation is working fine,its giving me the data only for the selected org code(Org Code is numeric).But, the second navigation is giving all the results in the target report irrespective of the selected PWA#_L.PWA#_L is Alpha numeric
    Please let me know where i am going wrong.
    Thanks in Advance.

  • How to use the Public Java API

    Is it possible to use the Public Java API to write a custom transformation in Java and use this in OWB. i.e. Say I have a Dateofbirth field in my source database and an Agegroup field in the target database, and I write a transformation in Java to take the Dateofbirth as an input parameter to the method and calculate the Agegroup e.g. 25-30, and return it from this method which then populates the Agegroup field in the target database. If so, how do I go about this?

    Martin,
    In general, yes you could... but you do not need to. You could use the UI to implement this requirement. The public Java API is there for you to manipulate metadata. How you implement your system, is independent of that.
    The way you would go about the case you just mentioned... you would write the Java code, deploy it into the database, wrap it in a PL/SQL procedure or function, and call it from OWB.
    Would this be a good idea...? I think no. Unless you have very complicated calculations that can only be performed in Java, I strongly encourage you use the PL/SQL language. Reason being: transformation will be much faster, because there is no need to translate PL/SQL into Java and back again.
    Hope this helps,
    Mark.

  • How to use Go URL to Navigate from one report to another

    I have used Actionlink option to navigate from one report to another, It is nopt working on the dashboard because i used presentation variables in my first report and its throwing me an error below, I have to pass on id from one summary report to detail report, I have created Go URL, Do i need to use that URL in my summary report column formula ?
    Need some info ~ Thanks ~Srix
    An invalid object was accessed during evaluation.
    Error Details
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Expression: report.variables['TimePeriod']

    Hi ,
    Please refer the below threads.
    How to Navigate from one report to another report based on column values
    Navigating from one report to another report
    Re: Navigate from Report 1 to Report 2 using Go URL
    Award points it is useful.
    Thanks
    satya

  • Anyone know how to use Exchange Web Service API in PB Classic 12.5

    Trying to figure out how to use the api/dll's of the EWS.  I am new to web services in pb so I seem to be going nowhere fast.  If you have used it I would appreciate some guidance or better yet code/instruction on how to use/access it/setup.  I need to be able to get to exchange (in this case using an office365 test account) and read emails/calendar info etc..
    Thanks for any help..
    Dave V.

    Hi Matt,
    I find an article about Overlay a SharePoint calendar with a calendar from Exchange or SharePoint, for your reference:
    https://support.office.microsoft.com/en-us/article/Overlay-a-SharePoint-calendar-with-a-calendar-from-Exchange-or-SharePoint-4caebe59-3994-4a94-9322-b31abb8a5e9a?CorrelationId=0cba4045-24cb-4cb2-b6d6-51e4015df3a0&ui=en-US&rs=en-US&ad=US
    However, if you want to use SQL Queries and HTML, please contact to Exchange Development Team to get more professional advice.
    Best Regards,
    Allen Wang

  • How to use the java native api

    i am new to the java native api, can anyone tell me how to use it in order for me to use the c++ file in the java file?please explain it if possible, thanks

    Try this out to learn the basics :
    http://java.sun.com/docs/books/tutorial/native1.1/index.html
    You can't go wrong from there.

  • How to use Java Data Mining API(JDM)

    hello,
    i have downloaded the JDM API(dmapi-1_0_1-fr-spec.zip) from JSR 000073. In the Readme.txt file, I have read that the components required to use the API are jdm.jar and jdmtck.jar.
    But these two files didnot come with the above zip file. The zip file contained other zip files namely RI.zip, TCK.zip, Spec.zip, etc.
    If somebody knows how to use this API, please please let me know
    My personal email ID: [email protected]

    Even I am not able to understand how to use it. How useful is the JDM API to make a new algorithm?
    Thank you,
    Arunraj

  • How tu use or install package API Toolkit BPC

    Dear All,,,
    I have problem with performance SAP BPC, then i read SAP Note from SAP Support Portal. In that document, there are download API toolkit. I don't understand how to use this file (API Toolkit)...??
    Any Idea..??
    Thanks...
    Dharma Setiadi

    The reflow plug-in is installed by default when you install Reader. In order for it to work optimally, the document should be correctly tagged, which is something you can do in Acrobat. To activate Reflow in Reader X, select: View > Zoom > Reflow

  • How to use Cost Based Optimizer

    Hi,
    I'm looking for a documentation about CBO, I found some information through google and here but anyone knows where I can found more informaton about CBO, how to use, how i'ts increase the performance and more?
    Thank You

    See Oracle® Database Performance Tuning Guide

  • How to use duplicate() to optimize in M3G?

    The first version of my 3D world contains about 7 meshes. They all have the same form and geometry, so I figured I could use duplicate() to improve the performance. I mean creating only one mesh and then use duplicate() on that first mesh to create the other ones. The 7 meshes have different textures, so they need to have their own appearances.
    I found that it is not possible to use duplicate() to optimize in my case , since the meshes have their own appearance object. When I change the appearance of one mesh, the appearance of the duplicated meshes get changed too. Is there any way to solve this problem?

    Hi Sandy ,
    You can approach this way ,
    Create a page with different EO , VO
    Step 1 : If the records are displayed in table region then you can add one more column with the item style as " Link " .
    ( your desintaion URI should be OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId} )
    Step 2 : You can get the same record in the next screen by executing the query by passing the parameter in where clause .
    In processRequest , order of code execution should be
    a ) Create a blank row for VO
    b) generate new Sequence value and execute the query by passing the parameter in where clause
    In processFormRequest ()
    Make changes if needed and do Transaction.commit() ;
    Though it looks like an updating record , but in database you will find an additional record being created .
    Try and do let me know if its not clear
    Keerthi

  • How to use DBFS PL/SQL API

    Hi guys,
    I'm re-posting this question to see if anyone can help me out. I am trying to use the DBFS PL/SQL API to manipulate files stored in DBFS.
    Environment details:
    Windows 7 or OEL 5.5 (I have tried both platforms)
    Database: Oracle DB EE 11.2.0.2
    IDE: SQLDeveloper on Windows 7
    I have two users, DBFS_USER who owns the DBFS store and MYUSER who connects to the store to manipulate files using the DBFS PL/SQL API.
    Creation scripts:
    connect / as sysdba;
    CREATE TABLESPACE dbfs_ts DATAFILE 'D:\oracle\oradata\orcl\dbfs01.dbf' SIZE 1M AUTOEXTEND ON NEXT 1M;
    -- create users
    create user dbfs_user identified by dbfs_user default tablespace dbfs_ts quota unlimited on dbfs_ts;
    create myuser identified by myuser;
    -- grant role
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO dbfs_user;
    GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;
    -- create file system (as DBFS_USER)
    connect dbfs_user/dbfs_user;
    exec dbms_dbfs_sfs.createFilesystem('STAGING_AREA_FS');
    exec dbms_dbfs_content.registerStore('STAGING_AREA_FS', 'posix', 'DBMS_DBFS_SFS');
    exec dbms_dbfs_content.mountStore('STAGING_AREA_FS', 'staging_area');
    commit;
    -- export store STAGING_AREA_FS (as DBFS_USER)
    exec dbms_dbfs_sfs.exportFilesystem('STAGING_AREA_FS');
    -- check table names (as MYUSER)
    connect myuser/myuser;
    -- should see nothing (no mounts)
    select * from table(dbms_dbfs_content.listMounts);
    -- note down the table_name
    select * from table(dbms_dbfs_sfs.listTables);
    -- mount as MYUSER (example with table_name SFS$_FST_32)
    exec dbms_dbfs_sfs.registerFilesystem('MYUSER_FS', 'DBFS_USER', 'SFS$_FST_32');
    exec dbms_dbfs_content.registerStore('MYUSER_FS', 'posix', 'DBMS_DBFS_SFS');
    exec dbms_dbfs_content.mountStore('MYUSER_FS', 'staging_area');
    commit;
    -- check mount (as MYUSER)
    select * from table(dbms_dbfs_content.listMounts);
    select pathname from dbfs_content;
    CREATE STORED PROC (as MYUSER)
    CREATE OR REPLACE PACKAGE MYUSER_PKG IS
    Function CreateDirectory
    (P_File_Path          IN VARCHAR2,
    P_ErrMsg          OUT VARCHAR2)
    return Number;
    END MYUSER_PKG ;
    CREATE OR REPLACE PACKAGE BODY MYUSER_PKG IS
    Function CreateDirectory
    (P_File_Path          IN VARCHAR2,
    P_ErrMsg          OUT VARCHAR2)
    return Number
    IS
    l_Return NUMBER;
    l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
    BEGIN
    l_Return := 0;
    DBMS_DBFS_CONTENT.createDirectory (
    path     => P_File_Path,
    properties     => l_props);
    RETURN l_Return;
    EXCEPTION
    WHEN OTHERS THEN
    l_Return := NVL(SQLCODE, -1);
    P_ErrMsg := SQLERRM;
    RETURN l_Return;
    END CreateDirectory;
    END MYUSER_PKG ;
    When compiling the package, I am getting this error:
    Error(9,11): PLS-00201: identifier 'DBMS_DBFS_CONTENT' must be declared
    Error(9,11): PL/SQL: Item ignored
    Error(13,3): PL/SQL: Statement ignored
    Error(15,19): PLS-00320: the declaration of the type of this expression is incomplete or malformed
    How do I solve the problem in the error message? I'm not a DB expert. I used this reference documentation: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294/adlob_client.htm#CIHDEJAA
    Thanks in advance.
    Cappa

    You need to grant directly the privileges from DBFS_ROLE because roles are not enabled in stored PL/SQL:
    SQL> select* from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    SQL> show user
    USER is "SYS"
    SQL>
    SQL> create user myuser identified by myuser;
    User created.
    SQL> GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;
    Grant succeeded.
    SQL>
    SQL> begin
      2  for x in (select privilege, table_name
      3           from dba_tab_privs
      4           where grantee='DBFS_ROLE')
      5  loop
      6   execute immediate 'grant ' || x.privilege || ' on ' || x.table_name
      7   || ' to myuser ';
      8  end loop;
      9  end;
    10  /
    begin
    ERROR at line 1:
    ORA-22812: cannot reference nested table column's storage table
    ORA-06512: at line 6
    SQL>
    SQL> connect myuser/myuser
    Connected.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE MYUSER_PKG IS
      2  Function CreateDirectory
      3  (P_File_Path IN VARCHAR2,
      4  P_ErrMsg OUT VARCHAR2)
      5  return Number;
      6  END MYUSER_PKG ;
      7  /
    Package created.
    SQL> show errors
    No errors.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY MYUSER_PKG  IS
      2  Function CreateDirectory
      3  (P_File_Path IN VARCHAR2,
      4  P_ErrMsg OUT VARCHAR2)
      5  return Number
      6  IS
      7  l_Return NUMBER;
      8  l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
      9  BEGIN
    10  l_Return := 0;
    11  DBMS_DBFS_CONTENT.createDirectory (
    12  path => P_File_Path,
    13  properties => l_props);
    14  RETURN l_Return;
    15  EXCEPTION
    16  WHEN OTHERS THEN
    17  l_Return := NVL(SQLCODE, -1);
    18  P_ErrMsg := SQLERRM;
    19  RETURN l_Return;
    20  END CreateDirectory;
    21  END MYUSER_PKG ;
    22  /
    Package body created.
    SQL> show errors
    No errors.You would need to check why some GRANT statement fails if you have other issue with other piece of code.

  • URL IView - how to use local URL

    Hi all,
    in my CE 7.11 system I need to create a URL iview which references a local url such as:
    http://CEHOST:CEPORT/<myApplication>.html
    I must reference it as a local url, cannot use copy/paste from PCD since it's not a WDJ or portlet.
    My question is:
    how do I configure an url iview to reference a local url?
    E.g. should I reference the whole URL or just the <myApplication>.html part?
    How do I configure authentication?
    Thanks, regards
    Vincenzo

    You can try using com.sap.portal.appintegrator.sap.Generic component ?
    Use URL Template property with value : <Request.Protocol>://  <Request.ServerPort>/<your application name>.html
    or
    just give /<your application name>.html
    Regards,
    Mahesh

  • Smartforms - how to use page URL like output option ?

    Hello,
    in the smartofms output options, there's the possibility to set
    BSP Page/URL: ......
    and Output format:  XSF output + HTML.
    My requisite is to send a form in XML via web service, can I use it ? How is run ?
    tks.

    Hello
    Use the function module "FB_CONVERT_FORM_TO_XML" to convert the smartform to XML format table.
    The function module has been used in the method "GET_SMART_FORM_AS_XML" of the class .
    THanks ,
    M.Naveen Kumar

  • Urgent! How to use push_pred to optimize query with UNION in 10g?

    Hi,
    We are facing slow query performance in 10g database.
    Appreciate if anyone could advise on how to optimize the performance by using push pred?
    Or is there any other ways.
    Thanks in advance.
    Cheers,
    SC

    dont post duplicate post

Maybe you are looking for

  • Free video converter?

    Hey I am looking for a free video converter for my mac so I can convert DVD, AVI, MPEG, MPG, QT to iPod Touch format, I believe it is MP4... Can anyone help me? Best regards Jesper

  • I can't send sms to people not in the address book!

    Hi, I've just bought an iPhone 5s and noticed today that I can't send sms (or imessage) to people that isn't in my address book! If I put the contact in the address book there's no longer a problem, and if I take it away again - it's a problem again.

  • Convert/Cast Single to double inaccurate.

    Whilst I have read some background on floating opint numbers not being able to accurately store numbers such as 0.1, I am not clear why converting from single to double is so inaccurate. Converting a single 0.1 to a double 0.1 yeilds 0.10000000149011

  • Cutting to new layers

    I am selecting items and want to move, scale, and change the color of the items. 1. Is the best way to do this to cut them to new layers after selecting them? 2. When would you want to copy them to a new layer while leaving the original on the image?

  • Picture has black rectangular border when it should be just selection

    I have cut a selection out of a picture in photoshop but selecting it with the wand tool, then copying to a new layer, and deleting the background, so there should be no background.  However, when I put the photo into an InDesign document it shows wi