Query string and CopyFile & Delay()

Hi to all engineers,

I'm fresh in labwindows & you have some problem with it.

When I'm programming a program that allows users to enter address CopyFile by themselves, I found congratulate him differs from C. Who commends should I use for the query string? I use GetCtrlVal (panelHandle, PANEL_fileA, & address), but when I run it, it says "too small argument.  And after request chain, how could I record it to the sourcefile targetfile address in CopyFile?

Another problem is with the command Delay();  Once I use Delay(), such as Delay (3600), the system can work, but the other buttons will be jobless. I don't have other ways to fix it.

Could U please give me some suggestions?

Thank you very much

Wenxin

Well, here are some suggestions for you.

With respect to the file name, you may be passing too short a string to retrieve user input in GetCtrlValCVI offers a macro so useful to express the size of a string containing a path, or can dimension chain as a char address [MAX_PATHNAME_LEN]; , then passing it with its simple name (which is in fact already address): GetCtrlVal (panelHandle, PANEL_fileA, address).

In this case, another clue is to check if the user gave a fullpath, backslashes included: they should be doubled, because a single backslash is interpreted in C as an escape code.

But perhaps the best suggestion is to let the user navigate to the right destination and give the filename FileSelectPopup wusing, which returns the full path that you can use without formatting, and other changes.

Regarding the delay, it actually stops the execution of the program until the end of the given period of time, so you must develop your strategy of suspension in a different way. Indeed, a 1 hour stop is a "suspension of activity" more that a simple break, and you must treat her differently, especially if you want to maintain an intervention of the user during this period. For example, you can let the system run disable or hiding banned buttons or divide the interval in littler slices of time using ProcessSystemEvents eprmit handle other events: there are several discussions in the forum that the point of discussthis, so you could did research on it.

But the first suggestion I can give you is to run the tutorials if you did not already, in order to study basic documentation that comes with CVI and carefully consider some of the examples installed with the environment, which can give you a better understanding of the instrument you use, and answer a few questions as you have.

Tags: NI Software

Similar Questions

  • Query string and issue of Internet Explorer

    Hello

    I did a small Flash (Player 8, AS2) application that is controlled by a chain of request on the URL of the page. Here is a link to test:

    http://www.highergroundclients.co.UK/DB/fundsmap/index.html?region=null

    If you open this link in Firefox, you will see that Europe is selected by default, and then clicking on Asia or Latin America will change the string, reload the page and change the selected region.

    It works fine in Firefox, Safari etc, but for some reason any it won't work in IE6, IE7 or IE8. Now of course I know that query strings work fine under IE, but I've never known files Flash behave differently in different browsers before.

    If anyone has experienced this before? I am really puzzled. Here's the flash code I use:

    var queryParts:Array = flash.external.ExternalInterface.call ("function () {return window.location.toString () ;}"). Split("?) Region = ") [1]." Split ("=");
    trace (queryParts [0] + "=" + queryParts [1]);

    _root.geo_mc.gotoAndStop (queryParts);

    I also tried to embed the Flash file in different ways (object, swfobject etc.) but not joy.

    Any help would be appreciated!

    you add javascript function in the html embed file so your code is easier to read and debug.  Use location.href to bring back the html url

  • How to use several query string in a URL?

    Can someone help me with the use of more than a query string in a URL?  I would like to pass on the details of the campaignID (for the CLR) and industry (redirect after form submission) with a click of an email to a landing page.

    Thank you very much

    Alan,

    There are two posts really great on this topic that should help you get there quite easily.

    First, take a look at the position of glreichertof EE12. EE12 - Do-It - Thomson Reuters - Super power of blind forms

    Then visit chorenfto post on the blind forms. Eloqua10: trigger multiple actions with a click-through email (via 'send blind form')

    I have these two positions of reference whenever I need an update on query strings and always answers my questions.

    Good luck.

    Krista

  • Example to use the query string in the Oracle Access Manager policy.

    Hi all

    Can is there any one please tell me what is the value of the query string and Query String Variable OAM political?

    If possible, please explain with an example of the sample.

    Thanks in advance.

    Siva NAKI.

    Let's say I have an application that has logout URL as http://abc.com/app.cgi?function=logout&user=LOGGED_USER.
    In this case, logged in user will always be different, but you want the user to sign out when this URL is hit. In this scenario, you can use query string variables and specify the function = disconnect it.

    In other scenarios where you know all the query parameters and you want to protect these URLs then the query string can be used.

    Thank you
    Kiran Thakkar

  • Eloqua reporting: what is the difference between 'Link clicks' and 'interactive generated query string value "?

    clicks.png

    Sometimes, I need to look at the link clicks in order to determine what link they clicked and sometimes the value of query string. What is the difference?

    Redirect link is the actual URL that redirects to a specific Web site location.

    Value of query string of clicks is what follows after the "?" in the link. These query strings do not change the location where the user is directed to but is for information purposes.

    If you were to combine interactive generated link and the value of clicks query string, you will get the full link following the user.

    Example: In your screenshot, for the first row in the report, the user would have followed this link:

    https://play.Google.com/store/apps/details?ID=no.osloby.app

    The report broke it into 2 parts: clicks link (https://play.google.com/store/apps/details) and the value of query string of clicks (? id = no.osloby.app).

    You can create custom query strings under configuration > site: query strings. This can be useful if you want to create your own way to mark up and view metrics on clicks for links. When you define a query string parameter, you can add this setting with different values at the end of the links to follow only those (ex: "?") QueryStringParam = value1'). I used this is to differentiate between separate instances of identical links in the same email (ex: a link is a banner image and text) to see who is the most useful and results in the most traffic. You can then view a breakdown of clicks by each query string under Insight > reports and dashboards > site > overview of Query String parameters.

    Hope this helps... Let me know if you have any other questions.

  • How do follow you steps contained and commitment to move prospects into your funnel? Query strings?

    We are working on making our culture, funnel and lead scoring capabilities to the next level with the launch of a new Web site and I'm looking for comments on how the other Eloquans are tracking content in their or websites, emails, etc..  In particular, those of you who use an external (non-Eloqua) DAM, Adobe CQ5, SFDC, YouTube files, Limelight or other active storage media.  I am confident in the brilliance and creativity of the community of Topliners to get at least 2-3 different options that work as there are a lot ways to skin the proverbial cat.

    Here are some things that we will deliberate or who already use to some extent:

    1 string parameters of query on each link for an asset

    2 sets of query string parameters?

    3. query string clusters?

    4 page marking (manual, automatic-rules?)

    5. any other ideas?

    What is your strategy of big picture to add assets, maintenance and training to keep this accurate and functional?

    Thanks in advance!

    -jeff

    jrummertime

    1. we use Eloqua to store assets. WE find easier since we can then use just the traceable link, wherever we promote this content.

    2. Add the appropriate printing group. Sorry for the confusion

    I think that the stated scenario might work for you. At the end of the day, you do a lot of marking at the front (which is really not that hard - just a bunch of click).  As you add content, you simply label it and rating program is already set up to the partition and workflow on this tag. So the only thing you do is adding the new content to the appropriate marking group.

  • Dissect of Eloqua own AdWords Landing Page and URL with query string parameters, please!

    I presume that for AdWords landing pages are one of the most common types in use. I'm at a new company and try to create an approach that uses the latest methods. HAFS is gradually, and a large part of the information contained in the Topliners is old (2011) as these popular posts

    What is the best way to track Google adwords through Sales Force?
    How to capture Sources referring to forms and Landing Pages using query strings

    and the references using javascript to analyze the parameters in the screens that is 2009 and is not exactly what Eloqua uses today.

    I started to look at what Eloqua uses in its own marketing efforts and saw the potentially useful parts and parts that are confusing. I thought it would be useful if someone could dissect the code of the landing page and explain how each part of the code is. I'm OK with short descriptions and references to other articles or messages to explain the different parts that have not changed.

    Here's a page url to use. I added 'x' before each additional parameter then click top ruin the campaign stats.

    http://demand.Eloqua.com/LP=3461?elqoffer=xGartnerMQ & GoogleCampaign = xEloqua & SLS = xPPC_Google_Eloqua_2012 & gclid = xCKGFzcHyh7YCFQThQgod7lMAyg

    Here are some specific questions that I hope can be answered:

    • What you rely on Google to deliver you in their reports vs. what you capture discrete parameters: elqoffer, GoogleCampaign and sls
    • You use the gclid itself? How?
    • Is there a new better method for parsing of URLS and using hidden fields settings?
    • How do you use Eloqua cookies at the same time to send the form of Adwords?
    • You dynamically change the landing page?

    Thank you!

    Hi Mike,.

    I'm on the Ops of Eloqua Marketing team and can shed light on some of your questions.  I hope this helps!

    • What you rely on Google to deliver you in their reports vs. what you capture discrete parameters: elqoffer, GoogleCampaign and sls

    • elqoffer - we use elqoffer to indicate that the offer is valid for adword.  The value we deliver is used for many things.  Of course, we use it for reporting purposes, but we also set up our steps to use this value in a hidden field to redirect to the appropriate page supply once the form and also send the appropriate autoresponder of form processing.  We set up a dropdown list (aka select list) cards offer URL values (for the page of the offer) and another list of choices cards offer values to email ID (for the answering machine).
    • elqchannel - we also usually include a query string for the elqchannel who tells us the General source of the Contact (e.g. Google, Bing, etc.).
    • SLS - is essentially the Source of lead (sls = source of specific lead).  We use it to fill a hidden fields that reach "lead Source - Original" and 'Lead Source - the most recent'.  For us, the source of the specific lead is a very granular (and non-General, such as 'research') but includes a lot of information based on a strict naming convention.
    • That's what we use Eloqua to adwords, but we also use an SEO company to help us optimize our search spend.  To do this, they provide their own tracking code we put on the landing page initial as well as the page of the offer (ie. confirmation page).  To get the code on our LP, we use the cloud "Static content" component that allows you to place any custom code you want in the body of the HTML code.  Unfortunately, I don't have details on what exactly is captured with this code, or how it is used.
  • You use the gclid itself? How?
    • I don't know the answer to this one.  It's someone else on our team that works closely with an SEO company, so I think they know.
  • Is there a new better method for parsing of URLS and using hidden fields settings?
    • YES!  You may have noticed, we have some Javascript on our landing page that does a few things.  First of all, he did a Web data search in Eloqua to see if you are a known visitor and if so, we can pre-fill the form with information we already know the visitor.  The other thing is the JS is populate our hidden fields with the values of query string.  We started to do this before I had a cloud component that eliminates the need for JS custom.  You can use Form Population App to do all that for you.
  • How do you use Eloqua cookies at the same time to send the form of Adwords?
    • I'm not 100% sure I know what you're asking here, but my answer to the previous question can also respond to this one.  Data search Web first checks the Eloqua cookie to retrieve your email address, and then it uses this email address to search for your Contact field values and pre-fill the form.
  • You dynamically change the landing page?
    • We're not changing dynamically the landing page.  Usually, a visitor to click through to an Eloqua email or visit a page PURL.  Dynamically present the offer page based on the value of the query string for "elqoffer."  Looking for an application Cloud released in the coming days that will allow you to place the dynamic content on this initial landing page based on your cookie.
  • The way we structure our campaigns is based on the balance between reporting requirements while maintaining their operational efficiency.  For example, we do want to create a new campaign for each offer that we have.  That would quickly overwhelm our team.  For 2013, we have created 3 campaigns:

    1 research

    2. 3rd party Emails

    3 display ads

    Each of these campaigns have only 1 formula on it (one for research, one for email and display ads).  Each offer has its own landing page (see screenshot below).  The campaign of the report combined with the data of the form layout give us the requirements we need to understand what is working and what is not.

    TIP: If you have custom data objects, you can also consider creating one that seizes all shipments form for each of your forms in 1 place.  This way, you need only 1 set of data instead of individual export for each form of export.

    Example of a search campaign:

  • query string Flash and html

    Hello

    The problem page is located at http://gauravchandra.info/gpi/mediaCentre.html

    I use the flash query string to pass a value into a variable so that the flash file is loaded in a particular frame.

    If you see the object or embed element, I wrote ' Body_image.swf? section = flame "in the film source. What makes my flash movie play from a labeled frame - flame. But it works only in internet explore and that too only on the local computer. When I upload to the server, it starts from the first frame each time. In internet explore, it works on the premises, and it does not work even on local in firefox.

    What I am doing wrong? Please help because it's urgent.

    Gerard

    Solved. Put in a preloader. He took care of her.

    Gerard

  • Switch the SFDC ID campaign to dynamically query string?

    Hello

    I have a few campaigns created and I want to spend the SFDC ID campaign in a landing page query string URL in an attached email.

    I want to pass campaign SFDC ID dynamically, as if I chose send email step and added an email campaign. I sfdc campaign id and for each campaign, I don't want to hard-code the value. Just like field merges I want to fill the value in the URL.

    Is it possible anyway.

    Thank you

    Dardare

    Dardare, try adding this string as a query string parameter in your emails.

    This box works if the Eloqua campaign has the ID of CRM campaign settled in campaign settings. See also: complete list of Default merge fields?

    Kind regards

    James

  • Extract the subset of data in the query string

    Hi all

    I am using query strings in Eloqua for some time and found the implementation of them quite simple. I recently ran well across a scenario where it is not set up as a standard string.

    The URL ends up looking like this:

    http://Sub.domain.com/LP=123/?var=AB-business-_-AB-BusinessAB-_-TRK1AB23_hm_comp2-e_abcdefg_s

    The 'TRK1AB23' is the component I want to extract and place in a field.

    When I use the following code, I find myself everything of value, I want to pull all the way to the end of the string. What should I do to this code to retrieve only the characters that I need?

    function getQueryStringParamValue (strQStrParam) {}

    strURL var = document.location.href;

    var strQStrParamValue = "";

    If (strURL.indexOf('?')! = - 1) {}

    strQStrParamValue = strURL.substr (strURL.indexOf('?') + 1);

    If (strQStrParamValue.indexOf (strQStrParam)! = - 1) {}

    strQStrParamValue = strQStrParamValue.substr (strQStrParamValue.indexOf (strQStrParam));

    strQStrParamValue = strQStrParamValue.substr (strQStrParamValue.indexOf ('TRK') + 1);

    If (strQStrParamValue.indexOf('&')! = - 1) strQStrParamValue = strQStrParamValue.substr (0, strQStrParamValue.indexOf ('&'));

    Return strQStrParamValue;

    } else {}

    strQStrParamValue = defaultHiddenFieldNameValue;

    Return strQStrParamValue;

    }

    } else {}

    strQStrParamValue = defaultHiddenFieldNameValue;

    Return strQStrParamValue;

    }

    }

    Insert here the name of the form

    var form = 'generic ';

    function setCampaign() {}

    var elqForm = return [form];

    Repeat for each field to be completed

    elqForm.elements ['singleLineText'] .value = getQueryStringParamValue ('var');

    }

    Window.OnLoad = setCampaign;

    < /script >

    Egan,

    Your answer actually has helped me tremendously. I learned to look closer the code and found that it was an option of substring. I changed the substring to look at the first three characters of the code (which are always consistent) and then adjusted to shoot only the eight characters containing the code.

    It is not the prettiest or most appropriate code but it does exactly what I need to!

  • Maintenance mode to create query strings?

    Why should I switch to Maintenance Mode to create query string parameters?  I created query string parameters in the past and I have never been held to switch to maintenance mode.  If I go to activate maintenance mode, here is the message I get:

    Maintenance mode is currently DISABLED. Click on the button at the bottom of the page to activate the Maintenance Mode. With the Maintenance Mode on visitors register as not being on the Web site.

    Then... I guess I have to move fast while it is in maintenance mode, so I don't miss the important Web site visitors.  I just took an Eloqua University class on the web of profiling and of maintenance mode was not mentioned when creating query string parameters.

    Just wondering why this requirement has been added in order to create new query string settings?  I'm sure there is a good reason, but I was surprised by this today.

    Hi Vince,.

    Maintenance mode is necessary if you are generating a high volume of web traffic. When the volume of Internet traffic is low, the system is able to create the settings while continuing to capture relevant data provided by all. If the traffic volume is high, the system cannot create additional "fields" in the database at the same time perform all write-queries that generate your visitors. In addition, when the new channels/parameters sets query are created, the system must comb all existing data to find these settings in one of the existing data, so if clickstream data is generated more quickly that the script can work through the data, it would cause a problem.

    So yes, it is possible that sometimes maintenance mode will be needed, and other times not. If necessary, its best to activate only for very short periods of time, as Yes, all incoming data in maintenance mode is ignored.

  • You can control a URL in eloqua to add to the query string?

    If I insert a URL in an email, I can't stop eloqua to add additional query string parameters in eloqua.

    I want to make this happen because the URL doesn't seem to work if we add an extra parameter using the query string.

    I had a similar problem recently, and even turn off the tracking doesn't seem to help.  I finally decided to use a shortened URL (bit.ly) and it worked for me.

  • Normalize the input of query string to something intelligible

    I had a request for assistance since Friday on this, but since it is not answered yet, let's try your collective wisdom of the TopLiners to determine if I even do it properly!

    I have the URL with an assetid in the query string, which is a number. As well as this engage.companyname.com/landingpage?assetid=1

    Each number corresponds to a document in our download library. It is all together to dish up the correct asset and write an object (many - to a single contact) data indicating that the download happened. He writes assetid (number) on the data card.

    I wanted to be able to have something intelligible on the map data for a number of reasons. So I created an updated rule set where for each assetid, an asset name is written in the name field of the property (on the data object).

    I implemented a simple program in builder program to assess the totality of data objects and run this update rule set. But it does not work.

    So somewhere along the way I've done something wrong or missed a step (I have this puzzled through with TopLiners and EU documentation) or I am barking the wrong tree.

    I'll probably need to wait for support to come thanks to deconstruct what happened - but how I YOU think you?

    BTW, this program will do much more for data eventually cards but let's start first

    Here is the first part of the record, I have received support. I knew that the documentation followed before missing a bond - but only you know what you know, right?

    Thank you to contact Oracle Eloqua customer service, thank you for your business. I see you are trying to update the contacts with details of the documents that they have accessed (code of asset and asset name of the document) using of data maps and update rules. To start to help you, I want to confirm the problem you are experiencing. The specific part of the configuration that does not work, it is where you want your data cards to be updated with the name of the active partner when an asset what ID is added to data cards. Is this correct?

    I looked in the settings of your configuration and found that the way in which the affected step is configured does not update data cards. You currently have your updated program of the contacts, but he must update data cards and cannot access it with the current settings.

    To resolve this issue, please complete the following:


    Step 1: In your custom document library object, at the top right of the page click on custom object and select custom object Record Services. In the Custom Object Services window, click the arrow next to new data and select Edit the Actions of Service. In the edit the Actions of Service window, in the lower right corner, select Add processing steps.


    Step 2: In the window add a processing step, set the option Add a single processing step, by selecting Add to step in the program under the drop down list generator step. Click Add at the bottom right.


    Step 3: In the window new stages of treatment, under required parameters select the records of custom in the drop-down list object value. Then under Conditional settings, click on the search button program step next to the value field. In generator research program window, locate the 001. Standardize step name asset in your program via the search by name of the step or the name of the program. Select it and click Ok. In the window of new stages of treatment, under this treatment step is executed, select always. Click on save and close. You can now close the popup windows.

    The program should now be configured to update data with your active names cards using the conditions in your update rule. The next document in Topliners shows the screenshots to help you: http://topliners.eloqua.com/community/do_it/blog/2014/07/29/how-to-feed-custom-object-records-into-a-program


    After that I did these things, he still doesn't. Then they gave me this piece:


    I checked the settings that you have configured, and I saw that the stage of registration service custom object itself was not activated.

    To resolve this problem, open the custom of the document library object and open object custom registration Services. Then, click the down arrow next to new data and select activate the personal Service Record object. Shipments of new form must now update as you wish.

    To update existing records of custom object, please complete the following:

    Step 1: You must also configure the data service option changed with same parameters provided in the previous note and activate the service as explained above.

    Step 2: Then to process the records, in your custom object click Reporting at the top right of the page and select custom object records the data. In the data window of the custom object in the top left corner, click Actions and select check all records. Click export, and then select export to Excel to save an Excel document to use for re - download.

    Step 3: Return to the home page of your custom object, click on custom object in the top right of the page and select Download custom Object Records. Enter a descriptive name for the download and click Next. Click Browse and select the saved Excel file. Click on Upload and preview the data, and then click Next. Under field mappings, click automatic mapping fields to pre-populate the target fields and make changes if necessary, and then click Next. Click the checkbox for map data cards and under Add data at the stage of program entries, use the program generator search to search for and select 001. Standardize asset name then click OK and next.

    Step 4: If you want to reuse these settings later, under download select store these settings for re - use and enter a descriptive name for the saved settings file. Otherwise just click Finish. Your existing data maps should show active names within 30 minutes (which allows to program the durations of treatment).

    These steps will run maps of existing data through the update rule. If it still does not work, you will have to call for Support for further assistance via a screen sharing session. The phone for each region contact information can be found on our page please contact us at: http://www.eloqua.com/contact-us.html


    at that time, I saw him work. So excited! As I started to move my test scenario to production, it broke again. Sigh. Oh wouldn't it be nice if test/production in Eloqua was not quite as painful?

  • A geometry of a query string concatenation

    Hello, I was looking for a way to do it, but I've not found correctly.

    I have the following query:

    Select cli.nombre, pps.direccion, pps.idCiudad, ciu.nombre, cli.telefonoFijo, cli.telefonoMovil, cli.correoElectronico

    PPS pps

    inner join customers cli on cli.idCliente = pps.idCliente

    ciudades ciu on ciu.idCiudad = pps.idCiudad inner join

    where SDO_RELATE (pps.geometria, MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. () SDO_ORDINATE_ARRAY

    -75.5863632987792,6.24360843690558,

    -75.5875920222757,6.24123127980311,

    -75.59035778045654,6.239239255996803,

    -75.59261083602905,6.244358568585037,

    -75.5894136428833,6.244486550758674,

    -75.5863632987792,6.24360843690558

    (en)), "mask = ANYINTERACTION") = "TRUE";

    As you can see, the query uses a geometry to filter a few results. The thing is that this query is a string, and geometry is supplied as a parameter in a stored procedure, so the procedure has:

    sqlQuery: = '

    Select * from)

    Select cli.nombre, pps.direccion, pps.idCiudad, ciu.nombre, cli.telefonoFijo, cli.telefonoMovil, cli.correoElectronico, numfila rownum

    PPS pps

    inner join customers cli on cli.idCliente = pps.idCliente

    ciudades ciu on ciu.idCiudad = pps.idCiudad inner join

    where SDO_RELATE (pps.geometria, ' |)  SDO_UTIL. TO_WKTGEOMETRY (Suspensiones_CliMasiv_Sel.Geometria) | (","mask = ANYINTERACTION") ="TRUE"

    ';

    If (not columnaOrdenar is nothing) then

    sqlQuery: = sqlQuery | "order by". Suspensiones_CliMasiv_Sel.columnaOrdenar | ' ' || Suspensiones_CliMasiv_Sel.direccionOrdenar;

    end if;

    sqlQuery: = sqlQuery | '

    )

    where numfila between ' | Minimo | «and» | Maximo;

    Open cursorResultado for sqlQuery;

    In what "Suspensiones_CliMasiv_Sel.geometria" is the parameter of the procedure that receives the geometry. In many forums I found the SDO_UTIL function. TO_WKTGEOMETRY, but this function returns something like:

    POLYGON)

    Then, of course, the request fails, I need to convert the value of the parameter 'Suspensiones_CliMasiv_Sel.geometria' in a string that looks exactly like to:

    MDSYS. SDO_GEOMETRY (2003,8307, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1), MDSYS. () SDO_ORDINATE_ARRAY

    -75.5863632987792,6.24360843690558,

    -75.5875920222757,6.24123127980311,

    -75.59035778045654,6.239239255996803,

    -75.59261083602905,6.244358568585037,

    -75.5894136428833,6.244486550758674,

    -75.5863632987792,6.24360843690558

    ))

    To concatenate it correctly to the chain, is this possible?

    Thanks in advance

    Alejandro many.

    You must use a connection variable, instead of trying to convert it to a string and concatenate.  Please see the below simplified demonstration.

    Scott@orcl12c >-table, data, metadata, and index:

    Scott@orcl12c > CREATE TABLE pps

    2 (geometria MDSYS. SDO_GEOMETRY)

    3.

    Table created.

    Scott@orcl12c > INSERT INTO VALUES of pps (geometria)

    2 (MDSYS. SDO_GEOMETRY

    3 (2003, 8307, NULL,)

    4 MDSYS. SDO_ELEM_INFO_ARRAY (1, 1003, 1),

    5 MDSYS. SDO_ORDINATE_ARRAY

    6 (-75.5863632987792, 6.24360843690558,

    7 - 75.5875920222757, 6.24123127980311.

    8 - 75.59035778045654, 6.239239255996803.

    9 - 75.59261083602905, 6.244358568585037.

    10 - 75.5894136428833, 6.244486550758674.

    11 - 75.5863632987792, 6.24360843690558)))

    12.

    1 line of creation.

    Scott@orcl12c > INSERT INTO user_sdo_geom_metadata VALUES

    2 ('SPA', "GEOMETRIA",

    3 SDO_DIM_ARRAY

    4 (SDO_DIM_ELEMENT ('X',-76-75, 0.005),

    5 SDO_DIM_ELEMENT ('Y', 6, 7, 0.005)).

    6 8307)

    7.

    1 line of creation.

    Scott@orcl12c > CREATE INDEX pps_idx ON pps (geometria) INDEXTYPE IS MDSYS. SPATIAL_INDEX

    2.

    The index is created.

    Scott@orcl12c >-using the procedure binds the variable:

    Scott@orcl12c > test_proc CREATE OR REPLACE PROCEDURE

    2 (input_geometria IN MDSYS. SDO_GEOMETRY,

    3 cursorResultado IN OUT SYS_REFCURSOR)

    4 AS

    5 sqlQuery VARCHAR2 (4000);

    6 BEGIN

    sqlQuery 7: =.

    8 ' SELECT *.

    Pps 9

    10. WHERE SDO_RELATE

    11 (pps.geometria,

    12: bind_variable,

    13 "mask = ANYINTERACTION") = "TRUE" ';

    14 cursorResultado OPEN FOR sqlQuery USING input_geometria;

    15 END test_proc;

    16.

    Created procedure.

    Scott@orcl12c > SHOW ERRORS

    No errors.

    Scott@orcl12c >-performance and results:

    Scott@orcl12c > g_refcur VARIABLE REFCURSOR

    Scott@orcl12c > START

    2 test_proc

    3 (MDSYS. SDO_GEOMETRY

    4 (2003, 8307, NULL,)

    5 MDSYS. SDO_ELEM_INFO_ARRAY (1, 1003, 1),

    6 MDSYS. SDO_ORDINATE_ARRAY

    7 (-75.5863632987792, 6.24360843690558,

    8 - 75.5875920222757, 6.24123127980311.

    9 - 75.59035778045654, 6.239239255996803.

    10 - 75.59261083602905, 6.244358568585037.

    11 - 75.5894136428833, 6.244486550758674.

    12 - 75.5863632987792, 6.24360843690558)),

    13: g_refcur);

    14 END;

    15.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > g_refcur PRINT

    GEOMETRIA (SDO_GTYPE, SDO_SRID, SDO_POINT_TYPE (X, Y, Z), ANSDO_ELEM_INFO, SDO_ORDINATES)

    --------------------------------------------------------------------------------

    SDO_GEOMETRY (2003, 8307, NULL, SDO_ELEM_INFO_ARRAY (1, 1003, 1), SDO_ORDINATE_ARR)

    AY (- 75.586363, 6.24360844, - 75.587592, 6.24123128, - 75.590358, 6.23923926-, 75.5)

    92611, 6.24435857, - 75.589414, 6.24448655, - 75.586363, 6.24360844))

    1 selected line.

  • splitting the query string values

    all,
    I do not remember this, but my problem is that I have a collection of forwarded to my query as string values "X 234234: 23466 X: X 03287: X 457675 ', so my request should be able to divide each data value and use in the filter as below,

    Select * from emp where EmpID in ("X 234234: 23466 X: X 03287: X 457675")

    so, how can I divide each individual value and pass through the filter?

    Thank you.

    SELECT trim(x.column_value.extract('e/text () ')) CLO
    Of
    TABLE (XMLSEQUENCE (XMLTYPE (""
    || REPLACE ('1:2:3:4:6:7:8',': ','
    ')
    || ((("
    ").extract('e/e'))) x

    Try customizing the syntax above using the column in the function replace instead of my hard-coded string and pass it to the filter predicate using an in operator.

    Edited by: Chandrakaanth Ramamurthy on April 25, 2013 16:29

Maybe you are looking for

  • iTunes gift by email - glued

    I recently got an itunes email gift. The instructions tell me to click "Use now", but by clicking on this button, it redirects me to a page where I download itunes when I already have itunes downloaded with my account logged in loan to redeem my gift

  • Satellite L100-109 starts a new after memory upgrade

    How can I get my Satellite L100-109 to take the 2 GB of memory is it supposed to be able handle.It keeps starting over and over again.

  • Vista update error code 643, 490 & 8007371B

    I'm running Vista Ultimate and months get error code 643, 490 & 8007371 B and despite the exyensive the search for solutions, I can not only solve these problems to download. It seems that the absence of these downloads are inhibiting the SP1 update.

  • How to find password to put in place the system date and time

    I have a dell computer used (vista), while mine is in the shop, the date system and time is not set. How to find the password of Setup/system to set the time and date. I set the time and date using the Panel control, but within a few hours, it change

  • Connection to other buildings

    I live on a way to campaign in Ireland with 2 very nice neighbors. First House is 120 feet, second 100 feet away. I have ADSL broadband, but the phone company told the neighbors that it is not possible for them to have broadband service. Both switche