How could I fix this code
Hii 2 all
How could I change this statement for parameters list,, so the client_name can contain spaces ??
add_parameter(p_id,'p_client_name',TEXT_PARAMETER, '''' || :cntrl.client_name || '''');
cause it couldn't print and give syntax error when the :cntrl.client_name contains any spaces !!!!
please help
thanks:)
First I must apologize, I asked you to test something that was not needed... for a moment I thought we were talking about web.show_document, that's why I asked you to test with double-quotes..
Regarding your problem, Manu is right, there is not need to wrap around the parameter in quotes..
add_parameter(p_id,'p_client_name',TEXT_PARAMETER, :cntrl.client_name);I have to ask you the same question that Manu asked you before, where are you using this parameter?
In your Report you must be using in a piece of PL/SQL code, we need you to post that code...
Edited by: Rodolfo Ferrari on Sep 10, 2009 4:44 PM
Similar Messages
-
Hi, I upgraded my iphone 4 (4.3.3) to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tells that "this device is not registered as part of the iphone developer programme." How could I fix this problem? Please help me...,
I had a similar occurrence with my just activated iPhone 4.
I had been using the phone for three days when an odd occurrence with voice mail caused me to call tech support. After some discussion they decided to push the activation to my phone (even though I had been using it for three days). When I went to power it back up again I repeatedly got the "no service" notification. I got tech support on a land line and we tried hard reboots and so on. No joy. They told me to take it in to the point of sale and either the SIM card or the phone needed (or both) needed replacing.
I tried one last hard reboot after dinner and the phone came up with service, but I took it in to the point of sale in the morning and they swapped the SIM card out and I went to a Genius Bar appointment to get the phone checked out. It is supposedly OK, but I am still having some problems when syncing it so I will have to visit the Genius Bar again tomorrow about that. At least I have not experienced the "no service" problem in the roughly 24 hours since the SIM card was replaced. (Fingers crossed) -
My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.
Hmm . . . comes with a Utility MPEG2 Component ML app with no explanation of what it's for?
The utility app is an "assistant PKG installer." It allows Lion and Mountain Lion users to install the older QT MPEG-2 Playback Component installer PKG file which is not allowed to run on its own under Lion or Mountain Lion since these operating systems already have a QT X only MPEG-2 component embedded in the QT embedded structure. Without this utility you would have to either copy the component from an older system to your Lion or Mountain Lion system, use Pacifist for installation, or manually open the PKG contents and transfer the component to the appropriate component folder.
As to your "discussion" regarding the playback of AVI file types, there are really only two strategies here:
1) You can add component support so that QT can play the files natively or
2) You can convert the file contents to compression formats that are natively compatible with the unmodified QT component configuration.
Each user should decide for his or her own self which approach best suits their needs for a particular source file. In most cases, conforming the system's codec component configuration to play the source file directly results in higher video quality since no transcoding takes place but this strategy will not work if a codec which is required is not available for the user's operating system. On the other hand, converter utilities tend to support more built-in codecs and are easier to use since the user does not have to concern him or herself with the nature of the particular source compression formats but at the risk of some potential loss in visual quality. As to what converter to use, once again this is a matter of personal choice. In the case of commercial converters like iSkysoft, the codecs are built in while MPEG Streamclip accesses the host operating system's QT codec component configuration. I personally prefer the free HandBrake app for AVI, MKV, TS, MTS, and M2TS conversions since it has an exceptionally full-featured X.264 GUI with some user options that 97% of users are likely to never use. -
My speaker doesn't work... I haven't drop it or got it wet.
How could I fix this??First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
-
How can I fix this code ?
hello,
I have a small problem with this code:
#include <fstream>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
int main()
string from, to;
cin >> from >> to;
ifstream is(from.c_str());
istream_iterator<string> ii(is);
istream_iterator<string> eos;
// line 24: Error:
vector<string> b(ii, eos); // line 24: Error:
sort(b.begin(), b.end());
ofstream os(to.c_str());
ostream_iterator<string> oo(os, "\n");
unique_copy(b.begin(), b.end(), oo);
return !is.eof() && !os;
return 0;
}When I compile this happens
bash-2.05$ CC -V
CC: Sun C++ 5.6 2004/06/02
bash-2.05$ CC -o std_vector.out std_vector.cpp
"std_vector.cpp", line 24: Error:
Could not find a match for
std::vector<std::string>::vector(std::istream_iterator<std::string, char, std::char_traits<char>, int>, std::istream_iterator<std::string, char, std::char_traits<char>, int>)needed in main().
1 Error(s) detected.
What can I do ?
best regards
Morten GulbrandsenYou have run into a documented limitation of the default libCstd implementation of the C++ standard library. The default library is not a complete implementation, and in particular lacks required template member functions that allow implicit type conversions. We still use this library for binary compatibility with earlier releases.
The optional STLport version of the library is a full implementation of hte C++ Standard Library. If you don't need binary compatibility, meaning you don't need to link to code that uses libCstd, you can add the option -library=stlport4 to every CC command line, compiling and linking. Your sample code compiles with STLport.
If you need to use libCstd, you might get this code to work by inserting explicit type conversions. I have not tried to see whether that actually can be done. -
How could I write this code?
I am trying to create a shared object that will host a chat
room environment. I will have many of these rooms and I know what I
want to do, just not how to write it in actionscript or if it is
even possible. the underlined portion is what i just don't know how
to code (
(room + roomNumber + _so) ) as it should throught usage
equate to something like
room1_so,
room2_so,
room3_so, and so on. any help would be greatly appreciated.
thanks in advance.
function doJoin(roomNumber) {
(room + roomNumber + _so) = SharedObject.getRemote(
(room + roomNumber + _so) ,_root.clientroom_nc.uri,true);
if(
(room + roomNumber + _so) ).data.seat1 = occupied) {
do this;
}its actually connecting to flash media server remote shared
object as opposed to the local shared object. The code in question
was actually taken nearly word for word from the macromedia sample
file so I know that that portion is correct.
If I replace the shared object name from
tl["room"+roomNumber+"_so"].connect(_root.clientroom_nc);
and change it to
room1_so.connect(_root.clientroom_nc);
everything works fine and the connection is succesful,
however since I hope to have many many rooms that is just not a
feasible way to write it. I have racked my brain trying to think of
an alternative way of writing it but have come up with nothing. I
am well versed in Basic, PHP, and some C, but this damn
actionscript stuff is throwing me for a loop since it is incredibly
different in a lot of ways. -
How do i fix this code? (plz help drivin me crazy)
guys i am new at this, this is the newest code i did, maybe you guys can help, i was told that it is bad to have 2 keydown methods, and to have the second one in the update class, so maybe you guys can help me find where to put it.
import java.applet.*;
import java.awt.*;
public class Keyboard extends Applet implements Runnable
// These lines initialize the variables
// quantities are measured in pixels
int x_pos = 30; // x - Position of the ball
int y_pos = 100; // y - Position of the ball
int x_speed = 10; // initial horizontal speed
int y_speed = 10; // initial vertical speed
int speed_factor = 2; // overall speed
int delay = 20; // msec between animation steps
int radius = 20; // radius of the ball
int appletsize_x = 700; // horizontal dimension of applet
int appletsize_y = 400; // vertical dimension of applet
static int SPACE_BAR = 32; // key code for space bar
int last_key=0;
// Variables for double buffering
// used to prevent the animated image from flickering
private Image dbImage;
private Graphics dbg;
public void init()
setBackground (Color.black);
public void start ()
// Make a thread
// this is part of the program that runs animation
Thread th = new Thread (this);
th.start ();
public void stop()
public void destroy()
// This medthod or, function, changes the direction of the ball
// depending on keyboard input
public boolean keyDown (Event e, int key)
last_key = key;
if (key == Event.LEFT) // the left key was pressed
x_speed = -1; // so go left
else if (key == Event.RIGHT)
x_speed = 1; // go right
else if (key == SPACE_BAR)
x_speed = 0; // stop
y_speed = 0;
else if (key == Event.UP) // up key pressed
y_speed = -1;
else if (key == Event.DOWN) //down key pressed
y_speed = 1;
return true;
public void run ()
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
while (true) // start an infinite loop
// The following lines test to see if the ball
// has reached the edge of the screen,
// and if it has, reverse the direction
if (x_pos > appletsize_x - radius)
x_speed = -1;
else if (x_pos < radius)
x_speed = +1;
if (y_pos > appletsize_y - radius)
y_speed = -1;
else if (y_pos < radius)
y_speed = +1;
// this line moves the ball
x_pos += x_speed*speed_factor;
y_pos += y_speed*speed_factor;
repaint();
try
Thread.sleep (delay);
catch (InterruptedException ex)
// do nothing
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
public void update (Graphics g)
public boolean keyDown (Event e, int key)
g.setColor (color.green);
if (key == 98) {
g.setColor (Color.blue);
else if (key == 114)
g.setColor (Color.red);
else if (key == 103)
g.setColor (Color.green);
else if (key == 121)
g.setColor (Color.yellow);
else if (key == 112)
g.setColor (Color.pink);
return true;
// initialize double-buffered image
if (dbImage == null)
dbImage = createImage (this.getSize().width, this.getSize().height);
dbg = dbImage.getGraphics ();
dbg.setColor (getBackground ());
dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
dbg.setColor (Color.red);
//dbg.drawString("The number is: "+last_key, 20, 20);
paint (dbg);
g.drawImage (dbImage, 0, 0, this);
// draw the ball
g.fillOval (x_pos - radius, y_pos - radius, 2 * radius, 2 * radius);
}nah i got past that too, updated this is my code now:
import java.applet.*;
import java.awt.*;
public class Keyboard extends Applet implements Runnable {
// These lines initialize the variables
// quantities are measured in pixels
int x_pos = 30; // x - Position of the ball
int y_pos = 100; // y - Position of the ball
int x_speed = 10; // initial horizontal speed
int y_speed = 10; // initial vertical speed
int speed_factor = 2; // overall speed
int delay = 20; // msec between animation steps
int radius = 20; // radius of the ball
int appletsize_x = 700; // horizontal dimension of applet
int appletsize_y = 400; // vertical dimension of applet
static int SPACE_BAR = 32; // key code for space bar
int num=0;
// Variables for double buffering
// used to prevent the animated image from flickering
private Image dbImage;
private Graphics dbg;
public void init()
setBackground (Color.black);
public void start ()
// Make a thread
// this is part of the program that runs animation
Thread th = new Thread (this);
th.start ();
public void stop()
public void destroy()
// This medthod or, function, changes the direction of the ball
// depending on keyboard input
public boolean keyDown (Event e, int key)
num = key;
if (key == Event.LEFT) // the left key was pressed
x_speed = -1; // so go left
else if (key == Event.RIGHT)
x_speed = 1; // go right
else if (key == SPACE_BAR)
x_speed = 0; // stop
y_speed = 0;
else if (key == Event.UP) // up key pressed
y_speed = -1;
else if (key == Event.DOWN) //down key pressed
y_speed = 1;
return true;
public void run ()
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
while (true) // start an infinite loop
// The following lines test to see if the ball
// has reached the edge of the screen,
// and if it has, reverse the direction
if (x_pos > appletsize_x - radius)
x_speed = -1;
else if (x_pos < radius)
x_speed = +1;
if (y_pos > appletsize_y - radius)
y_speed = -1;
else if (y_pos < radius)
y_speed = +1;
// this line moves the ball
x_pos += x_speed*speed_factor;
y_pos += y_speed*speed_factor;
repaint();
try
Thread.sleep (delay);
catch (InterruptedException ex)
// do nothing
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
public void update (Graphics g)
if (num == 98)
g.setColor (Color.blue);
else if(num == 114)
g.setColor (Color.red);
else if(num == 103)
g.setColor (Color.green);
else if(num == 121)
g.setColor (Color.yellow);
else if(num == 112)
g.setColor (Color.pink);
else
g.setColor (Color.green);
// initialize double-buffered image
if (dbImage == null)
dbImage = createImage (this.getSize().width, this.getSize().height);
dbg = dbImage.getGraphics ();
dbg.setColor (getBackground ());
dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
//dbg.setColor (Color.red);
//dbg.drawString("The number is: "+last_key, 20, 20);
paint (dbg);
g.drawImage (dbImage, 0, 0, this);
// draw the ball
g.fillOval(x_pos - radius, y_pos - radius, 2 * radius, 2 * radius);
} -
So I recently bought my MacBook Pro, about three days ago, and the wifi connection is horrible. I can barely access anything on the internet. I tried using my PC laptop, and the wifi worked very quickly, so the problem definitely isn't my wifi connection and has to do something with the MacBook Pro. What would be the problem? And how would I be able to resolve this problem?
By the way, I am using the OS X Lion and this is my first Mac ever.I think the other devices are fine. I'm not sure. It usually only happens like a couple days out of the week. I do know that the network I'm using when I click on the wifi symbol at the top of my screen doesn't have a padlock on it. It IS MY network that is at my house, but maybe that has something to do with it.
-
How could I Fix this problem .. ResultSet closed
In my JSP page after 4or 5 refreshings i am getting an exeption either saying "Invalid state for getResultSet" of "ResultSet is closed". I'm not getting this if i refresh again. I've tried even by closing ResultSet, Statement and Connection objects at the end of page. Can u give me the solution
This is correct, unless the guy is lucky enough to be using a driver that adheres to JDBC 3. Try unloading the ResultSet object into a cache and then referencing that on subsequent calls to the page, (unless data staleness is an issue). You'd probably find it useful to browse some of the data transfer patterns to understand the deeper issues in what you're doing.
-
Hi, I always import cr2 files to lightroom and just the other day it stopped letting me import, Nothing has changed in the files, I have previously imported them but only at their existing file source.
What version of Lightroom are you using?
What OS are you using?
Have you purchased a new camera?
Are the raw files from the same camera that you imported files from previously? -
Hello,
I am trying to display country, state within each country,
then person in each state...using cfoutput and group.
i am getting this error...How can i fix this code?
The <cfif> tag requires an end tag to nest
within <cfoutput>, which began on line 21, column
26.<p>The CFML compiler was
processing:<ul><li>The body of a cfoutput tag beginning
on line 26, column 34.<li>The body of a cfoutput tag
beginning on line 26, column 34.</ul>Rather then including <cfif county_q.state neq ''> in
your CF code eliminate any records with an empty state in your
query. The sample appears to have a country, state, and name value
for every record.
If this is not possible please post a more code including:
1. Your query
2. A sample of your data with and without an empty state
value -
How could I fix a podcast video that only plays the audio?
My series of videos submitted to itunes podcast play fine except one, that only the audio plays but no video, how could I fix this?
Post a link like this so people can easily right-click and download the feed to take a look at it or copy/paste URL into post.
http://www.40dayusa.com/hack/feed.mg?Type=gallery&Data=2948758_GnCHh&format=rss2 00
After looking at the 803 KB file you can see (well, hear) that the m4v file is only audio. http://www.40dayusa.com/photos/339485388_6Fv5j-640.mp4
This might have happened during movie export or file upload to server. After checking that the video plays in QT player locally re-upload the file to the correct directory with audio+video. -
How can I fix error code 131:4? Licensing for this product stopped working. I have windows vista home edition and CS4 Design Premium. I downloaded licensing zip file for windows but I can't seem to get it to launch. Look forward to help from anyone
Steve,
I appreciate your answer. While it might work, I'm a bit hesitant to remove the other programs as a possible solution since they are all currently working.
With Acrobat 9 Pro failing with the OS 10.7 upgrade, I'm hoping that there is a less severe solution.
Since the trigger appears to be 10.7 and may have something to do with the discontinued support of Rosetta, I could be spending a few hours working on a reinstall without a change. Yes, it might work. The "might" is the part that makes me hesitate.
Is anyone else out there on OS 10.7 and running Acrobat 9 Pro? Any issues with anyone else?
Thanks Steve. I do appreciate your offering a solution. I may end up trying it if nothing else comes together.
Mark -
My iPhone wont let me send text messages to numbers with a different area code. How do I fix this so I can send texts to these numbers?
If it shows up in iTunes and you can sync the phone, could be that the docking port is damaged.
You should get it serviced or looked at by visiting an Apple Store or contacting Apple:
Apple - Support - Service Answer Center -
my app store will not let me update or get any apps..they keep asking me for my billing info through my card and i enter my info and it says the security code is wrong when i know its right...how can i fix this? whats the problem?
Select None for payment method > iTunes Store: Changing account information
If None is not available > Why can’t I select None when I edit my payment information?
Yes, you can redeem an iTunes gift card for current purchases.
How to Redeem iTunes Gift Cards and content codes
And you can check the balance of a redeemed card > Account Home - Apple Store
Maybe you are looking for
-
Aspect ratio in preview & export wrong
I have QT.movies shot @ HDV 1080i60, 1440 x 1080. I just read an article in VideoMaker Magazine to take advantage of Apple ProRes 422, you can take your HDV video into Compressor and render to Apple ProRes files. When I preview the .mov before I rend
-
How to update 8700g version 4.1
So i have a blackberry 8700g and my software is version 4.1 I need to upgrade it in order to use the Desktop manager. how do i do that?
-
SpeedGrade is in a continuous load loop, and won't open
I'm on a Macbook Pro OSX 10.9.5 2.6 GHz Intel Core i7 When I go to open up SpeedGrade CC or SpeedGrade CC 2014, I get a continuous loading loop that sticks at the loading screen, and it never crashes or opens anything. Adobe CC says it's up to date.
-
'Edit origninal' rendered in AE not working
We have 2 systems on Windows 7 running CC update of Premiere Pro 2014.2_8.1. When using AE rendered Quicktime files in PP, one of the systems will not open the AE project it was created in when using the 'edit original' command. It just opens the ren
-
My iPod says no music! when i already sync using itunes
hey guys i have a problem here n i dont know what to do, this last ddays i've been tryied yo sybc music with itunes on my ipod 3rd gen.. but when it finish n can i disconect it. then looks like has nothing inside says no music no podcast no videos wh