Variable Syntax issue

Hi Folks,
I am trying to build a file delete function into my page. When I hard code the path values it works fine. When I try to pass in values it does not work. Here is the code:
<c:set var="Dfolder_name" value="${sessionScope.Doc_Folder}"/>
<c:set var="Dfile_name" value="${getRecord.rows[0].File_Name}"/>
<%
String DfolderName = (String)session.getValue("Dfolder_name");
String DfileName = (String)session.getValue("Dfile_name");
File myFile = new File("D:\\Sun\\WebServer6.1\\https-EBIZ_DEV\\webapps\\"+DfolderName+'\\'+DfileName);
myFile.delete();
%>I figure part of my problem is that I am blending JSTL and Scriptlet code. Anyway, the code runs error free but does not delete the file. I suspect the path is nort being built properly. When I force an error the DfolderName and DfileName variable calls do not conver over to the variable values.
I could use a hand! Thanks!!

You suspect those things? So do I. But if it were me, I would output that alleged file name to my page so I could see what it was.

Similar Messages

  • Dynamic SQL from within DML - merging syntax issue #2

    Further to my previous thread on a SQL - DML merging syntax issue, I have another problem with multiple conditions in the WHERE-clause:
    vrb _retval decimal
    vrb _val1 text
    vrb _val2 text
    _val1 = 'value1'
    _val2 = 'value2'
    SQL SELECT DIM1_ATTR1 FROM MYSCHEMA.DIM1_DIM WHERE COL1 = :_val1, AND COL2 = :_val2, INTO :_retval
    The above SQL will return NA. If I use the text literals instead of the OLAP variables, the query just runs fine. Also, with a single condition (on COL1 only) the query returns the expected value.
    A note in the help states that OLAP DML objects should clearly be sperated from the rest of the SQL but does not say how. I am using a colon before and a comma after as without them the line would not compile. I could not find any example that would use multiple conditions in the WHERE-clause however the help text indicates that it is possible.
    Please help me, how.
    Regards,
    Csaba
    Windows, Oracle10gRel2 Ver. 10.2.0.1.0 eversion: 84090

    It does work, although I applied the finishing touch by removing the commas as well!
    Thanks a lot! Good job!
    Could you please have a look at issue #1 too? :-)
    Regards,
    Csaba

  • Documaker 12.1 XPath Syntax Issue

    We are moving to Documaker Studio 12.1 from Docucreate 11.0. So, I am importing few forms into 12.1 and doing test runs. I ran into a XPath syntax issue. We use XPath manual triggers to trigger forms and sections.
    In 11.0, the following trigger (use as Search Mask (True/False) in Manual Triggers) works perfectly fine. But it doesn't work in 12.1
    *!/Acord/Bills/Form/[FormNumber='U61']FormNumber*
    In 12.1, I have to remove the "/" present before "[" to make it work - as shown below.
    *!/Acord/Bills/Form[FormNumber='U61']FormNumber*
    Is there a way we can make the old syntax work with 12.1 as well? It would save us from changing thousands of Form and Section Triggers?
    Thank you,
    SGov.

    I suspect the short answer is No. The initial xPath syntax appears invalid as you would not define a slash between the node and the attribute that belongs to the node. The fact that it somehow succeeded was an anomaly that must have been corrected.

  • 'How to..use reporting variables in BPS'  syntax issue

    Hi,
    I am implementing the white paper 'How to...use reporting variables in BW-BPS' and I am getting a syntax error in the include YBW_BPS_VAR_READ. The error indicates 'Statement is not accessible' for my line:
    SELECT SINGLE * FROM ybw_bps_var_map
    ybw_bps_var_map being my transparent table as described in the white paper.
    I have never seen such a syntax error, has anyone had the same issue? My code is the one in the white paper.
    Thanks for any help.
    David

    Hi David,
    I have the coding up and running. I have not seen this error before and don't know how to resolve it. If you cut&paste it from the PDF, then maybe some special characters got pasted into the ABAP editor. Try to delete the line and type it in manually.
    Regards
    Marc
    SAP NetWeaver RIG

  • BI Variable Computation Issue: Division

    In an RTF template, I attempted to divide one variable by another. This is the code:
    <?xdoxslt:set_variable($_XDOCTX, ’Temp1’, 50)?>
    <?xdoxslt:set_variable($_XDOCTX, ’Temp2’,25)?>
    <?xdoxslt:set_variable($_XDOCTX, ’Temp3’,0)?>
    <?xdoxslt:set_variable($_XDOCTX,’Temp3’,xdoxslt:get_variable($_XDOCTX,’Temp1’)/xdoxslt:get_variable($_XDOCTX,’Temp2’))?>
    When I attempt to preview the document I get a plethora of info which culminates with the following:
    Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: 'xdoxslt:set_variable($_XDOCTX,'Temp3',xdoxslt:get_variable($_XDOCTX,'Temp1')/xdoxslt:get_variable($_XDOCTX,'Temp2'))'.
    I changed the last line to isolate the issue:
    <?xdoxslt:set_variable($_XDOCTX,’Temp3’,xdoxslt:get_variable($_XDOCTX,’Temp1’)/25)?>
    Same error!
    I isolated further:
    <?xdoxslt:set_variable($_XDOCTX,’Temp3’,50/25)?>
    Which results in:
    Caused by: oracle.xdo.parser.v2.XPathException: Error in extension function arguments.
    Then:
    <?xdoxslt:set_variable($_XDOCTX,’Temp3’,50+25)?>
    Works fine.
    What is the proper way to divide one variable by another?
    Edited by: Steve Davies on Apr 19, 2010 6:42 AM

    Hi,
    I want to find IF-ELSE ELSE-IF or choose-when otherwise-when syntax while working with variables, tried several ways like
    <?xdofx:if 1000 > 100 then
    xdoxslt:set_variable($_XDOCTX, ’pjan1’,1000)
    else if 10 < 1 then
    xdoxslt:set_variable($_XDOCTX, ’pjan1’,10)
    else
    xdoxslt:set_variable($_XDOCTX, ’pjan1’,'none')
    end if?>
    Also
    <?choose:?>
    <?When: ELEMENT1=1?>
    <?xdoxslt:set_variable($_XDOCTX, ’pjan1’,100)?>
    <?end when?>
    <?otherwise:?>
    <?When:ELEMENT2=5?>
    <?xdoxslt:set_variable($_XDOCTX, ’pjan2’,90)?>
    <?end when?>
    <?end otherwise?>
    <?end choose:?>
    but neither worked, looking for solution that works with variables
    Please help
    Thanks
    Edited by: user9014312 on Sep 14, 2010 8:48 AM

  • BI Variable authorization issue

    Hello Experts,
    Please help me with the below issue. I have implemented Variable authorizations as below.
    1)I have marked Cost Center and Profit Center info objects as Auth relevant.
    2) Created a global Variables for CC and PC with processing by authorization & user exit.
    3) Created analysis authorization for the info object 0cost center and Profit Center and added value as $ ZCOST.
    4) Created the include program ZSECTEST in the user exit to check the Variables.
    I have created only one analysis authorization with both CC and PC fields and restricted to Variables.
    Scenario 1: If the Query that was built on the Cube has only CC data authorizations are working fine by picking the values from the table. u2013 Working
    Scenario 2 : I have a query that was created on MP which has cube A with CC and cube B with PC data.
    (system checks if the user has access both info objects since both were auth relevant fields)
    When user ran the query u2013 custom code checks the table and gets the CC and PC values to the query variable screen.
    Issue: If the query has both CC and PC data for the given date it was showing results fine.
    If the query has only CC data and no PC data then query is giving message saying no data available.
    My requirement is even there is not PC data for that date I want to display the CC data.
    Thanks in Advance.
    Thanks,
    Kumar.

    Hello Sandipan,
    Thanks for the quick response.  Primary key has been already defined in the table.  Issue is I have only one analysis authorization created with fileds  CC and PC restrcited to variables VAR1 and VAR2 respectively.
    When I execute the query in the variable selection screen values are coming fine as below from the custom table. (works)
    Variable selection screen :                   
    Cost Center   -    1,2,3,4
    Profit Center   -     A,S,D,F
    Date               -   10/2010
    In the above example if the query has only CC data for that date - I get error no data available because system is fetching for the  combination of CC 1,2,3,4 and PC A,S,D,F .  I guess some aggregation auth are missing.
    When I execute the same query with SAP_ALL and BI_ALL I get results with only CC - because PC data on this query was not available for that date.
    My requirement is  even if the PC data was not avaiable for that date I want to display all the CC realted  data.
    Thanks,
    Kumar.

  • Variable screen issue in BEX !!

    Hi Gurus,
    Problem Description - When any query is opened through u2018Web BEx Analyzeru2019->u2019New Analysisu2019 button in portal , variable screen is shown and report is getting executed. Again, if we open same query from u2018Web BEx Analyzeru2019->u2019New Analysisu2019 (Donu2019t close the session use same session), Variable screen will NOT be shown at Second time. Directly, Query will be executed with previous Variable values & result will be shown.
    I have modified following parameters but it did not take any effect to the variable screen problem.
    VARIABLE_SCREEN, MELT_VARIABLES, VARIABLES_CLEAR, USE_PERSONALIZATION
    100% points are assigned
    kindly do the needy
    Sherwin
    Edited by: sherwin paul on Jun 24, 2008 1:13 PM

    Paul,
    I have experienced similar issues with the behaviour of variable selection screens e.g. variable screen appears in the Bex Excel version but not the web version. One of our consultants has suggested that the behaviour depends on whether the variables are optional or mandatory, something I've yet to confirm.
    Regards,
    PP

  • Variable substitution issue

    Hi all,
    I've a select against a view (V_XXX) which performs drammaticaly different if run in this two ways:
    SQL> SELECT COUNT(*) FROM METOD.V_XXX
    2 WHERE MATRICOLA LIKE '%'||LTRIM('310491A')||'%';
    --> 50 msecs.
    SQL> VARIABLE var VARCHAR2(10);
    SQL> EXECUTE :var:='310491A';
    SQL> SELECT COUNT(*) FROM METOD.V_XXX
    2 WHERE MATRICOLA LIKE '%'||LTRIM(:var)||'%';
    --> 17516 msecs.
    Explain plain shows that in second case all the joins present inside the wiev are parsed by oracle...whilst it doesn't happen using the direct select.
    Thanks a lot for help...
    Marco

    Optimizer is cost based...
    In any case the issue seems to be linked to the presence of db_links.
    The issue happens when my select runs against a view (on my 'local' instance) built against three synonyms, all of them are created against remote db objects through db_links.
    Building the same view directly inside the remote db and creating a synonym (with a db_link) on my istance, my select has the same performance using a constant or a variable in the where clause (so no issue!).
    If someone can explain, what is happening...
    Thanks, Marco

  • Variable entry issue when the query is executed on the WEB

    Hi,
           When I execute a 2004S query on the WEB,In the variable entry screen , even if I specify  for example  'A'  for a variable ,  the 'A' is completly ignored and it returns all the values.So there is a problem with '*'.
            If I execute the same query in the Analyser, '*' is considered while returning the results.
            Anyone having similar issue.
            Thanks in advance.

    Hi siva,
    Its a program error. Please apply the advanced correction from SAP note <a href="https://service.sap.com/sap/support/notes/1062214">1062214</a>
    Assign points if helpful,
    Regards, Uday

  • BEx  Variable input Issue

    Hi everyone,
                       I have an issue with Input Parameters in BEx Variable Screen. For Example, I have included Customer Name in the Variable Screen. Then , the user says, he does not remember the complete customer name. There will be thousands of names. Instead he remembers only a few Initial Characters. For example, if the  customer Name is ZSAMSUNG. He only remembers ZS out of the whole name.
    In that case, he wants to enter ZS* in the Variable Selection Screen for Customer Name. But this is not working in BEx. It says invalid Parameters. I have created a Characteristic variable with Manual Entry.
    Currently, I am working on BI7.0, Support Package 11.
    Please provide your valuable inputs.
    1) Is it possible create a Customer Exit Variable for the same with some logic.
    Regards,
    Samiir

    Hi Samir
    Sry, but I think that this functionallity is allredy usable in Bex.
    When the variable-screen appears, the customer has to press F4 for help.
    Another screen pos up.
    -> in that screen, in the FIRST ROW, the customer can seach by therms:
       in the first column:  KEYS
       secound column:  Text
       other columns:  attributes if available
    he also has the possibility to search with *
      like  ZS*  for ZSAMSUNG
    try out, it works 
    reagrds
    Tom

  • Substitution Variable update issue

    Hi,
    I am using Essbase 9.2.0.3. I have noticed a problem afetr updating Substitution Variable.
    The calculation script which uses the Substitution Variable works well after updating the variable.
    But the Member formula doesn't work, unless we restart the application .The member formula is in Period dimension to calculate QTD/YTD.
    Formula is: QTD=@MEMBER(@CONCATENATE (QTD,&ActEnd));
    Have anyone come across this? why the outline formula is not taking the updated value fronm Substitution Variable?
    Thanks,
    Tarini

    Hi,
    I reported this issue to the support and it was classified as: Bug 13072601: USING SUBSTITUTION VARIABLES IN FORMULAS OF OUTLINE MEMBERS.
    But as support didn't see this behavior as unusual or as a bug I went deeper and requested for enhancement. I asked them if it is possible to introduce a config setting which would switch on/off automatic updates of subs vars in outline as well as in partitions.
    Status is: Approved for Future Release, but there is no fixed version available yet.
    The ER# is: 13107378: AN ESSBASE CONFIG SETTING WHICH MAY SWITCH ON/OFF AUTOMATIC UPDATES OF SUBSVARIA
    So anyone interested can requested them for status.
    Regards,
    Adam

  • Variable Privacy Issue

    This is my first post so hi to everyone.
    In my program I need to keep the value in some variables when it leaves that class. For example I am running a menu class which gives options. When an option is selected I go to that class and run it. However the values put in the variable need to be stored and kept so that they can be added to in other classes from the menu.
    To do this I have done:
         private static String wordArray[];
         private static int arrayLength;
    which allows me to keep the values and add to them.
    My question is will this be a privacy issue? Or are they any other issues that will make my program a security risk from doing this?
    If so does anyone have any suggestions about others ways to do this? Thanks alot.
    P.S: The values only need to be kept for that run of the program. Not stored after the program is quit.

    For offsets instead of creating 12 different selection you should give range.
    e.g. variable-12 to variable
    Restrict -> value ranges -> between
    Then select same variable in both from and to input boxes.
    Once you transfer it to right and select the offset, it will ask offset two times.
    One for - from variable
    next for - to variable
    Select -12 and 0 respectively.
    It should give you prior 12 period offset.
    It will increment/decrement according to values of master data. So if you have master data fro 13/2008 then only it will go to that period, otherwise 01/2009 will be selected.
    Abhijeet

  • Variable selection issue

    can someone plzzz help me regarding the following issue..........
      how to limit set of master data values in variable selection during query execution?
    cheers
      hari.

    Hi,
    check this link
    it's for increasing the limit you can use it to decrease the limit.
    BEX - number of displayed values
    Thanks

  • Select SQL statement with variable syntax error

    Hi All,
    I am running a Web Application with a java bean to connect to a mysql database. i have compiled a test .java file whcih works using the same statement that has a problem in my web application. Taking the statement out of the Web App makes it work so it must be this stetment:
    String SQLStatement = "SELECT * FROM MASTER WHERE USERNAME LIKE '"+data+"' ";
    This works fine in testing a separate java file, but it does not compile when running ant build to compile the same line of code for my Web App.
    I have tried many possibilities of changing the syntax to no avail, its a puzzle!
    Many thanks for any swift reply.
    ChrisG

    prepare:
    copy:
    build:
    [javac] Compiling 1 source file to C:\jwsdp-1.3\garland\build\WEB-INF\classe
    s
    [javac] C:\jwsdp-1.3\garland\src\LogonBean.java:20: cannot resolve symbol
    [javac] symbol : variable data
    [javac] location: class logonApp.LogonBean
    [javac] String SQLState2 = "SELECT PASSWORD FROM MASTER WHERE PASSWORD L
    IKE '"+data+"' ";
    [javac]
    ^
    [javac] C:\jwsdp-1.3\garland\src\LogonBean.java:79: cannot resolve symbol
    [javac] symbol : variable SQLState1
    [javac] location: class logonApp.LogonBean
    [javac] rs = stmt.executeQuery(SQLState1);
    [javac] ^
    [javac] 2 errors
    Thats the compiler error, but it still works on a normal java file. ill try a prepared statement in the mean time.
    ChrisG

  • BW-BPS Attribute variable selections issues

    Hi Marc / Gerd,
    I am using an attribute variable on material that has a lot of filters for values on material group, material type, EANUPC, and even a date such as created date / product start date (reference 0date). 
    The function /layout has issues if the selection has no material choosen and I know we needed to create exit variables on a previous project (someone else did the ABAP and I set out the spec) to do material group / category selection based on material attribute and the material group variable. 
    Any other good options or work arounds since we cannot use variable in attribute variables?
    Thanks,
    Mary

    Hi Marc,
    1. I checked the layout configuration and the config was transported okay to QA so the field that I want to input does not have compariable checked and it should be open for input.
    2. there are no data slices yet.
    3. Validation check - that might be an issue.  The BW loads originally had some master data not loaded in BWQ and have some mapping not occuring as it should and I have been asking for them for the last 2 load cycles.  I was told all missing master data have been since loaded and I need to ask for a load of the transaction again but the BW person is waiting for some missing mapping.  Also we had to document enabled some infoobjects. 
    But the category we are using for the integration testing should have all the master data correctly set up since I checked on it end of last week.  Do I have to set up some system settings for the document server? Do I need to force it to regenerate after some transports?
    The master data we used for the 2 systems are different since the DEV has very little master data and some were manually maintained or uploaded via flat files.  The BW QA has a lot of master data since R/3 QA has been refreshed recently. 
    Thanks,
    Mary

Maybe you are looking for

  • I would like to change my Short Name. But no edit menu in the directory to choose root.

    Like the title says, pretty self explanatory. I bought this MacBook from a friend of mine and her name is still on the Home Icon (short name). I get the idea of how to change it but once I get to the Directory Utility to enable the Root User, I find

  • Papi call  of processGetInstances fail

    Hi al Gurus, i have wls 10 and albpm BEA AquaLogic(TM) BPM Enterprise for Application Server Versione: 6.0.2 Build: #88812 on host: Linux anime 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux Process: /CatalogueMaintainabi

  • Multiple backend scenario

    HI, could anyone send me the notes 640570 and 853430 as pdf because i have no access to those notes. Thanks. Regards, Thomas Strehle

  • Cubes structure in obiee

    Hi Gurus, Can cube structure supported by obiee(fullfledge support) as compare to rdbms how it supports vary from hyperion to obiee Thanks

  • Skype customer support e-mail address

    I find no e-mail address to communicate with SKYPE for a serious matter. Does ANYBODY know their address ? Better said:  DOES IT EXIST, or only SKYPE can e-mail us with a "no anser" address ? Is this to FORCE customers to use the phone AND leave no t