A problem with a parameter name.(% causing problems)

Hello,
I wrote a following sql query and it works fine except for parameters like drying%Total, drying%,. The reason is that in the name of parameters there is a wildcard used %. I know that I can use an escape command however I could not figure out how as I think that escape command only works with LIKE operator and not MAX. Could you please help me to resolve this problem?
Could you please tell me what should be amended in order an Oracle would treat % as a normal character and not a wildcard?
Thank you in advance for your help.
SELECT c.numlotpharma AS lotnum , c.numof ,
MAX(DECODE(RTRIM(a.parametercode),'DRYING',numvalue,0)) AS dryingdata,
MAX(DECODE(RTRIM(a.parametercode),'DRYING%Total',numvalue,0)) AS dryingpercentageTotal,
MAX(DECODE(RTRIM(a.parametercode),'DRYING%',numvalue,0)) AS dryingpercentage1
FROM prodaccount.manufacturingdata a
INNER JOIN
(SELECT MAX(inputindex) AS inputindex,
parametercode , mancode
FROM prodaccount.manufacturingdata
WHERE parametercode IN ('DRYING','DRYING%Total','DRYING%')
GROUP BY parametercode, mancode) b
ON a.inputindex = b.inputindex
AND a.parametercode = b.parametercode
AND a.mancode = b.mancode
INNER JOIN (SELECT Numlotpharma, numof , codeproduit
FROM prodaccount.batchlotdetails d
WHERE d.codeproduit = ('Tablets')) c
ON a.mancode = c.numof
GROUP BY c.numlotpharma, c.numof
ORDER BY lotnum

Hi,
user12866679 wrote:
Hello,
I will post some production data tomorrow as I am not at work today.Great!
If in decode % is treated as a part of parameter name then what about this part of my sql query
WHERE parametercode IN ('DRYING','DRYING%Total','DRYING%')
Is % treated as a wildcard?I think it is. Why do you think that?
'%' is a wildcard only in the right-operand of LIKE. The '%' characters in the expression above are not in the right-operand of a LIKE operation. (In fact, the expression doesn't include LIKE at all.) Therefore, the '%' signs above are not treated as wildcards.
Include in your sample data some examples where the condition above is not doing what you expect. Be sure to post the entire query, too; the part that causes the unexpected results might be something completely unconnected to the WHERE clause posted above.
Could you please tell me what to do so it would not be treated as a widlcard but as a integral part of a parameter name.You don't have to do anything.
Consider this example:
CREATE TABLE     table_x
(     x_id          NUMBER (4)
,     parametercode     VARCHAR2 (30)
INSERT INTO table_x (x_id, parametercode) VALUES (0,  NULL);
INSERT INTO table_x (x_id, parametercode) VALUES (1,  'DRYING');
INSERT INTO table_x (x_id, parametercode) VALUES (2,  'DRYING%Total');
INSERT INTO table_x (x_id, parametercode) VALUES (3,  'DRYING%');
INSERT INTO table_x (x_id, parametercode) VALUES (11, 'DRYINGFOO');
INSERT INTO table_x (x_id, parametercode) VALUES (12, 'DRYING%FOO');
INSERT INTO table_x (x_id, parametercode) VALUES (13, 'DRYINGFOOTotal');
INSERT INTO table_x (x_id, parametercode) VALUES (14, 'FOO');
SELECT     *
FROM     table_x
WHERE      parametercode IN ( 'DRYING'
                , 'DRYING%Total'
                , 'DRYING%'
;Output:
.     X_ID PARAMETERCODE
         1 DRYING
         2 DRYING%Total
         3 DRYING%Is this what you expect? If not, what is?

Similar Messages

  • Problem with page Parameter

    Hi,
    My requirement is I am passing a url to page with one parameter which I am assigning it to a calndar which has one one parameter. I mapped page parameter to the calendar parameter.
    In the p/sql code before displaying footer section of the calendar I am using
    get_value('pageparamter') But i am getting null value........................
    How should I retrieve that value......... If Iam using bind variable(calendar parameter) in the display before footer section I am getting error........
    Pls tell me the solution as early as possible...........
    Regards,
    radha

    Hi Radha,
    Sorry, I couldn't reply to your email about the same problem you were asking. Here is the code to get the value of the page parameter:
    declare
    l_val varchar2(10);
    begin
    l_val := portal30.wwpro_api_parameters.get_value
    (p_name => 'v_dt_on_mon',
    p_reference_path => p_reference_path);
    end;
    where 'v_dt_on_mon' is the name of the parameter , so you can replace it with your parameter name.
    Thanks
    -Krishnamurthy

  • Two AM's with the same name but different forms causes Deployment problems

    Two Masters forms, DOC & PM are cloned except for the "where clause" in the View's query and the titles in their JSP's.
    DOC workspace has a BC project and a BC4JSP Project. The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='DOCTOR'.
    In Java Webserver :-
    The JSP's are located in C:\source\Doctor\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\Doctor\pol_ValueSet\..
    If I execute Doctor in JWS the records are getting filtered properly.
    PM workspace has a BC project and a BC4JSP Project. Again The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='PAY_MODE'.
    In Java Webserver :-
    The JSP's are located in C:\source\PMode\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\PMode\pol_ValueSet\..
    If I execute PM in JWS, the PM's JSP comes (the title is correct) but the records pertaining to DOC appears. I checked the View's xml file in C:\source\PMode\pol_ValueSet\ the "where clause" is correct. The xml & classes have the same name but their contents are different.
    I want to know whether this problem is because both have the same name for the AM and the BC4JSP's property file.
    Please clarify.

    Deploying two app modules with the same name will definitely cause problems.
    The JSPs use the information in the properties file to connect to the application module and get the data they need from the appropriate View Objects in those app modules. If you have two app modules with the same name, when a JSP tries to connect, it has no way of knowing which one of the app modules to connect to if they both have the same name.
    You could:
    1. Just use one application module that contains all the View Objects you need to access.
    or
    2. Rename one of the application modules or the package it is located in so the names are distinct. If you choose this method, you will also need to update the JSPs (specifically the 'registerApplicationFrompPopertyFile' method call), and your JSP project's appmodule property file.

  • Problem with Date Parameter

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies
    are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John

    Hi
    I am new to reporting services/report designer but have created a number of simple reports with Parameters using data from queries that have worked but I have a problem with this using Date and Time. 
    I am using MS Visual Studio 2008 (BIDS) and our SQL Server is Windows Server 2008 R2
    I need to allow the users of the report to choose a start date and an end date
    The Start Dates are held in a field called PhaseStartDate
    The End Dates are held in a field called PhaseEndDates
    I have tried multiple ways to try to get this to work with no success and with the latest attempt I get the message  
    "An error occurred during local report processing. The definition of the report 'JKVoidLoss' is invalid. The report parameter 'StartDate' has a default value or ValidValue that depends on the report parameter"Startdate". Forward dependancies are not valid"
    I will explain how I set up the Startdate. The EndDate is set up the same with the relevant values and fields.
    I created a new data source called StartDate. Under QUERY I have Select PhaseStartDate from QLHRA_VoidPhases. This runs okay when tested in Query designer and RUN.
    Under FIELDS I have Field name as PhaseStartDate and Field Source as PhaseStartdate
    Under PARAMETERS I have Parameter Name as PhaseStartDate and Parameter Value as [@StartDate]
    I set up a Parameter called StartDate with Data type as Date/Time
    Under Available Values I selected Get values from a query with Dataset being StartDate, Value field being PhaseStartdate and Label field being PhaseStartDate
    There are no Default Values
    I have tried moving the parameters up and down using the blue arrows under report data. I have tried multiple different methods to resolve this by changing values in the Properties screens.
    I also tried removing the DataSets and just using the Parameters with default settings. in preview, this ran the report but no matter what dates where entered the output was always the same.
    Any assistance will be greatly appreciated as I have spent hours on this so far
    Regards
    John
    As I understand what you need to do is to just remove parameter from the dataset query for populating the date values and then it should work fine
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Remote Resources: "A problem with the system proxy caused the connection to fail: End of file"

    Hi, I am trying to use "Remote Resources" on the current version of the Microsoft Remote Desktop for Android app, I can input the webfeed and it even shows the apps that I have configured on the server for "Remote App", sadly whenever
    I try to load any of the RemoteApps, I receive an error stating " A problem with the system proxy caused the connection to fail. End of File".
    I don't know what I can do to fix this, I've tried many things to no avail, also, normal Remote Desktop connections from the Microsoft Android app work flawlessly to the server.
    The relevant log is the following:
    [2014-Jan-09 04:40:54] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-Jan-09 04:40:54] RDP (0): Final rdp configuration used: memory bookmark [
    label 
    hostname DIAZSERVER
    port 3389
    loadbalanceinfo 
    ui.swapmousebutton false
    remote.program ||ZWaveUtil
    remote.workingdirectory 
    remote.name ZWave Adapter Utility
    remote.args 
    rail true
    soundmode 0
    connect_to_console false
    redirectsdcard true
    performance_flags 134
    arc.sessionid 0
    anonymous_username 
    authentication_level 2
    use_redirection_server_name false
    username administrator
    gateway [
      host = DIAZSERVER
      port = 443
      bypass = false
    connect info[
      hostnames = [localhost]
      gatewayHost = DIAZSERVER
      gatewayPort = 443
      routingToken = Cookie: mstshash=administrator
      redirectionGUID = 
      proxyHost = 200.5.68.10
      proxyPort = 8080
      sessionId = -1
    [2014-Jan-09 04:40:54] RDP (0): Using HttpConnect proxy at 200.5.68.10:8080
    [2014-Jan-09 04:40:54] RDP (0): Using Basic Authentication with username ''
    [2014-Jan-09 04:40:54] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    AsioEndpointContext (0): startup(): starting up down context
    [2014-Jan-09 04:40:54] RDP (0): Resolved '200.5.68.10' to '200.5.68.10' using NameResolveMethod_DNS(1)
    [2014-Jan-09 04:40:54] RDP (0): Resolved '200.5.68.10' to '200.5.68.10' using NameResolveMethod_DNS(1)
    ASIOSocketAdapter (9): readSomething error. message: End of file. instance: 0x5d39d5c0
    RpcOverHttp (9): Stream error in endpoint 0x5abbc170 : A problem with the system proxy caused the connection to fail: End of file
    [2014-Jan-09 04:40:55] RDP (0): Error message: A problem with the system proxy caused the connection to fail: End of file
    [2014-Jan-09 04:40:55] RDP (0): Error message: A problem with the system proxy caused the connection to fail: End of file
    [2014-Jan-09 04:40:55] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    ASIOSocketAdapter (9): handleRead(): exception: Exception in file '/var/lib/jenkins/jobs/rc-android-app/workspace/rdp-layer/library/jni/librdp/private/httpendpoint.cpp' at line 489
        User Message : Failed to read from channel: -1. instance: 0x5d39d5c0
    [2014-Jan-09 04:40:55] RDP (0): Disconnect initiated by client
    RpcOverHttp (9): Exception in endpoint 0x5abbc170 : Exception in file '/var/lib/jenkins/jobs/rc-android-app/workspace/rdp-layer/library/jni/librdp/private/httpendpoint.cpp' at line 489
        User Message : A problem with the system proxy caused the connection to fail: Failed to read from channel: -1
    [2014-Jan-09 04:40:55] RDP (0): Exception caught: Exception in file '/var/lib/jenkins/jobs/rc-android-app/workspace/rdp-layer/library/jni/librdp/private/httpendpoint.cpp' at line 489
        User Message : A problem with the system proxy caused the connection to fail: Failed to read from channel: -1
    [2014-Jan-09 04:40:55] RDP (0): Exception caught: Exception in file '/var/lib/jenkins/jobs/rc-android-app/workspace/rdp-layer/library/jni/librdp/private/httpendpoint.cpp' at line 489
        User Message : A problem with the system proxy caused the connection to fail: Failed to read from channel: -1
    AsioEndpointContext (0): shutdown(): shutting down context
    AsioEndpointContext (0): shutdown(): context shut down
    AsioEndpointContext (0): shutdown(): shutting down context
    AsioEndpointContext (0): shutdown(): context shut down
    [2014-Jan-09 04:40:57] RDP (0): ------ END ACTIVE CONNECTION ------

    My problem is that the "proxy" is the proxy set up by my 3G configuration so, I tried connecting to the remote resources through my work wifi and I get the following:
    [2014-Jan-14 16:58:13] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-Jan-14 16:58:13] RDP (0): Final rdp configuration used: memory bookmark [
    label 
    hostname DIAZSERVER
    port 3389
    loadbalanceinfo 
    ui.swapmousebutton false
    remote.program ||chrome
    remote.workingdirectory 
    remote.name Google Chrome
    remote.args 
    rail true
    soundmode 0
    connect_to_console false
    redirectsdcard true
    performance_flags 134
    arc.sessionid 0
    anonymous_username 
    authentication_level 2
    use_redirection_server_name false
    username Administrator
    gateway [
      host = DIAZSERVER
      port = 443
      bypass = false
    connect info[
      hostnames = [localhost]
      gatewayHost = DIAZSERVER
      gatewayPort = 443
      routingToken = Cookie: mstshash=Administrator
      redirectionGUID = 
      proxyHost = 
      proxyPort = 0
      sessionId = -1
    [2014-Jan-14 16:58:13] RDP (0): Not using any proxy
    [2014-Jan-14 16:58:13] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    AsioEndpointContext (0): startup(): starting up down context
    ASIOSocketAdapter (9): handleResolve(): boost error: Host not found. Please provide the fully-qualified name or the IP address of the host.. instance: 0x5d474090
    RpcOverHttp (9): Stream error in endpoint 0x5d46b678 : Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 16:58:17] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 16:58:17] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 16:58:17] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    ASIOSocketAdapter (9): handleResolve(): boost error: Host not found. Please provide the fully-qualified name or the IP address of the host.. instance: 0x5d445158
    RpcOverHttp (9): Stream error in endpoint 0x5d49fa30 : Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 16:58:17] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 16:58:17] RDP (0): Disconnect initiated by client
    [2014-Jan-14 16:58:17] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    AsioEndpointContext (0): shutdown(): shutting down context
    AsioEndpointContext (0): shutdown(): context shut down
    AsioEndpointContext (0): shutdown(): shutting down context
    AsioEndpointContext (0): shutdown(): context shut down
    [2014-Jan-14 16:58:17] RDP (0): ------ END ACTIVE CONNECTION ------
    Now, I know the host can be resolved because: if I connect to the same host but on a full remote desktop (as opposed to just RemoteApp on it) I have no trouble either through 3G OR through my work connection.
    Moreover, I also tried directly inputting the IP as opposed to the web address of my server, I get the same error, that is the Remote Resources tab is able to access the feed (because it shows the available RemoteApps) but when I click an app it says it can't
    find the Host, here's the log for the connection directly to the IP address/rdweb/feed/webfeed.aspx :
    [2014-Jan-14 17:09:27] RDP (0): ----- BEGIN ACTIVE CONNECTION -----
    [2014-Jan-14 17:09:27] RDP (0): Final rdp configuration used: memory bookmark [
    label 
    hostname DIAZSERVER
    port 3389
    loadbalanceinfo 
    ui.swapmousebutton false
    remote.program ||chrome
    remote.workingdirectory 
    remote.name Google Chrome
    remote.args 
    rail true
    soundmode 0
    connect_to_console false
    redirectsdcard true
    performance_flags 134
    arc.sessionid 0
    anonymous_username 
    authentication_level 2
    use_redirection_server_name false
    username administrator
    gateway [
      host = DIAZSERVER
      port = 443
      bypass = false
    connect info[
      hostnames = [localhost]
      gatewayHost = DIAZSERVER
      gatewayPort = 443
      routingToken = Cookie: mstshash=administrator
      redirectionGUID = 
      proxyHost = 
      proxyPort = 0
      sessionId = -1
    [2014-Jan-14 17:09:27] RDP (0): Not using any proxy
    [2014-Jan-14 17:09:27] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    AsioEndpointContext (0): startup(): starting up down context
    ASIOSocketAdapter (9): handleResolve(): boost error: Host not found. Please provide the fully-qualified name or the IP address of the host.. instance: 0x5d372f28
    RpcOverHttp (9): Stream error in endpoint 0x5dd6b168 : Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 17:09:31] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 17:09:31] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 17:09:31] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    ASIOSocketAdapter (9): handleResolve(): boost error: Host not found. Please provide the fully-qualified name or the IP address of the host.. instance: 0x5d378de0
    RpcOverHttp (9): Stream error in endpoint 0x5e9cc1f0 : Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 17:09:31] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    [2014-Jan-14 17:09:31] RDP (0): Disconnect initiated by client
    [2014-Jan-14 17:09:31] RDP (0): Error message: Unable to connect to remote PC. Please provide the fully-qualified name or the IP address of the remote PC, and then try again.
    AsioEndpointContext (0): shutdown(): shutting down context
    AsioEndpointContext (0): shutdown(): context shut down
    AsioEndpointContext (0): shutdown(): shutting down context
    AsioEndpointContext (0): shutdown(): context shut down
    [2014-Jan-14 17:09:31] RDP (0): ------ END ACTIVE CONNECTION ------
    I'm really puzzled here, I've tried checking if ports where open, and ports 443 and 3389 are wide open, I don't know what else it could be.

  • Problems with Flexible Parameter Passing - Can anyone help with the answer

    Hi,
    having gone to the trouble of creating a generic form handler which utlises the ability of the PL/SQL Gateway to handle flexible parameters, we've come across an almighty problem.
    Whilst the gateway will create two arrays of parameter names and values, it doesn' t seem to handle arrays of values. So, although some of our forms have multi select list form elements, these seem to be incompatible with the Flexible parameter method, as only the first value is returned.
    Does anyone know of a solution to this?
    I really hope so, otherwise the whole methodology is a waste of effort, and I can't imagine why Oracle bothered to include it!
    Here's hoping.
    Thanks
    Dan

    Not sure what flexible parameters are but in the past I've worked on a form that had to pass multiple values (from a multi-select list item) to a report via a single parameter. We did this by creating a pipe delimited ("|") string of all the selected values. Leading and trailing pipes were also added to the concatenated string.
    This was exploded into individual rows by using the statement below:
    WITH t AS (SELECT '|1|2|3|4|' str FROM dual)
    SELECT str, level
    , SUBSTR(str, INSTR(str, '|', 1, level) +1, INSTR(str, '|', 1, level+1)-INSTR(str, '|', 1, level)-1) str2
    FROM t
    CONNECT BY INSTR(str, '|', 2, level) <> 0;
    '|1|2|3|4|' is the value of the passed in parameter.
    So the report query could look something like
    WITH t AS (SELECT SUBSTR(:p_str, INSTR(:p_str, '|', 1, level) +1, INSTR(:p_str, '|', 1, level+1)-INSTR(:p_str, '|', 1, level)-1) itemid
    FROM dual
    CONNECT BY INSTR(:p_str, '|', 2, level) <> 0)
    SELECT a.*
    FROM items a, t
    WHERE a.itemid = TO_NUMBER(t.itemid);
    Hope this helps.

  • I just order 8 calendars from iPhoto and they came to me fine. Now I need to order two more but when I go thru the process I get a message  saying:unable to assemble calendar. There is a probleme with the photo with the file name"(Null)"   more........ .

    Would someone be able to explain to me the following issue with Iphoto?
    I ordered 8 same calendars for my soccer team and received them fine. Although a couple of pictures on it are a little off (out of focus). I need to order two more of the same calendars but when I go thru the process ireceive an error message saying:
    "Unable to to assemble  calendar" There is a problem with the photo with the file name "(Null)" The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your calendar.
    How can  I fine this "corrupt" photo? How did it go thru with the first batch of calendars but won't go thru now?
    Thank you for your help.   

    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start
    with Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Problem when importing two photo galleries with the same name. Please Help!

    Hi Guys,
    I'm not a pro in dreamweaver so I would appreciate if your answer wouldn't be too technical...
    Anyway I have experienced a problem. Heres the sotory, I have been making a websie in DW and used Adobe Bridge CS5 to create a photo gallery SWF file that I would use for my website. The problem is that I want to use two different photo galleries on two different pages however when I save my second photo gallery in bridge, it saves every file with the exact name as the first photo gallery I created and is working fine... Thus when I try to import the photo gallery files into my website folder structure, I find that it asks me to rename them because the files from the first photo gallery are called the exact same names.. Now obviously when I try to rename them dreamweaver gets confused and goes to the wrong folder and uses the images from my first photo gallery in the second one.
    So I guess my question is how can I organize my folder structure to be able to import multiple galleries without dreamweaver getting confused because bridge names all the files the same. Or how could I save the files through bridge so that they have different names and will work fine when I import into DW...
    Thanks and sorry for the essay,
    Patrick

    #1 You cannot have two files / folders or galleries with the same name.  Redo your image Galleries with different names.
    #2 SWF (flash) is not visible to iPhone, iPad, iTouch, Android or other web devices that don't support Flash Player.  These users will see nothing.  You might wish to explore other photo gallery / slideshow options that rely on jQuery instead of Flash technology.  Some links below.  A Google search will reveal many others.
    jQuery WOW Slider
    http://wowslider.com/
    jQuery Cycle
    http://www.malsup.com/jquery/cycle2/
    jQuery Nivo Slider
    http://dev7studios.com/nivo-slider/
    Nancy O.

  • I install LION on my mac pro 2008 and it's alway's pop with " there was a problem connecting to the server " Time Capsule" .How can i remove this popup. My Time machine is working fine and also rename it. But the popup keeps on coming with the old name.

    I installed LION on my mac pro 2008 and it's alway's pop with " there was a problem connecting to the server " Time Capsule" .How can i remove this popup. My Time machine is working fine and also rename it with less than 7 karakters. But the popup keeps on coming with the old name.

    I have a BT Infinity router plugged into the Time Capsule, not sure where the radio settings are?
    They are able to use the network settings of the TC i.e. they can connect to the internet via the wifi through the TC but when they try and connect to the AirPort Disk this is where it is not allowing a connection.
    I don;t have the drive shared out at all at the moment, is this necessary?  How do I do this if so?
    I have attached the screen shots of all the settings.
    Thanks again for your help.

  • Error message in time machine: "There was a problem with the user name or the password of the network

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

  • Extremely annoying problem with user folder name in windows 8.1

    Here is the thing:
    Friend of mine bought the laptop (very strong and expensive asus - republic of gamers) with installed windows 8.1 on it, but after a few days only I bought that computer from him because he didn't need it and he didn't use it at all!
    But, his name stayed in the windows. I changed all user accounts names and everything which was possible to be changed, but when i go to C/users his name is still there on folder!
    I can say it is very annoying because that laptop cost almost 3.000  USD and I still need to look at someone else's  name in my user folder!
    I tried to change "ProfileImagePath" in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ .... but after that windows logged in as a temporary profile and I spend another hour to figure out
    how to reverse the thing!
    How is possible that some so basic and simple things can't be changed at all in newest windows??? Only because some name was entered first it's not possible to be changed ever again???? Seriously?
    Not only this problem, there is too many problems with this windows 8.1! Too many! You definitely made  the worst thing ever!
    I am extremely unhappy and upset with this operative system! I,m cursing the day when i gave so much money for computer with crap called windows 8.1!!!!
    Very very angry!!!
    (P.S English is not my native language)

    Hi,
    According to your description, it seems that you have resolve that issue.
    Not only this problem, there is too many problems with this windows 8.1! Too many! You definitely made  the worst thing ever!
    Please let us know what problem did you encounter? Please give us more detailed information in order to provide the further help.
    Here is a overall guide for you to know well the Windows 8.1
    Windows 8.1: frequently asked questions
    No Karen, I didn't resolve the issue.
    I asked very simple question how to change something so basic like user folder name in Windows 8.1
    You know:  "C:/Users/"user name"
    All the links you are giving to me doesn't provide any concrete answer to this question. I spent hours and hours googling and researching about this question and only solution which i found is that i need to create completely new user account and delete completely
    the old one, just to be able to remove an old name of user folder! Are you kidding me?
    How is possible that such a basic thing is so complicated?
    Is there any way to change folder user name in any other way because i don't want to create a new user account!
    Simple question, but, like always, no any concrete answers - just some empty talks, and totally useless links and SPINNING IN THE CIRCLE all the time without the CONCRETE solution.
    As for part of my post which you quoted, and your request for more informations in order to provide me further help, i just gave it to you again. I want to change user folder name. What you don't understand in that question?
    UPDATE:
    Ok, i came back to edit this post because i have a feeling that maybe you don't understand the question and giving me this link because maybe you simply don't know that when you go to:
    Control panel/user accounts/change your account name... and change the name, and after that, when you go to C:/users, the folder with the user name still have an old user name. Which means that any changes in control panel or anywhere else doesn't make any
    changes on C:/users/  folder itself!!!!!
    In previous windows versions was possible to change it by editing "ProfileImagePath" in:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ ....
    But when I try to do that in Windows 8.1, when I reboot computer it logs in with some temporary account, so i need to reverse everything to be able to use computer with the real account!
    So basically it seems that is absolutely impossible to change user folder name in Windows 8.1, which is simply unbelievable!
    I really think i explained very good now.

  • Problem with Connection Broker name

    Hi,
    When i change the connection broker name using for example:
    Set-RDClientAccessName -ConnectionBroker serverbrokerName.domain.com -ClientAccessName NewBrokerName.domain.com
    no.manchete.pt
    And setup a DNS pointing to NewBrokerName.domain.com
    When someone tries to connect it gives him the following error:
    "Your computer cannot connect to the remote computer because the Connection Broker couldn't validate the settings specified in your RDP file. Contact your network administrator for assistance".
    What am i doing wrong?
    Sincerely,
    AM

    Hi,
    When i change the connection broker name using for example:
    Set-RDClientAccessName -ConnectionBroker serverbrokerName.domain.com -ClientAccessName NewBrokerName.domain.com
    no.manchete.pt
    And setup a DNS pointing to NewBrokerName.domain.com
    When someone tries to connect it gives him the following error:
    "Your computer cannot connect to the remote computer because the Connection Broker couldn't validate the settings specified in your RDP file. Contact your network administrator for assistance".
    What am i doing wrong?
    Sincerely,
    AM
    The services needed to be restarted, now im facing another problem with the new name:
    error: "Remote Desktop can't connect to the remote computer "NewBrokerName.domain.com" for one of these reasons:
    1) Your user account is not listed in the RD Gateway's permission list.
    2) You might have specified the remote computer in NetBIOS format ( for example, computer1), but the RD Gateway"
    EDIT: Also solved this error RD Gateway was only allowing connections to Domain Computers, change to all resources

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

  • Problems with song's names in iTunes Store

    So, I have a problem with song's names in iTunes Store on my iPhone 6+ 128. with 8.2
    You can see it on attached screens.
    I tried to change the font size and erase the phone and then install it again by default. The problem manifests itself on 6+ and didn't on my iPad with the same program version.

    That's really curious. Sorry I don't have anything else by way of potential solutions to offer, but it may be worth contacting Apple about this one.
    http://www.apple.com/support/contact/

Maybe you are looking for

  • Windows Server 2008 R2: Server unable to authenticate with Domain Controller

    Hello, I was wondering what could be the reason for this error if it is certain that there was no other computer on the network using the same name: This computer could not authenticate with<Domain-controller>, a Windows domain controller for domain

  • Images are not displaying in the forms run time.

    Hello All, I am using forms 10.1.2.3.0 and database 11g in the windows XP platform. I am not able to see the images in the buttons at the run time. I have done the following setup for the same but still I am not able to display images in the buttons.

  • IPod Photo won't display album artwork for purchased songs

    I bought some songs on the ITunes Music Store, and I can see the album artwork on the ITunes, I can also see in my IPod the artwork for most of the songs that I've downloaded, but I CAN'T see the artwork for those recently purchased. I also noticed t

  • Update JFrame via another Thread

    Hello, I have a JFrame with a JProgressBar, and I need to see the JProgressBar fill as some operation executes. In that JFrame there's a public method that increments the JProgressBar. This serves as a GUI to another class. That other class receives,

  • EOFException in ReadUTF. Please help!!

    Hi, I�m reading a string sent by a servlet to a middlet, using ReadUTF. In a fist moment it worked, by now it throws a java.io.EOFException, I don�t know why, I think I�ve modified anything. The midlet receive string code is:            httpConn = (H