Use of Input Variables in SQL-Queries Sometimes Not Possible

Only in simple SELECT-statements the use of input variables ([%0], [%1], etc.) work without problems.
In more complex queries the use of these variables is not possible (e.g. SELECT-statements with sub-queries, sometimes when UNION is used - but I couldn't find any general rule when the problems will arise; sometimes two different queries with the same query-structure behave in different ways when these variables are used).
In these cases the query is not executed - not even the input-window to enter values into the input variables is displayed. The query stops with some strange error-messages in the status line. These error-messages doesn't have any relation to the actual query - sometimes it refers to field-names never used in the query or refers to syntax error which do not exist.
If the input variables are replaced by constant values there are no problems so there can't be any syntax errors - the only difference is the presence or absence of input variables.
Example:
  provided that the queries have a certain complexity
  SELECT ...
  FROM   ... OINV Tx ...
  WHERE  ... Tx.DocDate >= [%0] ...
  does not work,
  SELECT ...
  FROM   ... OINV Tx ...
  WHERE  ... Tx.DocDate >= '1.1.2007' ...
  works!
Does anybody have run into the same problem and now if it is a bug of SAP-BO or an error on behalf of the user? Does anybody know a way to correct the problem?
Thanks in advance!
Frank
By the way: Are there any rules where exactly input variables can be used in a query?
Only in SELECT-statements? Where there exactly?
In statements outside of SELECT?

Only SAP Partners Can access service.sap.com/notes, but I think it is possible to search in them from the customer portal as well.
Here are summary of the two notes mentioned before this:
730960:
<i>
The following query is an example for how to define variables in long
queries rather than using "Fixed Declares".
You need to use exactly the same template as follows, do not delete
"comments" from this query.
The only changes you need to do :
1. In the first and in the fifth rows you need to select the table to which you would like to relate the variable e.g. in this example, the variable is related to the table VPM1 - 'Payments to Vendors - Rows'.
2. In the fourth and in the eighth rows you need to select the field to which you would like to define the variables e.g. in this example, the variable is the field 'DueDate'.
/SELECT FROM [dbo].[VPM1] T0/
declare  @fromdate as datetime
/* WHERE */
set @fromdate = /* T0.DueDate */ '[%0]'
/SELECT FROM [dbo].[VPM1] T1/
declare  @tilldate as datetime
/* WHERE */
set @tilldate = /* T0.DueDate */ '[%1]'
select  OVPM.docnum, VPM1.dueDate,VPM1.CheckNum, VPM1.Branch,
VPM1.BankCode, VPM1.CheckSum, OVPM.CardName,
case
when OPCH.docnum is null then VPM2.docEntry
else OPCH.docnum
end as 'docnum'
from OVPM INNER join VPM1 on OVPM.docnum = VPM1.docnum
left join  VPM2 LEFT JOIN OPCH ON VPM2.DocEntry = OPCH.DocEntry
on OVPM.docnum = VPM2.docnum
where OVPM.Canceled = 'N' AND VPM1.DueDate >=@fromdate AND
VPM1.DueDate <=@tilldate
</i>
955295:
<i>
Using SAP Business One Survey Variables (parameters) in a 'Set' SQL Statement can give an error in the Query Generator.
For Example:
Declare @Num as numeric(2)
Set @Num = [%0]
Select T0.DocNum
From ORDR T0
Where DocNum = @Num
Other terms
query, SQL, parameter, survey, variable, query generator, set, declare, [%0], table, error, SAP Business One
Reason and Prerequisites
FAQ
Solution
In such cases you need to put in an SQL remark statement a reference field in the DB for the Survey Variable (any field).
For Example: (to make the above query work)
Declare @Num as numeric(2)
Set @Num = /* T0.DocNum */ [%0]
Select T0.DocNum
From ORDR T0
Where docnum = @Num
</i>

Similar Messages

  • Description input variable dependent by queries

    Hi gurus,
    I have a input variable in more queries bex (bi 7.0).
    I do to change description for only one query without to create an other custom variable and replace it where I need.
    I test in cmod with the support the second customer exit variable but when  I launch the query I don't intercept the description variable (insert in table RSZELTTXT) in step 1.
    Any suggest..
    thanks a lot
    Andrea
    Edited by: andreapistore on Feb 3, 2011 2:32 PM
    Edited by: andreapistore on Feb 3, 2011 2:44 PM

    Hi
    In the restriction of AS1 you restrict on current quarter (SAP Variable -> Current quarter  0CQUART if not found see Business content -> Query element -> variables)
    Then you do a right mouse click an set the variable offset on -3
    The same for AS2 with -2; AS3 with -1
    on AS4 you don't do an offset.
    Next to the description of the restricted key figure there is a button for Text variables (Current quarter (T) 0CQUARTT ).
    Udo

  • I need to generate a still shot from from a video. I would like to accomplish this task using a single application. If this is not possible with my MacBook Pro as purchased from Apple, please recommend which applications I can purchase.

    I need to generate a still shot from from a video I made with my camera. I would like to accomplish this task using a single application. If this is not possible with my MacBook Pro as purchased from Apple, please recommend which applications I can purchase that include this feature. Thanks in advance.

    For FREE do the following:
    When you get to othe part of the video you want a still shot from, put the video on pause. 
    Take a screen shot:  Apple>Shift>4 - which will produce a cross hair so you can manually select which part of the video you want.Check inside either your Applications or Utility folder for an app called Grab.  Will do the above with just a single click.
    If you still want to purchase software, suggest that you do a Google & MacUpdate search.  This way, you can find exactly what you want. 

  • Ready for Input Variables for Multiple Queries in I_T_VAR_RANGE

    Hi
    I created Web template which contains multiple views/queries. Two views/queries contain Ready for Input Variables. I have custeomer exit code for this Web template. I wrote code by using Ready for input variable which pass to customer exit code. But the variables which contain in two views/queries not appearing in I_T_VAR_RANGE. The two variables belongs to different views and I required those variables. please find below code:
        WHEN 'ZVBCUST'.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR1'. 
            g_soldto = w_var_range-low.
          ENDLOOP.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR2'
            g_zvbsshto = w_var_range-vnam.
            g_shipto = w_var_range-low.
          ENDLOOP.
    The above 'ZVAR1' is ready for input variable which belongs to one Query and below 'ZVAR2' is other ready for input variable which belongs to second query. I required these two at a time when customer exit variable 'ZVBCUST' executes.
    But in I_T_VAR_RANGE only one variable appears when I execute Web Template . Kindly help me in this regard
    Thanks
    luci

    Hi,
    First thing is to how you have defined your variable such as
    Customer exit or
    Replacement path or
    Manual input etc..
    If you want your variable filled through the exit select Customer Exit, then you have to look at the variable options such as Single value or range. According to your definition you have code as you defined such as wa_range-opt = 'BT' or 'EQ'.
    Next..
    In CMOD -> your project -> EXIT_SAPLRRS0_001 -> include 'ZXRSRU01' ->
    ISTEP = 1 -> before the variable pop up will be filled by the exit
    when 'your variable'
    your code
    ISTEP = 2 -> after the variable pop up i.e after running your selections, calculates the values for your variables after selection screen execution.
    when 'your varaible'
    your code
    ISTEP = 3 -> Validation purpose and message handling purpose
    when 'your variable'
    your code

  • ? in SQL Queries and not using prepared statements

    Using EclipseLink 1.1.1
    Prepared Statements are disabled
    In our production server something went wrong and one of our Read Queries started erroring. A DatabaseException was thrown and we log the "getQuery.getSQLString()" statement. We found this query in the logs:
    SELECT t1.ID, t1.NAME, t1.DESCRIPTION, t1.EXTREFID, t1.STYLESHEET, t1.DDSVNVERSION, t1.FIRSTNAME, t1.LASTNAME, t1.EMAILADDR, t1.PHONENUMBER, t1.ADDRESS, t1.ADDRESS2, t1.CITY, t1.STATE, t1.POSTALCODE, t1.COUNTRY, t1.ADMINACCTNAME, t1.HASDOCUMENTS, t1.HASTIMEDNOTIFICATIONS, t1.STATUS, t1.ENTRYDATE, t1.EVALEXPDATE, t1.LASTREMINDDATE, t1.FULLUSERS, t1.LIMUSERS, t1.REQUSERS, t1.ISENTERPRISE, t1.EXPDATE, t1.ISDISABLED, t1.DISABLEDDATE, t1.NEEDLICENSEAGREEMENT, t1.ISWARNINGDISABLED, t1.LOCALE, t1.TIMEZONE, t1.CURRENCY, t1.DOMAIN, t1.DOCUMENTSIZE, t1.EXTRADOCUMENTSTORAGE, t1.ONDEMANDOPTIONS, t1.SSOTYPE, t1.RESELLERID, t1.ACCOUNTREPID, t1.LASTUSAGEREPORTDATE, t1.NEXTUSAGEREPORTDATE, t1.USAGEREPORTATTEMPTS FROM T_SSOOPTIONS t0, T_CUSTOMERS t1 WHERE *((((t0.SSOENABLED = ?) AND (t1.SSOTYPE IN (?, ?))) AND (UPPER(t1.DOMAIN) = ?)) AND (t0.CUSTOMERID = t1.ID))*
    Notice the values weren't entered into the where clause. We had to bounce the application to fix the problem. I've never seen this before. I've added more debugging statements to the code - so if this happens again in the future I'll have more information to report on. In the mean time I'm wondering if anyone else has every seen a problem of this nature.

    Database error due to invalid SQL statement.
    I don't have a stack, we were catching the exception and not printing the stack :(
    Like I mentioned in my first post, I added more debugging code (e.printStackTrace()). I understand this is hard to track down without more information. I was just hoping you guys had seen something like this before and had any insight. Like I mentioned before: this is on our production server. I've never seen this type of error before. That particular server (we run in a cluster mode) had been up for several days and then started generating that error. IT bounced the node and everything went back to normal. We have been using toplink for about 5 years now and have never seen this problem, until August 3rd 2009. The only thing that has changed recently is our migration from toplink 10 to EclipseLink. I was wondering if anyone knows if anything had changed in EclipseLink/toplink 11 with the generation of SQL queries.
    I'll keep looking. There is more debugging code in there now. Since the error was "Database error due to invalid SQL statement" this implies the SQL was generated, exited that part of the code and was sent to the db where it failed. I'm afraid the printStackTrace won't help if this error happens again.

  • How to use database control to execute sql queries which change at run time

    Hi all,
    I need to execute sql queries using database controls , where the sql changes
    at run time
    based on some condition. For eg. based on the condition , I can add some where
    condition.
    Eg. sql = select id,name from emp where id = ?.
    based on some condition , I can add the following condition .
    and location = ?.
    Have anybody had this kind of situation.
    thanks,
    sathish

    From the perspective of the database control, you've got two options:
    1) use the sql: keyword to do parameter substitution. Your observation
    about {foo} style sbustitution is correct -- this is like using a
    PreparedStatement. To do substitution into the rest of the SQL
    statement, you can use the {sql: foo} substitution syntax which was
    undocumented in GA but is documented in SP2. Then, you can build up
    the filter clause String yourself in a JPF / JWS / etc and pass it into
    the DB control.
    For example:
    * @jc:sql statement="select * from product {sql: filter}"
    public Product[] getProducts(String filter) throws SQLException;
    This will substitute the String filter directly into the statement that
    is executed. The filter string could be null, "", "WHERE ID=12345", etc.
    2) you can use the DatabaseFilter object to build up a set of custom
    sorts and filters and pass that object into the DB control method.
    There have been other posts here about doing this, look for the subject
    "DatabaseFilter example".
    Hope that helps...
    Eddie
    Dan Hayes wrote:
    "Sathish Venkatesan" <[email protected]> wrote:
    Hi Maruthi,
    The parameter substituion , I guess is used like setting the values for
    prepared
    statements.
    What I'm trying to do , is change the sql at run time based on some condition.
    For example ,
    consider the following query :
    select col1,col2 from table t where t.col3 > 1
    At run time , based on some condition , I need to add one more and condition.
    i.e. select col1,col2 from table t where t.col3 > 1 and t.col4 < 10.
    This MAY not address your issue but if you are trying to add "optional" parameters
    you may try including ALL the possible parameters in the SQL but send in null
    for those params that you don't want to filter on in any particular case. Then,
    if you word your query
    as follows:
    select col1, col2 from table t where t.col3 > 1 and (t.col4 = {col4param} or
    {col4param} is null) and (t.col5 = {col5param} or {col5param} is null) ...
    you will get "dynamic" filters. In other words, col4 and col5 will only be
    filtered if you send in non-null parameters for those arguments.
    I have not tried this in a WL Workshop database control but I've used
    this strategy dozens of times in stored procedures or jdbc prepared statements.
    Good luck,
    Dan

  • IMG - translate sometimes not possible?

    Hello,
    Sometimes, the translation option isn't enabled for certain tables. For example, educational certificates and education establishment types. These tables do have a language field, but it seems like it's not possible to translate entries.
    How come this happens? And is it actually possible to translate the entries in these tables?
    Thanks

    Out of curiosity I tried the URL with the off-line browser "curl" and I this answer came:
    <H1>Forbidden</h1>Your client does not have permission to get URL <code>/search</code> from this server.If I set the browser (agent) with the -A option:
    curl -A "Mozilla/4.0"the German language search page came as accepted. Long may 'curl' live!
    NAME
           curl - transfer a URL
    SYNOPSIS
           curl [options] [URL...]
    DESCRIPTION
    curl is a client to get documents/files from or send documents to a server, using any of the supported protocols (HTTP, HTTPS, FTP, GOPHER, DICT, TELNET, LDAP or FILE).
    The command is designed to work without user interaction or  any  kind of interactivity.

  • Using coldfusion variables in sql queries, some unexpected results.

    I've come across a somewhat perplexing problem. I'd be
    interested to see if the following works for other people:
    <cfset sql_var = "'something','something else'">
    <cfquery name="test" datasource="db">
    select id from table where somename in (#sql_var#)
    </cfquery>
    As it is this produces a sql error - coldfusion tries to run
    the query as
    select id from table where somename in
    (''something'',''something else'')
    That's with double single quotes around each of the strings,
    even though this wasn't specified in the variable sql_var.
    So I tried this:
    <cfset sql_var = "something','something else">
    <cfquery name="test" datasource="db">
    select id from table where somename in ('#sql_var#')
    </cfquery>
    Where variable sql_var only has single quotes in between the
    two strings, and I've added single quotes to the select statement.
    This produces no error, but no results either. The sql being run is
    select id from table where somename in
    ('something','something else')
    Which is exactly as it should be. I copy and paste the exact
    same query into the database and it produces results - but when
    coldfusion runs the query it doesn't. Running the query with no
    quotes produces a sql error, which is what I wopuld expect.
    Which leaves me somewhat at a loss. Anyone got any ideas?
    Running CF 6.1 (I think) using a MySQL database, if that
    makes any difference to anything.

    That's with double single quotes around each of the strings,
    even though this wasn't specified in the variable sql_var.
    In Coldfusion, 'something' and "something" are the same
    thing. You should expect that Coldfusion could switch from one to
    the other.
    Where variable sql_var only has single quotes in between the two
    strings, and I've added single quotes to the select statement. This
    produces no error, but no results either. The sql being run is
    select id from table where somename in
    ('something','something else')
    I don't think that is the query being run. Before passing the
    string, "something','something else", to the query Coldfusion will
    automatically escape the single-quotes on either side of the comma.
    That is the default behaviour. The resulting query is
    select id from table where somename in
    ('something'',''something else')
    To avoid these complications, use the function
    PreserveSingleQuotes(). Thus,
    <cfset sql_var = "'something','something else'">
    <cfquery name="test" datasource="db">
    select id from table where somename in
    (#preservesinglequotes(sql_var)#)
    </cfquery>

  • IScript problem - Cannot use an input in a sql statement

    I get the input from an input box and it is correct
    &param = %Request.GetParameter("Dept");
    I try to use it in a sql statement lke this and nothing displays even though it its entered correctly and the value exists in the table
    Local SQL &usersCursor = CreateSQL("SELECT EMPLID, BIRTHDATE, NAME FROM PS_EMPLOYEES WHERE DEPTNAME_ABBRV = '&param'");
    If I leave out the single quotes around and do it like this &param then it errors out
    Local SQL &usersCursor = CreateSQL("SELECT EMPLID, BIRTHDATE, NAME FROM PS_EMPLOYEES WHERE DEPTNAME_ABBRV = &param");
    I need help structuring this correctly
    Thanks,
    Allen Cunningham

    Hi,
    CreateSQL does not execute the sql statement, it just creates an SQL object, which you have to execute.
    Something like this:
    &param = %Request.GetParameter("Dept");
    Local SQL &usersCursor = CreateSQL("SELECT EMPLID, BIRTHDATE, NAME FROM PS_EMPLOYEES WHERE DEPTNAME_ABBRV = :1", &param);
    While usersCursor.Fetch(&Emplid, &Birthdate, &Name)
    /* do processing*/
    End-While;

  • Customer exit text variables form BW queries are not supported in Webi

    HI,
    so I need to  need to modify the headings manually in Web Intelligence.
    Please help me I'm looking for a formular that give me the following result:
    I'm using the next formular:
    =UserResponse([L01 Calendar/month];"CalendarMonth")
    The result is JUN2010.
    Now I want to change this result with a formular in Jun2009 (12 months ago)
    Can anyone help me how to build this formular?
    thanks Peter
    Edited by: P. Teussink on Oct 12, 2010 4:51 PM

    The question really is, what are you trying to achieve?
    If you only want to arrive at the string "Jun2009" based on the string "JUN2010"
    you can do this like this;
    =InitCap(Left(UserResponse("Calender Month");3))+FormatNumber(ToNumber(Right(UserResponse("Calender Month");4)-1);"0")
    Also if you have all month of last year in the report you can use a where logic based on the same principle to only show what the label says.
    However if you want to select this calendar month based on the month inputted by the user, then you will have to create a BEX variable that uses the user exit coding of the input ready calender month to select that month one year ago, like stated above.
    Good luck,
    Marianne

  • Why does SQL Developer sometimes not allow me to "Disconnect"?

    Sometimes when I'm ready to close SQL Developer, I try to get out gracefully, but the "Disconnect" option for the only connection I have open is greyed out. Why? The only option I know then is to close SQL Developer by clicking the "x" in the upper, right corner.
    My version of SQL Developer is a bit old: I have SQL Developer 2.1.0.63. We have an Oracle11.1.0.7 database. I have a 64-bit Windows7 desktop. I think my Java version is also a bit old, but it seems to be compatible with the EBS R12.0.6 application that I need to support. I'm not a Java expert. If I go to a C:\ prompt, and type: "java -version", It returns: "1.4.2_04".

    Actually, I think the link Alessandro posted is helpful. I cannot reproduce the behavior on Win XP, but can on Linux (somewhat). That is, Properties gets greyed out at times, but not Disconnect or Apply Filter. Retrying the right-click resolves the problem, as he notes.
    So I assume my point (1) would be more nearly correct if restated as "Bug or timing issue".
    As for (3), I really cannot give a good example. If I open a Tool menu item like Monitor SQL or Monitor Sessions on, say, the SYSTEM user, the Disconnect option is not greyed out and if used will close all the open windows for that connection. If I run Debug on a package/procedure/function, Disconnect also remains enabled. Clicking on it produces a "Cannot Disconnect" dialog warning with this text: "The database connection cannot be closed while an active debugging session exists". Perhaps I'm mistaken entirely, or just confused after seeing that behavior on some older version of SQL Developer
    -Gary

  • Why SQL queries are not saving in agentry editor for first publish?

    Hello Experts,
         In the process of developing an agentry application i have defined SQL steps and saved in agentry editor with out any errors .When i have published definations for first time it is displaying error 'Invalid object some where' in back end SQL log file ,when i have seen in editor some times the query is not saved,some times even it is defined then also the same  error.So i have copied the steps and saved again.Now i have done a publish,it is working fine.This is happening only when i implement exchange mechanism(Showing error in ATE getfetch error).But with out exchange mechanism  it is working fine.Is this related to the installation of editor plig-in is not correct?. I have done preferences setting in my workspace correctly.
              Help me in this regared.Thanks in advance.
    Thanks & Regard,
    Sravanthi Polu

    Sravanthi,
    For your error: displaying error 'Invalid object some where' in back end SQL log file.. This is happening only when i implement exchange mechanism(Showing error in ATE getfetch error)
    Two suggestions (My best suggestion is item 2 below - I think that is where you have the error)
    Item 1: Are you using the right encoding? In your Eclipse Editor under the main menu Windows - Preference -> General -> Workspace. What is your Text file encoding set to? Cp1252? Try setting it to UTF-16.
    There is a tutorial about this in:
    https://service.sap.com/sap/bc/bsp/spn/esa_redirect/index.htm?gotocourse=X&courseid=70246375 (Enterprise Academy classes). The course is really a simple < 5 minutes discussion on different types of encoding and why they exist and how to change the Eclipse to what you wanted.  SQL is normally done in UTF-16 for 16 bit.
    I am assuming that the encoding could be wrong.
    Item 2: Another thing that could be wrong is how you specify the SDML (Flunky code). 
    In your SQL Script: Anything that has the "<<" and ">>" open and close marker is an SDML (Data Markup Language) and needs to be pre-populated before the Agentry Server submits your SQL query to the backend. In essence, this is use to populate the SQL query with predefine information like your userID or location and when the SQL gets process it will populate the script with the correct information.
    So if you are not properly using the flunky (ex: <<object.address>> where address is not a key ID in a Fetch step (Check manual for usage of SDML AgentryLanguageReference_6.0.0.0.pdf) then you may get invalid object.
    When you do a SQL "Fetch" Client Exchange and Server Exchange Steps, you can select a few options:
    For this discussion let us talk about these 2 items below.
    1. Run Attribute: Run One Time
    or
    2. Run Attribute: Run Once Per Object.
    When you select Run Once Per Object the only available Flunky or SDML commands you have are:
    object.keyPropertyName
    lastUpdate
    fetch.messageNumber
    The 3 above are your only options
    If you try to do something like object.property1 where property1 is part of your object properties then it will not work for Run Once Per Object.
    It may work for Run One time as fetch.propertyname.
    From your symptoms where you are complaining about an issue in exchange steps, your error is a typo or a misused or a misunderstanding of how fetches and SDML works (documented in page 398 or 399 of AgentryLanguageReference_6.0.0.0.pdf).
    See pictures just in case you don't have access to that pdf file (The picture below simply proves what SDML options is available for your Fetch Client Exchange Step).
    Hope this helps.
    Regards,
    Mark Pe
    SAP Senior Product Support Engineer

  • Queryeditor using fields more than once in where clause not possible?

    I have to create a select query with a WHERE clause using a field multiple times.
    I can't get this to work. For example:
    SELECT ALL
      EMSDTALIB.EMSPPA.PAIDNR,
      EMSDTALIB.EMSPPA.PANAAM,
      EMSDTALIB.EMSPPA.PAVLTR,
      EMSDTALIB.EMSPPA.PATITL,
      EMSDTALIB.EMSPPA.PAADRS,
      EMSDTALIB.EMSPPA.PAHSNR,
      EMSDTALIB.EMSPPA.PAHSNT,
      EMSDTALIB.EMSPPA.PAPCA1
    FROM EMSDTALIB.EMSPPA
    WHERE EMSDTALIB.EMSPPA.PABEDR=1 AND EMSDTALIB.EMSPPA.PADTUD=0 AND
      (EMSDTALIB.EMSPPA.PADVBD='001' OR EMSDTALIB.EMSPPA.PADVBD='003' OR EMSDTALIB.EMSPPA.PADVBD='006')How do I get this to work?
    Regards,
    Roland

    Hi Roland, Luca, ICON_SS,
    I just tried similar queries using the latest release bits and it works fine.
    My Queries that worked fine are :
    SELECT ALL DASUSR1.PERSON.PERSONID, DASUSR1.PERSON.NAME, DASUSR1.PERSON.JOBTITLE, DASUSR1.PERSON.FREQUENTFLYER
    FROM DASUSR1.PERSON
    WHERE ( DASUSR1.PERSON.NAME='Able, Tony' OR NAME='Black, John' )
    SELECT ALL DASUSR1.PERSON.PERSONID, DASUSR1.PERSON.NAME, DASUSR1.PERSON.JOBTITLE, DASUSR1.PERSON.FREQUENTFLYER
    FROM DASUSR1.PERSON
    WHERE ( DASUSR1.PERSON.PERSONID=1 OR PERSONID=2 OR PERSONID=3)
    I would suggest you to Download & Install latest Creator bits released 9/27/2004, if not already done.
    Appreciate your valuable feedback,
    Sakthi

  • [JS] Simple question: Is importing XML from variable of XML datatype still not possible?

    Hi,
    Am I correct assuming that there is still no way to import XML into an XML element, directly from a variable of data-type XML?
    Will I still need to save data to disk, just to be able get it into the XML structure?
    Thanks,
    Andreas

    I totally agree. I look for this improvement once in a while, when I do changes and improvements in my code. I hoped I just hadn't noticed some other way to do it "in memory". It seems very unnecessary with this disk access.
    I filed a feature request at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.
    Perhaps more people wish for the same... and evntually the XML import functions will be able to handle an XML datatype object as argument.
    Best regards,
    Andreas

  • URL-ing sometimes not possible

    If I access the following URL
    URL url = new URL( "http://www.google.de/search" );
    BufferedReader in = new BufferedReader(
    new InputStreamReader(url.openStream()));
    ... reading via in.readLine()
    I get a FileNotFoundException. If I access
    the same site via a browser (NS 7.2) or if I access
    only "http://www.google.de" it works quite well.
    Why doen't it work. What is the difference sending the URL with a browser, and what is the difference to the other URL?
    Regards,
    Wolfgang

    Out of curiosity I tried the URL with the off-line browser "curl" and I this answer came:
    <H1>Forbidden</h1>Your client does not have permission to get URL <code>/search</code> from this server.If I set the browser (agent) with the -A option:
    curl -A "Mozilla/4.0"the German language search page came as accepted. Long may 'curl' live!
    NAME
           curl - transfer a URL
    SYNOPSIS
           curl [options] [URL...]
    DESCRIPTION
    curl is a client to get documents/files from or send documents to a server, using any of the supported protocols (HTTP, HTTPS, FTP, GOPHER, DICT, TELNET, LDAP or FILE).
    The command is designed to work without user interaction or  any  kind of interactivity.

Maybe you are looking for

  • Transfer an Email from one account to another and ...

    Dear Team, I joined BT recently this month and I have a btinternet Email for more than 5 years when i was living with my brother. Now I want to tranfer my email from my brothers account to my account and make it my primary email. I called 3 times the

  • How do I apply a preset to multiple images at once?

    I'm almost embarassed to ask this, because it seems so simple. But I'm new to LR and need some help. I want to apply a preset (exmample, a preset that resembles film) to multiple images at once. (similar to batch editing in Photoshop) but I want want

  • Cannot export a dump file

    Dear all experts, I need your helps please. We have oracle enterprise 9i2 installed and oracle fail safe installed on the server. We run cluster. All of a sudden, i ran into a problem to create a dump file for backup. at the command prompt i type in:

  • IOS 7 Where's the unlock sound gone?

    Anyone know where the unlock sound has gone in iOS7? Is it a mistake or deliberately removed in this version?

  • Tree view clears after application switch

    Hi All, I am facing a problem with tree view. I have a dialog with tree view and I select an item. With dialog open I switch to some other application. When I switch back to InDesign, I see that tree view is empty. What could be the reason? Thanks, P