How to execute a mapping based on an event

Hi
I am on OWB 10.2.0.3. and Oracle 10.2.0.2. I have a mapping which is fine, deploys well, I can execute using the control manager.
I also created a schedule module in OWB, created a schedule for a specific date and time and also an interval, configured the mapping to this schedule. The mapping gets executed successfully at the scheduled time.
The requirement is this mapping needs to be executed by an external process (oracle but a different application in a different machine). The team owning this process is ready to insert a record in a table. Which I want to sense and execute this mapping.
I already have created a procedure so that this mapping can also be run from pl/sql. I can create an after-insert trigger in this table so call this procedure, but that will make the whole think synchronous and the external process will have to wait for this mapping to complete to proceed further which is not acceptable by them.
Is there a way I can check for the record in this table and exec the mapping from OWB?
Can somebody please help and provide me pointers how I can schedule a mapping based on an event (insertion of the record) without (preferably) or with Oracle Workflow.
Thanks a lot in advance!
Maruthi

Thanks Detlef,
The problem I have is the trigger will make it actually synchronous with the process that inserts the record in the table.
Even if I define the trigger as AUTONOMIUS_TRANSACTION, both the process will not parellel. setting this I can have commits and rollbacks in triggers but they will be synchronous. I want this mapping to run asynchronously so that the main process inserts the record and continues with the rest of the process while the mapping can be executed independently.
For this reason I am looking for something which will allow me to do this without a trigger on the table.
As mentioned in your refereed post, I can use CDC, but not sure how good is CDC and will this be an overkill to implement and use CDC for this purpose. Any simpler solution available?
Any inputs please?
Thanks once again!
Regards,
Maruthi

Similar Messages

  • How to execute a mapping or workflow in a job?

    hi all:
    I want to write a procedure use pl/sql,
    and how to execute mapping or workflow in procedure ?
    then I write a job use script ,the job schedule execute
    procedure.
    please give me a sample.

    Hi,
    You can write a procedure something on these lines -
    CREATE OR REPLACE PROCEDURE Test_Proc(p_task_name IN VARCHAR2, p_task_type IN VARCHAR2, p_loc IN VARCHAR2 ) AS
    lv_rt_code NUMBER(1) DEFAULT 0;
    lv_repo VARCHAR2(64) DEFAULT NULL;
    lv_loc VARCHAR2(64) DEFAULT 'LOC_EDW_PROCESS_FLOWS';
    lv_task_type VARCHAR2(64) DEFAULT 'PROCESS';
    lv_task_name VARCHAR2(64) DEFAULT 'ETL_FIXED_RATE';
    lv_sys_par VARCHAR2(64) DEFAULT ',';
    lv_cust_par VARCHAR2(64) DEFAULT ',';
    lv_oem NUMBER(1) DEFAULT 0;
    lv_fnc_call VARCHAR2(4000) DEFAULT NULL;
    BEGIN
         IF ( p_task_name IS NOT NULL AND p_task_type IS NOT NULL AND p_loc IS NOT NULL) THEN
         lv_task_name := p_task_name;
         lv_task_type := p_task_type;
         lv_loc := p_loc;
         END IF;
         SELECT Wb_Rt_Platform_Repository INTO lv_repo FROM dual;
    lv_fnc_call := 'BEGIN '
    ||':lv_rt_code'
    || ' := '
    || lv_repo
    ||'.fnc_exec_owb_process(p_repos_owner => :lv_repo'
    ||', p_location_name => :lv_loc'
    ||', p_task_type => :lv_task_type'
    ||', p_task_name => :lv_task_name'
    ||', p_system_params => :lv_sys_par'
    ||', p_custom_params => :lv_cust_par'
    ||', p_oem_friendly => :lv_oem'
              ||'); END;'
    --dbms_output.put_line(lv_fnc_call);
    EXECUTE IMMEDIATE lv_fnc_call USING OUT lv_rt_code, IN lv_repo, lv_loc, lv_task_type, lv_task_name, lv_sys_par, lv_cust_par, lv_oem;
    DBMS_OUTPUT.PUT_LINE('RETURN CODE IS '|| lv_rt_code);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SUBSTR(SQLERRM,1,255) );
    END;
    and use DBMS_JOB to schedule the above.
    HOpe this helps.
    Thanks
    Mahesh

  • How to trigger a report based on a event/stored proc or sql dts completion

    Post Author: Crystaldev
    CA Forum: Publishing
    I want to run/trigger a crystal report based on file existence or based on a stored proc/sql dts/a value present in a sql table. The way I want to do is schedule a crystal report in crystal enterprise and then run the report based on a event like file existence or based on a sql dts completion or a value existence in a sql table. We are using crystal reports v10.
    I am not sure how we can do this, any help is appreciated. Thanks.

    Hi
    When you click on View Data, at bottom click on Edit button
    It will prompt a connection details tab wherein you can view and modify the connections
    Nik

  • How to execute a method on mouse move event on an Image

    Hi All,
    I want to execute a method on mouse move event or mouse click event to an image.
    how can i achieve this?
    TIA,
    Vishal

    I am not sure if commandImageLink or goImageLink solve your requirement.
    But as a workaround you can use set of ClientListener and ServerListener with af:image to achieve what you need.
    using then you can capture client event and convert that into server event which you can use to call a bean method.
    Inside this bean you can call a web service or method binding.
    My first link in previous post shows that very well....
    OR
    http://naive-amseth.blogspot.com/2011/02/calling-methodbindingwebservice-on.html
    Amit
    Edited by: amseth on Feb 15, 2011 12:25 AM

  • How to execute a mapping in sql plus?

    hi,
    OWB generate a package code from the mapping, for example if I have a package named map1, what is the request to execute ,in SQL
    PLUS, map1.main() which is the function main of this package?
    Thank you

    Hi
    There is a MAIN procedure you can use, if you have no mapping input parameters defined it will be like;
    PROCEDURE Main(p_status OUT VARCHAR2,
    p_max_no_of_errors IN VARCHAR2 DEFAULT NULL,
    p_commit_frequency IN VARCHAR2 DEFAULT NULL,
    p_operating_mode IN VARCHAR2 DEFAULT NULL,
    p_bulk_size IN VARCHAR2 DEFAULT NULL,
    p_audit_level IN VARCHAR2 DEFAULT NULL,
    p_purge_group IN VARCHAR2 DEFAULT NULL,
    p_job_audit IN VARCHAR2 DEFAULT 'TRUE');
    If you define mapping input parameters they will also be included in the signature of this procedure.
    See this post here for some details;
    http://blogs.oracle.com/warehousebuilder/2008/11/using_3rd_party_schedulers_with_owb_1.html
    Cheers
    David

  • How to Execute a code in form postSubmit event

    Dear all,
    I have a simple code which is executed perfectly when I put it in form :preSubmit: event but when i moved it to the :postSubmit: event it doesn't work at all .
    Please let me know where to put my code if I need it just to be executed once the form submitted ??
    Thanks in advanced,
    Mohammed Al-Mosleh

    Try using this code:
    var vMsg = ""; //message to display for the missing required fieldsvar successflag = 1; //flag to determine if any required field is null
    //validate all required text fields  
    for (var nPageCount=0; nPageCount<xfa.host.numPages; nPageCount++) { 
    var oFields = xfa.layout.pageContent(nPageCount,"field"); 
    var nNodesLength = oFields.length; 
    for (var nNodeCount=0; nNodeCount<nNodesLength; nNodeCount++) { 
    if (oFields.item(nNodeCount).mandatory == "error" ){  
    if (oFields.item(nNodeCount).rawValue=="" || oFields.item(nNodeCount).rawValue==null){ vMsg += oFields.item(nNodeCount).name + ", ";
    successflag = 0;
    ---------write your code
    if (successflag == 1)
    execute the insert into database code
    else
      xfa.host.messagebox(vmsg); //displays the missing field names
    Regards,
    Chaitanya

  • How AAE call the mapping program?

    Hi Experts,
    i almost have no experience on using AAE. after reading some documents i still have the below questions,
    1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
    2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
    3. in some documents "persistence" is discussed, can someone help me into more details?
    thanks in advance. hope these could be explained.

    > 1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
    When you implement AAE,Adapter engine will execute your mapping program,that means AE has the capailities , they have copied moved routing ,mapping  features in AE,so no need to interact with IE.
    > 2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
    There is no side effects at all,but there are some limitations like in PI7.1 monitoring not possible,ABAP PRoxy,look ups will not supported and only supports AE adapters communication.
    PI7.1 EHP1 some enhacements happend on the same
    search in sdn.
    > 3. in some documents "persistence" is discussed, can someone help me into more details?
    can you explain bit more..
    Regards,
    Raj

  • How to Handle and show multiple pushpin imgaes on the map based on the requirement at different coordintes?

    How to Handle and show multiple pushpin imgaes on the map based on the requirement at different coordintes?
    I have multiple images in  my App folder. I want to use and show those images dynamically  in windows phone 8 map application

    There are a lot of different ways to do this. One simple method is to use a switch statement when creating your pushpins and based on some property in your data, select the icon you want to use and create your pushpin accordingly.
    http://rbrundritt.wordpress.com

  • How to execute PL/SQL query based on given input parameter

    Hi all,
    I have a pl/sql code which is in Region source. It extracts data from database. I want to execute the code based on input I give. I have to give date as a input parameter.
    e.g.
    If I give date1 as a parameter, then following code should executed
    select col1, col2,..... from Table where date1 between '01-jan-2010' and '31-jan-2010'
    If I give date2 as a parameter, then following code should executed
    select col1, col2,..... from Table where date2 between '01-jan-2010' and '31-jan-2010'
    Your help is very much appreciated.
    Leo

    Check the datatemplate,lexicals and beforeTrigger for this in documentation.
    check this
    Lexical reference issue in EBS

  • How to make one map dependent on another ?

    Assume you have 2 maps - M1 and M2
    How to execute M2 automatically after successful run of M1 ?
    or if I have process flows PF2 start after success of PF1 without a manual intervention
    I looked at scheduling,.You can only set timing there but don't know how long your map runs.
    Thank You

    To make map dependant of another map you can use process flow. In process flow you can call M2 only if M1 is success. If M1 is failure you may exit the process flow.
    Am not sure how it will work for process flow. May be writing a 3rd process flow and call PF1 & PF2 within it based on success status? or write some PL-Sql wraper procedure for the same???!!! give it a try.

  • How to create a report based on a DataSet programatically

    I'm working on a CR 2008 Add-in.
    Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
    I have a dataset in memory, and want to create a new report in cr2008.
    The new report is a blank report (with no connection information).
    If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
    The report has no tables.
    So I must programmatically define the table definition in my blank report.
    I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
    internal class NewReportWorker : Worker
          public NewReportWorker(string reportFileName)
             : base(reportFileName)
    public override void Process()
             DatabaseController databaseController = ClientDoc.DatabaseController;
             Table table = new Table();
             string tabelName = "Table140";
             table.Name = tabelName;
             table.Alias = tabelName;
             table.QualifiedName = tabelName;
             table.Description = tabelName;
             var fields = new Fields();
             var dbField = new DBField();
             var fieldName = "ID";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             dbField = new DBField();
             fieldName = "IDLEGITIMATIEBEWIJS";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             // More code for more tables to add.
             table.DataFields = fields;
             //CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
             //   new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
             //info.Attributes.Add("Databse DLL", "xxx.dll");
             //table.ConnectionInfo = info;
             // Here an error occurs.
             databaseController.AddTable(table, null);
             ReportDoc.SetDataSource( [MyFilledDataSet] );
             //object path = @"d:\logfiles\";
             //ClientDoc.SaveAs("test.rpt", ref path, 0);
    The object ClientDoc referes to a ISCDReportClientDocument in a base class:
       internal abstract class Worker
          private ReportDocument _ReportDoc;
          private ISCDReportClientDocument _ClientDoc;
          private string _ReportFileName;
          public Worker(string reportFileName)
             _ReportFileName = reportFileName;
             _ReportDoc = new ReportDocument();
             // Load the report from file path passed by the designer.
             _ReportDoc.Load(reportFileName);
             // Create a RAS Document through In-Proc RAS through the RPTDoc.
             _ClientDoc = _ReportDoc.ReportClientDocument;
          public string ReportFileName
             get
                return _ReportFileName;
          public ReportDocument ReportDoc
             get
                return _ReportDoc;
          public ISCDReportClientDocument ClientDoc
             get
                return _ClientDoc;
    But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
    What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?

    Hi,
    Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
    //=========================================================================
    +           * the following two string values can be modified to reflect your system+
    +          ************************************************************************************************/+
    +          string mdb_path = "C:
    program files
    crystal decisions
    crystal reports 9
    samples
    en
    databases
    xtreme.mdb";    // path to xtreme.mdb file+
    +          string xsd_path = "C:
    Crystal
    rasnet
    ras9_csharp_win_datasetreport
    customer.xsd";  // path to customer schema file+
    +          // Dataset+
    +          OleDbConnection m_connection;                         // ado.net connection+
    +          OleDbDataAdapter m_adapter;                              // ado.net adapter+
    +          System.Data.DataSet m_dataset;                         // ado.net dataset+
    +          // CR variables+
    +          ReportClientDocument m_crReportDocument;          // report client document+
    +          Field m_crFieldCustomer;+
    +          Field m_crFieldCountry;+
    +          void CreateData()+
    +          {+
    +               // Create OLEDB connection+
    +               m_connection = new OleDbConnection();+
    +               m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
    +               // Create Data Adapter+
    +               m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
    +               // create dataset and fill+
    +               m_dataset = new System.Data.DataSet();+
    +               m_adapter.Fill(m_dataset, "Customer");+
    +               // create a schema file+
    +               m_dataset.WriteXmlSchema(xsd_path);+
    +          }+
    +          // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
    +          // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
    +          void AddDataSourceUsingDataSet(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               // add a datasource+
    +               DataSetConverter.AddDataSource(rcDoc, data);+
    +          }+
    +          // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
    +          // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
    +          // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
    +          // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
    +          // above.+
    +          void AddDataSourceUsingSchemaFile(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               string schema_file_name,          // xml schema file location+
    +               string table_name,                    // table to be added+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               PropertyBag crLogonInfo;               // logon info+
    +               PropertyBag crAttributes;               // logon attributes+
    +               ConnectionInfo crConnectionInfo;     // connection info+
    +               CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
    +               // database table+
    +               // create logon property+
    +               crLogonInfo = new PropertyBag();+
    +               crLogonInfo["XML File Path"] = schema_file_name;+
    +               // create logon attributes+
    +               crAttributes = new PropertyBag();+
    +               crAttributes["Database DLL"] = "crdb_adoplus.dll";+
    +               crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
    +               crAttributes["QE_ServerDescription"] = "NewDataSet";+
    +               crAttributes["QE_SQLDB"] = true;+
    +               crAttributes["QE_LogonProperties"] = crLogonInfo;+
    +               // create connection info+
    +               crConnectionInfo = new ConnectionInfo();+
    +               crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
    +               crConnectionInfo.Attributes = crAttributes;+
    +               // create a table+
    +               crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
    +               crTable.ConnectionInfo = crConnectionInfo;+
    +               crTable.Name = table_name;+
    +               crTable.Alias = table_name;+
    +               // add a table+
    +               rcDoc.DatabaseController.AddTable(crTable, null);+
    +               // pass dataset+
    +               rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
    +          }+
    +          void CreateReport()+
    +          {+
    +               int iField;+
    +               // create ado.net dataset+
    +               CreateData();+
    +               // create report client document+
    +               m_crReportDocument = new ReportClientDocument();+
    +               m_crReportDocument.ReportAppServer = "127.0.0.1";+
    +               // new report document+
    +               m_crReportDocument.New();+
    +               // add a datasource using a schema file+
    +               // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
    +               // for more information, refer to comments on these methods.+
    +               AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
    +                              +
    +               // get Customer Name and Country fields+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               // add Customer Name and Country fields+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
    +               // view report+
    +               crystalReportViewer1.ReportSource = m_crReportDocument;+
    +          }+
    +          public Form1()+
    +          {+
    +               //+
    +               // Required for Windows Form Designer support+
    +               //+
    +               InitializeComponent();+
    +               // Create Report+
    +               CreateReport();+
    +               //+
    +               // TODO: Add any constructor code after InitializeComponent call+
    +               //+
    +          }+//=========================================================================

  • How to Execute a Remote Procedure in Portal using Database Link

    Hi,
    I followed the instructions to create a Portal form for a remote procedure. But I am encountering the following error. Can someone advise what may be the cause?
    Failed to execute - Missing string(create_package_body) language(us) domain (wwv) sub_domain (wwv_builder) (WWV-04300)
    ORA-04020: deadlock detected while trying to lock object PUBLIC.PORTLET_SCHEMA (WWV-11230)
    Failed to parse as PORTAL - (WWV-08300)
    PURPOSE
    How to execute a remote procedure in Portal using Database Link.
    DESCRIPTION
    This procedure assumes that you have two databases, one of which is remote, and Portal is configured in the other.
    Remote Database A:
    ==================
    1) Create a procedure as follows: Create or Replace PROCEDURE SCOTT.ADD_TWO_VALUES ( v_one IN NUMBER, v_two IN NUMBER, v_result OUT NUMBER) as begin v_result :=v_one+v_two; end; 2) Grant execute privileges to PUBLIC on the procedure.
    Database B (where Portal is configured): ========================================
    1) Create a public database link and choose to connect as a specific user (say SYSTEM). By default, in an Oracle 8i database, the "global_names" parameter in initSID.ora (or init.ora) file is set to "true". This Global Naming parameter enforces that a dblink has the same name as the database it connects to. Therefore, if the remote global database (A) name is "ora8.acme.com" then the database link should also be named as "ora8.acme.com".
    2) Create a synonym for the procedure in Database A. Make sure you fully qualify the procedure name in the remote database (like SCOTT.ADD_TWO_VALUES).
    3) Create a dynamic page to execute the procedure. The ORACLE tags in the dynamic page will look similar to the following: <ORACLE> DECLARE v_total NUMBER; BEGIN ADD_TWO_VALUES(:v_one,:v_two, v_total); htp.p('The total is => '); htp.p('<input type="TEXT" VALUE='||v_total||'>'); htp.para; htp.anchor('http://<machine.domain:port#>/pls/portal30/SCOTT.DYN_ADD_TWO_VALUES.show_parms', 'Re-Execute Procedure'); END; </ORACLE>
    4) Portal does not have an option to create a form based on a synonym. Therefore, if you want to create a form instead of a dynamic page, create a wrapper procedure and then create a form based on this procedure. For example: Create or Replace PROCEDURE PORTAL30.ADD_TWO_VALUES_PR ( v_one IN NUMBER, v_two IN NUMBER, v_total OUT NUMBER) as begin add_two_values(v_one, v_two, v_total); end;
    5) Grant execute privileges to PUBLIC on the procedure.

    hello...
    any input will welcomed... Thanks..

  • Foreign key Mapping based on Data - in SQL Developer Data modeler

    Team
    Do SQL Developer Data modeler supports Foreign Key mapping based on the Data in the Schema rather defined at the DDL ? For e.g if we implement a Objects Relation ship mapping in Data base, we don't define Foreign keys at table creation.
    Toad does this feature through "AUTOMATIC FOREIGN KEYS MAPPING IN TOAD DATA MODELER" more info at (http://toadworld.com/Blogs/tabid/67/EntryId/905/Automatic-Foreign-Keys-Mapping-in-Toad-Data-Modeler.aspx)
    any one know how to implement through some scripts also helps me
    Regards
    Raj

    If you have table PKs defined and the candidate columns match those PK columns, then you can use the Discover Foreign Keys utility. Right mouse over the relational model name (node) in the left browser. It is about half way down the menu. I did a blog post about it last week on kentgraziano.com.

  • Execute owb mapping as a whole instead of giving step by step or skip

    Hi friends,
    I need a help from you.. Actually i am working with owb 10.2 and db 10.2. I am able to do all the process successfully like debugging, reinitializing and entering the data into the table.
    The thing is while debugging,i have to give step or skip to execute the mapping. Now i wanted to run the mapping as a whole,that is,once if i give debug,all the process must execute automatically and data must enter into the table. I need to avoid step or skip process.
    how to achieve that?? pls help me out..
    Thanks in advance,
    Bharath.
    Edited by: user11342336 on Aug 10, 2009 12:06 AM

    user11342336 wrote:
    Thank you very much for ur reply.
    and one more thing, consider, i have two or three mapping to be executed one by one.i.e one after another.
    say for an example,i have three stages. stage1,stage2 and stage3. all are inter-related and execute one stage by one.
    My job is to debug the stage1 alone. once it finished executing the stage1,it should automatically debug stage 2 and stage 3. and the data must enter into the table in all the stage.
    how to achieve this??
    Thanks much,
    Bharath.Any reason you can't debug them one at a time? Ideally, if you successfully execute stage1, you should have the intermediate data in some table. Resume debugging on stage2 from there.

  • Create embedded map based on GPX data?

    I have a website that serves up a series of GPS tracks (held as GPX files), each GPS file associated with a different dynamic web page.
    At the moment I manually create a map with the GPS track shown on it - this is quite time consuming and not particularly useful for readers. You can see an example of what I do at the moment here: http://www.lonewalker.walkingplaces.co.uk/walkinfo.php?walk=402
    Instead of having the static map in the corner of the page I would like to replace it with a Bing map, showing the route on the appropriate Ordnance Survey area map (I am UK based, and Bing are the only web map service that provide OS maps at the scale I
    need - 1:25K).
    The page is built dynamically, loading route data from a mySQL db and the map and GPX file from a simple query. The Bing map would need to work in the same way, drawing the appropriate GPS file on the appropriate map area, based on information generated
    as part of the page build (I use PHP/mySQL and I can handle that bit), but I can't see how to get Bing maps to use the dynamic data.
    Hope that all makes sense - happy to provide more information if I've not been clear.
    Thanks
    Stuart

    Can't seem to make any progress on the GPX Parser plug-in.
    All I'm doing at the moment is spinning my wheels, I managed to load a GPX file, but only when I click on one of the action buttons at the bottom of the map and that action button is supposed to be loading something else, not my GPX file, but when I click
    it, my GPX track appears in the correct location on the map.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title>GPX Parser</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=en-gb"></script>
    <script type="text/javascript">
    var map;
    function GetMap() {
    // Initialize the map
    map = new Microsoft.Maps.Map(document.getElementById("myMap"), { credentials: "MYAPIKEY",
    center: new Microsoft.Maps.Location(54.682, -3.122), mapTypeId: Microsoft.Maps.MapTypeId.ordnanceSurvey, zoom: 12,
    enableClickableLogo: false,
    enableSearchLogo: false,
    showCopyright: false,
    showDashboard: false,
    showLogo: false });
    //Register and load the GPX Parser Module
    Microsoft.Maps.registerModule("GPXParserModule", "scripts/minified/GPXParserModule.min.js");
    Microsoft.Maps.loadModule("GPXParserModule");
    function LoadGPX(url) {
    //map.entities.clear();
    //Define default shape options
    var myTrackOptions = {
    strokeColor: new Microsoft.Maps.Color(156, 0, 0, 255)
    var myRouteOptions = {
    strokeColor: new Microsoft.Maps.Color(156, 0, 0, 255)
    var myPushpinOptions = {
    new GPXParser().Parse("401.gpx", GPXCallback);
    function GPXCallback(items) {
    map.entities.push(items);
    //Advance functionalities can be added here such as adding event handlers.
    //Set the map view
    if (items.Metadata != null && items.Metadata.LocationRect != null) {
    map.setView({ bounds: items.Metadata.LocationRect });
    </script>
    </head>
    <body onload="GetMap()">
    <div id='myMap' style="position:relative; width:420px; height:420px;"></div>
    <input type="button" value="Local file (GPX file with Photos)" onclick="LoadGPX('/Data/abridge.xml')"/>
    </body>
    </html>
    The code above produces the correct map, but with no track loaded.
    Once I click the button the 401.gpx file loads - this works locally, but when I upload it to my server, it doesn't load the trackdata either.
    I'm stumped now- can anyone help?
    Thanks
    Stuart

Maybe you are looking for

  • BED, AED and SED for the excise item is zero

    Dear ALL, I am working on IMPORT MATERIAL  GOODS RECEIPT,   While  doing MIGO  in excise  item tab  BED, AED, SED   values  are  visible  and  material document is  generated, but while posting  PART1 ENTRIES  through J1IEX  System is throwing error"

  • Meterialize view backup.

    Hi, Is it possible to take export and import of Meterialize Views using datapump of 10g? If possible then please give me the example code. Thanks, Faziarain

  • Script execution process

    Hi all, How do i run three scripts one after another automatically for daily basis. Say i have three scripts A,B,C and i want to run the three scripts A followed by B followed by C. Is there any way to implement this. Please help me.

  • Downloading files over HTTPS

    how can i upload files over https can you give me some links to web sites that explain this thank u

  • Reports Performance Problem

    I have a report that contains 17 queries, which populate 17 layouts. As you can imagine, it is very slow. It takes about a minute before the report will display on the client PC. In a form which calls this report I have a pl/sql routine that populate