How to render direction on elocation Map in my OAF page?

hi,
I have the coordinates of start and destination points in my OAF page. How do I render the directions like what I see in http://elocation.oracle.com/elocation/directions.jsp.
Is there a service elocation provides where I can pass the values and expect to render the elocation page on the region of my page. Like calling the elocation service and render it on the region of my page, where I can also zoom in/ zoom out to see the directions in details.
If not, can you please suggest any documents whihc has the APIs I need to call to implement direction on elocation map which I can fit into my page.
Thank you,
Prashanth
Edited by: Prashanth Pillai on Oct 23, 2009 1:49 AM

You need to send an XML routing request to the elocation server, extract the route geometry from the response, and display the route geometry as an MVFOI object on the map.

Similar Messages

  • How to render direction (route) on Elocation Map?

    Hi,
    I have to build a OAF page where I have the latitude and longitude for source and destination points and when I submit a request from OAF page the Elocation Map should render the driving directions and route on the Map. I have found the following request to Spatial
    <?xml version="1.0" standalone="yes"?>
    <route_request id="8"
    route_preference="shortest"
    road_preference="highway"
    return_driving_directions="true"
    distance_unit="mile"
    time_unit="minute"
    return_route_geometry="true">
    <start_location>
    <input_location id="1">
    <input_address>
    <us_form1 street="1 Oracle Drive" lastline="Nashua, NH" />
    </input_address>
    </input_location>
    </start_location>
    <end_location>
    <input_location id="2">
    <input_address>
    <us_form1 street="77 Massachusetts Ave" lastline="cambridge, ma" />
    </input_address>
    </input_location>
    </end_location>
    </route_request>
    How do I send the same request through my OAF page? Are there APis exposed and what the process?
    Thank you,
    Prashanth

    Probably best to post this on the [FMW MapViewer forum|http://forums.oracle.com/forums/forum.jspa?forumID=727].

  • How do I raise a Business Event from a OAF page?

    Hello,
    I am developing a custom system using the OAF and need to raise a custom Business Event, which in turn will have a subscription to launch a workflow process.
    How do I raise a Business Event from a OAF page ?
    Can I use the classes in oracle.apps.fnd.wf.bes.* ?
    Any help would be highly appreciated.
    Best Regards,
    Andries Hanekom

    Hi,
    When I try to compile just the basic part of my class I receive the following error:
    Error(21,36): cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found
    Class Code:
    import oracle.apps.fnd.wf.bes.BusinessEvent;
    public class VscmsEvents
    public VscmsEvents()
    public static void main(String[] args)
    VscmsEvents vscmsEvents = new VscmsEvents();
    //Initialize BusinessEvent, Payload objects
    public void initEvent(String eventName, String eventKey, String eventData)
    //Create BusinessEvent Object
    BusinessEvent mEvent = new BusinessEvent(eventName, eventKey);
    Furthermore, when using the BusinessEvent object to raise the event I will need to provide the raise method with a java.sql.Connection parameter. In the context of a OAF page how will I perform this?
    Thanks for the help.
    Best Regards,
    Andries Hanekom

  • How to display the username and current date in OAF  page Footer region

    Hi,
    I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
    Thanks
    Divya Agarwal

    Hi,
    Read this Thread:--
    You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
    String userName = pageContext.getUserName();
    How to populate Current Date and Time in OAF page through CO
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to Set the Effective Date to Sysdate in OAF Page

    Hi All,
    I am new to OAF and started working on OAF. I have a unique situation and I am unable to get it going. Here is the situation.
    1) Currently on Benefits module when an user logons he/she will be directed to FamilyMbrsPG. In this Page I had extended the controller(BenEnrlHeaderCO) to set the Effective Date to as that of life event occured date. This is working fine.
    But the issue arrises when one clicks the next button on FamilyMbrsPG. The requirement is when One navigates to CurrOvwPG at that page the effective date needs to be reset to Sysdate which I am unable to do. But the probloem is when I am trying to debug the controllers files of CurrOvw It is pointing to the controller class of FamilyMbrsPG which is BenEnrlHeaderCO.
    I was trying to reset the Effective Date as of sysdate.
    Can you please let me know as how to proceed from here.
    Thanks and Regards
    Vinod
    Edited by: user5149618 on Sep 17, 2009 8:01 PM

    Hi Gauravv
    Well here it is
    1) But the probloem is when I am trying to debug the controllers files of CurrOvw It is pointing to the controller class of FamilyMbrsPG which is BenEnrlHeaderCO
    In this scenario what is happening is for the page CurrOvwPG there are 6 controller class files which are as follows.:
    1) BeneficiariesOverviewCO.java
    2) CoveredDependentsOverviewCO.java
    3) CurrentBenefitsCO.java
    4) CurrentBenefitsTopCO.java
    5) SelectionOverviewTableCO.java
    6) SelectionsOverviewCO.java
    When I ran the project in debug mode and placed the breakpoints for the controller class files. As soon as I click the next button in FamilyMbrsPG the breakpoint in occuring at line31 of BenEnrlHeaderCO which is again a controller class file for FamilyMbrsPG which has been already extended to set EffectiveData to that of Life even occured Date.
    Now in CurrOvwPG I need to reset the EffectiveDate to Sysdate. Please let me know if this is clear...
    Thanks and Regards
    Vinod

  • How Can I disable Button from Button Bar on OAF page

    Hi Everyone,
    We have a requirement like, in button bar I need to hide one button.
    I worked on personalization but there is a option to hide entire button bar, not single button.
    If I extend controller, how can I proceed , please provide steps.
    or
    please provide how can i achieve this??????
    Thanks,
    Rakesh

    Hi,
    If your issue has been resolved than please close the thread so that it can be helpful for others as people may search with answered threads.
    --Sushant                                                                                                                                                                                                                                                                                                                                   

  • How to set where clause for a Valueset from OAF Page

    Hi all
    I am customizing a standard page Employee Self Service. I have added some additional fields to existing KFF. There was field say "CHILD NAME" which is a free text field. The client now wants it to be a Drop down(or as LOV) which should display only the name of the child of the employee who is logged in.
    I want to know if i can achieve it by attaching a value set to the CHILD NAME field. But how to set the employee id to that valueset in order to show only the children of the particular employee
    Regards,
    Pradeep

    Hi Pradeep,
    If you could share some more details of the region you are trying to customize we can help
    1. Do you need this selected value through lov or drop to be saved to the database
    2. Right now, the "CHILD NAME"  is this part of any table or in a panel. If would be best if you paste the PG.XMl and point the field you are trying to change.
    This would help us to give you the best solution
    Thanks
    Sandeep

  • How to Update Particular row in a table from OAF page

    Hi Can anyone please help me on the following requirement:
    In my oaf page i am displaying table values(supplier site details from base tables) with update and delete icons . When i click on update button a new page opens in which we used to update the values and click on apply button which again comes back to the original page.
    So when i click on apply button on update page i have to first search for the site in the site table whether it exists or not, if not exists i have to create a new row and save the data, if site exists in the table i have to update the row of a table for that particular site. I have written code for this but unable to achive the requirement, it is not updating the existing row of the table. And i am doing all this on the Temp tables.
    So now when i save, previous transaction is also updating along with the current transaction. That means when i m trying to save 2nd transaction values , 1st transactions values are getting updated with the 2nd transaction values(2 rows are getting updated)
    Can anyone help me with the code used for updating the current row of the table. Please correct me if i m doing anyting wrong in code.
    following is the current code i m using and which is failing :
    Controller Code
    if(pcontactaction.equals("createECdetailsEvent")) {
    String currentSiteName=pageContext.getParameter("SiteName");
    System.out.println("Selected Site Name is : " + currentSiteName);
    Serializable x[]={reqNum,suppId,currentSiteName,pnotifMethod,pfaxNum};
    System.out.println("Invoking AM Method.........");
    am.invokeMethod("initCreateECDetails",x);
    System.out.println("initCreateECDetails Method Executed. ");
    //am.invokeMethod("save");
    localOAApplicationModule.getTransaction().commit();
    pageContext.setForwardURL(
    "OA.jsp?page=/oracle/apps/floaf/flpos/supregister/webui/ECDetailsPG"
    , null //not needed as we are retaining menu context
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    , null //not needed as we are retaining menu context
    ,null // no parameters are needed
    ,true //retain AM
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    AM Code
    public void initUpdateECDetails(String request_number,String supplier_id,String site_name,String site_id,String notification_method,String fax_number)
    OADBTransaction localOADBTransaction = getOADBTransaction();
    String siteToUpdate;
    siteToUpdate=site_name;
    String siteidToUpdate;
    siteidToUpdate=site_id;
    System.out.println("Site Name to Update or Create is : " + siteToUpdate);
    System.out.println("Site Id to Update or Create is : " + siteidToUpdate);
    System.out.println("Inside Update EC Details MEthod.");
    OAViewObject suppSiteDetVO = getFLPOSSuppSiteDetailsVO1();
    FLPOSSuppSiteDetailsVORowImpl sro=null;
    String existingWhereClause = suppSiteDetVO.getWhereClause();
    suppSiteDetVO.setWhereClause(null);
    suppSiteDetVO.setWhereClauseParams(null);
    suppSiteDetVO.setWhereClause("SUPPLIER_ID = :1 AND REQUEST_NUMBER = :2 AND SITE_ID = :3 ");
    suppSiteDetVO.setWhereClauseParam(0, supplier_id);
    suppSiteDetVO.setWhereClauseParam(1, request_number);
    suppSiteDetVO.setWhereClauseParam(2, site_id);
    suppSiteDetVO.executeQuery();
    suppSiteDetVO.setWhereClauseParams(null);
    suppSiteDetVO.setWhereClause(existingWhereClause);
    int rowcount = suppSiteDetVO.getRowCount();
    System.out.println("Fetched Rows : " + rowcount);
    if (rowcount == 0) {
    Row row = suppSiteDetVO.createRow();
    System.out.println("Row is : " +row);
    suppSiteDetVO.insertRow(row);
    String siteId = getOADBTransaction().getSequenceValue("FLPOS_SITE_ID_SEQ").toString();
    System.out.println("New Site ID : " + siteId);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    row.setAttribute("RequestNumber", request_number);
    row.setAttribute("SupplierId", supplier_id);
    row.setAttribute("SiteName", site_name);
    row.setAttribute("SiteId", siteId);
    row.setAttribute("FaxNo",fax_number);
    row.setAttribute("NotificationMethod",notification_method);
    System.out.println("New Row Created for Supplier Site.");
    System.out.println("Data Saved to table.");
    else{
    System.out.println("Inside Else Block ");
    try {
    System.out.println("Inside Try Block ");
    Row[] row = suppSiteDetVO.getAllRowsInRange();
    for (int i = 0; i < rowcount; i++) {
    sro = (FLPOSSuppSiteDetailsVORowImpl)row;
    String psiteName=sro.getSiteName();
    Number psiteid=sro.getSiteId();
    System.out.println(" p Site Name is : " +psiteName);
    System.out.println(" p site id is " +psiteid);
    if(psiteid.equals(siteidToUpdate) ) {
    sro.setAttribute("FaxNo",fax_number);
    sro.setAttribute("NotificationMethod",notification_method);
    //getOADBTransaction().commit();
    break;
    catch (Exception e) {
    System.out.println("Exception in update : " + e);
    }

    Please answer following:
    1. Are you using EO based VOs or ReadOnly VO?
    2. What is your VO Query for the search and update?
    3. Why have you based your logic on site_name; you should have used site_id?
    4.Are you getting correct site name in handling createECdetailsEvent event in CO?
    5. In case of update are you getting correct values on the Update Site Details?
    6. On coming back from Update page to Supplier Site Search page, do you see old values of the site or the new values in the results table?
    Please share the screenshot if possible.
    -Prince
    [email protected]
    http://princekapoor82.blogspot.com

  • How can I Fetch the error message from a OAF page

    Hi,
    A confirmation message is coming on the page,I want to catch the error message and depending on its value want to add some validation.
    Is that possible to fetch the error message from the page?

    is it a confirmation message or an error message ?
    Code in the OAF page would be raising an OAException with a message name defined in message dictionary.
    you would need to look at the code to understand where this is thrown from and add your validation there.
    Tapash

  • How to display data in multiple lines in a OAF page

    Dear All,
    I have search field and the data is coming like this:
    Mobile Phone Number(s) 0044 7843 271222, 0044 6664 2222
    I have to show data like
    Mobile Phone Number(s) 0044 7843 271222
              0044 6664 2222.
    Please let me know which item type i should use to show data like this.

    851265 wrote:
    Dear All,
    I have search field and the data is coming like this:
    Mobile Phone Number(s) 0044 7843 271222, 0044 6664 2222
    I have to show data like
    Mobile Phone Number(s) 0044 7843 271222
              0044 6664 2222.
    Please let me know which item type i should use to show data like this.You may take two messagetextInput fields and show the data into each of them by substring the original string.
    Thanks
    AJ

  • How to generate a URL to specific record in OAF page?

    Hi,
    I need to generate URL to a specific page with populated record data.
    I've tried using FND_RUN_FUNCTION.get_run_function_url, but i don't know if this is a good method for OAF page.
    The page is opening but record is not populated.
    This package generates URL like /RF.jsp?function_id=?....
    The OAF pages have URLs like /OA.jsp?page=...
    Is there any way I can generate this URL?

    Hi
    Use this code to upload the file in the server and there by get the absolete path
    public void onActionUpload_File_in_Server(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload_File_in_Server(ServerEvent)
        InputStream text=null;
        int temp=0;
        try
             File file = new File(wdContext.currentContextElement().getFileResource().getResourceName().toString());
             FileOutputStream op = new FileOutputStream(file);
             if(wdContext.currentContextElement().getFileResource()!=null)
                  text=wdContext.currentContextElement().getFileResource().read(false);
                  while((temp=text.read())!=-1)
                       op.write(temp);                                      
             op.flush();
             op.close();
             path = file.getAbsolutePath();
             wdComponentAPI.getMessageManager().reportSuccess(path);
        catch(Exception e)
             e.printStackTrace();
        //@@end
    Regards
    Chandran S

  • How to derive DFF segment id programatically, attached to OAF page

    Hi Guru's
    I am facing below challenges in handling the segments of DFF which is attached to OAF page.
    As per the requirement, we need to do the changes on the segments of DFF(Party Information). But segments of these DFF are different for each attribute category in DFF.
    I can get the segment id by seeing the View Source of that page where DFF is attached but this id differs when sequence of DFF segments differs.
    for ex.:- for Attribute Category Comany segments sequece are-
    1) Acounting
    2) Sub Accounting
    so for this attribute category Accounting segment id will be 01 and Sub Accounting segment id will be 02
    but for Attribute Category Agency segment sequece are-
    1) Sub Accounting
    2) Accounting
    so for this attribute category segment id will 01 for Sub Accounting and 02 for Accounting.
    So we need the approach to derive the segment id instead of getting it from View Source page.
    Can any one please help on this?
    Please reply incase you require more details on it..
    Regards,
    Piyush
    Edited by: Piyush_Gupta on Feb 4, 2013 10:00 PM

    Hi All,
    I am still facing the challanges.
    Could anyone help me on this?
    Regards,
    Piyush

  • How to prevent multiple clicks of submit buttons in OAF Pages

    Hi All,
    Our page takes around 30 seconds to 1 minute for processing.
    Some users are not patient enough. I have tried putting the below code in my PR method.
    OAWebBean body = pageContext.getRootWebBean();
        if (body instanceof OABodyBean)
        ((OABodyBean)body).setBlockOnEverySubmit(true);
    This code disables submit button for some time. After few seconds, the submit button can be clicked again by the user.
    Also, if I click on other browser window and come back to OAF page, the submit button can be clicked again immediately.
    Have also searched OAF forum but didn't find any satisfactory answer.
    Need answer from Oracle on this. If not answered on the forum, will raise an SR.

    Hi Amit,
    Try using the Processing Symbol , after clicking the Submit button. Which does shows you processing clock symbol once you click Submit Button.
    Regards
    Raghu

  • How to open a new window from submit button &dialog page in current window?

    We have a requirement, wherein we have a OAF search page for PO lines with search criteria, Go button to search ,result region (table layout) and a submit button(Create new expedite).
    1. Now user can select some lines from result region and click on Submit button.
    2. On click of submit button we need to pop up a window or may be a dialog page asking that " Do you want open supplier web link portal or not?".
    3. If user clicks yes(in Dialog page) then first fetch the URL from a look up maintained in Oracle EBS on the basis of supplier of the lines selected and then open that URL in a new window and side by side we need to open a dialog page in search page asking "whether user has updated the expedite info in supplier portal or not?". On basis of this we need to updated some count in custom tables.
    So in step 3 i am facing problem, that how to open an URL in a new window through a submit button and side by side want to open a dialog page in the current window also.
    Hope a quick response from you all.
    Note:- To open a custom page we can have a link or button(button of type button and not submit button) on base page with destination url property as following javascript:
    javascript:var a = window.open('OA.jsp?page=/XXX/oracle/apps/xxx/......&retainAM=Y', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    So the question is how to do the same for submit button on OAF page???

    Antriksh,
    You just need to attach a submit action in button bean and not submit button bean, based on the output of confirm type of alert in javascript.
    Here is code u need to put in destination url of the button:
    //replace <confirm message> by message you want to show.
    javascript:input=confirm('<confirm message>');if(input==true){submitForm('DefaultFormName',0,{XXX:' abc'});}" Now in the process request of the base page CO, u can get parametre 'XXX' from the pagecontext....so
    if((("abc").equals(pageContext.getParameter("XXX"))))
    {/// custom LOGIC }
    The same i have replied in your mail. I hope this resolves the issue.
    --Mukul

  • TS5293 How to Have Multiple Devices on Maps osX with different iCloud accounts?

    I would like to be able to send my girlfriend directions thru the osX Maps app.  I know and always will know all her icloud info and password but i would wanna keep our icloud accounts seperate.
    Any suggestions on how to do this?

    I haven't tried this but im sure it will work.
    It just seems like there must be an easier way.  Instead of me having to log out of my account, log in to another account to be able to send her directions from the MAP app.
    If I tried to just log out of my icloud account on my profile it prompts me that everything will be deleted so i am not able to go that rout.
    Anyway's I will do it as you suggested unless something else comes up.
    Thanks

Maybe you are looking for

  • New HTML for Business Partner Search in CIC0

    Hi, I created a new HTML object, copy of CRM_CIC_SEARCH_DISPLAY, in SMW0, changed the HTML code and assigned this new HTML to my Business Partner Search profile. But when testing this change it seems that the HTML is incorrect because when I search a

  • I updated to the new version of iWork, how do I go back?

    The new verision of iWork for the Mac is simple terrible, so many important features have been removed, and I can not use it.  I have gone back to the previous version on my Mac, how do I go back on the iPad and iPhone so that I can work on the files

  • ITunes and Genius, purchased music wont play now

    after installing iTunes Genius, my purchased music wont play now. it gets skipped over in normal play mode. the box next to selection has the "check". album artwork still shows up when song is highlighted.

  • Linking and updating between photoshop and illustrator cs6

    Im having trouble with linking my files from photoshop to illustrator on a mac. Im using CS6 and it used to work fine, I'm not sure if I disabled a option somewhere but now It doesn't update the files when I make changes. For example if I'm making a

  • Where to learn swing text package

    Hello. I have been programming in java for a few year. I haven't made any real project (I am a college student). However, I have learnt lots of java stuff. I have used most of swing component. I even implements my own Renderer, Model, and Component.