Help! On-Demand-Process - What am I doing wrong..
I have a 3 select that works great! BUT, I'm trying to create a second one and have brought down to real basics and am missing something because it just won't hit my ODP.
In a HTML Text region I have the following Javascript:
<script language="JavaScript1.1" type="text/javascript">
function f_call_odp() {
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ODP_SERVICE',0);
alert('In Javascript');
</script>
In a select list "HTML Form Element Attributes"
I have :
onChange="javascript:f_call_odp();"
for my ODP I have:
Name:
ODP_SERVICE
Process Text:
BEGIN
insert into debugtab values ('odp:', sysdate); commit;
END;
The table:
CREATE TABLE "DEBUGTAB"
( "INPUT" VARCHAR2(4000),
"TIMESTAMP_DTTM" TIMESTAMP (6)
RESULTS:
Alert pops up - so it hits the JS
BUT no insert - so it isn't hitting the ODP
???? BILL
The application that it is not working in is the Issue Tracker...
We are using the results of the issue tracker to create a work order application..
I went to the initial version and it doesn't work in it either.
3 steps (if the debug table is created)
1.) Add the Javascript to an HTML TEXT region.
2.) Add the onchange JS to the select list
3.) Create the ODP in the Application Processes.
The simple code is below:
1.)
<script language="JavaScript1.1" type="text/javascript">
function f_call_odp() {
var gReturn = null;
var get = new htmldb_Get(null,html_GetElement('pFlowId').value ,'APPLICATION_PROCESS=odp_1',0);
gReturn = get.get();
alert(gReturn);
alert('In Javascript');
get = null;
</script>
2.)
onChange="javascript:f_call_odp();"
3.)
BEGIN
insert into debugtab values ('odp: TEST', sysdate); commit;
END;
Works great in a new app!
But I can do the above in a NEW PAGE in my existing Issue Tracker app and it does not work.
Similar Messages
-
Iphoto Question
When I playing a "slideshow" album, a few photos show up as a blank screen. Also, when I select a photo in an album to make it full screen - some photos won't "hold" - they go full screen for about a second, then the screen goes blank. Any ideas about what I am doing wrong? Thank you.There are several possible causes for the Black Screen issue
1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
If none of these help: As a Test:
Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
Why doesn't my ipod touch 2 recognize or sync new playlists from my computer? It did in the past, but now the syncing process goes in reverse; the
playlists on the ipod touch 2 sync to my computer!Was the iPod previous synced to another iTunes library/computer?
Have you successfully synced from this iTunes library/computer before?
If so have you done anything like update iTunes on the computer since it last successfully synced?
Do the songs play in iTunes?
Does any media now sync to the iPod?
Do you have the right boxes checked to sync?
iTunes: Syncing media content to iOS devices and iPod
Try syncing using the manual method
Managing content manually on iPhone, iPad, and iPod
- Backup and then restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device. -
Batch processing - what am I doing wrong?
I am trying to batch process 30 or so fireworks PNGs in Fireworks 8.
They are all similar. I want to alter their appearence by applying a hue/saturation filter. I copy the filter command from history and save it with a name. I select all the files I want batched and click the command name I saved. What seems to happen is that one of the files gets filtered 30 or so times over and the others stay the same. The same things happens whether I select the files by picking from a folder or clicking the 'include currently open files' checkbox.
Any ideas please?Hi Steve,
It looks like the command is not closing the current document and applying the filter on current document only.
You will need to check once a document has been closed, a new document from the selected list should also open after it to apply the filters on it.
..Sarthak -
Communicate with process � what am I doing wrong?
Hi,
I able to Execute a process, to read and to write to the application ( using the JVM).
My problem is that when I tray to send to the process another String, and to read the results,
The process isn�t receiving or displaying the results back .
In the example below: by typing the word 'HELP' I am receive a menu items. But when I send once again this String (or any other) noting happens.
The results is that only the first 'write' to the stream buffer work � the second word that I am sending is not getting to the process.
I will be very happy to get any help
Thank in advanced.
package com.surf.process;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import junit.framework.*;
public class PrcInt {
protected BufferedReader is;
protected BufferedWriter bw;
PrintWriter pw;
private String prcPath="";
private int prcDelay;
private String prcData="";
private Process p;
public void openPrc()throws IOException, InterruptedException{
String prcWin="";
Runtime r = Runtime.getRuntime();
String[] nargs = {prcPath};
p = r.exec(nargs);
Thread.sleep(prcDelay);
is = new BufferedReader(new InputStreamReader(p.getInputStream()));
bw=new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
public void write(String wData) throws InterruptedException, IOException{
Thread.sleep(prcDelay);
// bw=new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
bw.write(wData);
bw.flush();
Thread.sleep(prcDelay);
public String read() throws IOException, InterruptedException{
String line="";
String prcWin="";
// is = new BufferedReader(new InputStreamReader(p.getInputStream()));
while (is.ready()) {
line=is.readLine();
prcWin=prcWin+line+"\n\r";
return prcWin;
public void close() throws IOException{
is.close();
bw.close();
p.destroy();
public void setPrcDelay(int prcDelay) {
this.prcDelay = prcDelay;
public void setPrcPath(String prcPath) {
this.prcPath = prcPath;
public void clearR() throws IOException{
is.close();
package com.surf.process;
import java.io.IOException;
import com.surf.process.C64Cmd.C64C;
public class PrcTest extends PrcInt implements C64C {
public static void main(String[] sd)throws IOException, InterruptedException{
PrcInt ma =new PrcInt();
ma.setPrcPath("C:\\D.exe");
ma.setPrcDelay(500);
ma.openPrc();
String g=ma.read();
System.out.println(g);
ma.write("HELP"+Enter);
String f=ma.read();
System.out.println(f);
ma.write("HELP"+Enter);
String k=ma.read();
System.out.println(k);
ma.close();
}In the settings in itunes, Info > Advanced all the small "boxes" should be unmarked. Then it should sync both ways.
-
Help with a script (what am I doing wrong)
tell application "Finder"
set theFolder to (choose folder with prompt "choose the user folder") as Unicode text
set newFolder to make new folder at theFolder as Unicode text with properties {name:"test folder"}
set targetFolder to newFolder
move entire contents of (theFolder & "Library:Preferences") to targetFolder
end tell
error "Can’t get entire contents of \"Macintosh HD:Users:username:Library:Preferences\"." number -1728 from «class ects» of "Macintosh HD:Users:username:Library:Preferences"
also I would like the new folder in Library not user folderI had some time to give the connected volume stuff another look, so I tweaked the script a little. This latest version will handle getting the users from local or connected volumes as well as connected accounts. I threw in some labels in the choice dialog so you can see what the volumes are, and changed the time stamp a little to avoid using either the POSIX or Finder path delimiters.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #DAFFB6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
-- remove user preferences to a backup folder
set theUsers to {}
repeat with aDisk in (get list disks)
set aDisk to contents of aDisk
tell application "System Events"
if (local volume of disk aDisk) then -- get users from local disks
if (startup of disk aDisk) then
set label to "[Startup Volume] "
else
set label to "[Local Volume] "
end if
repeat with aUser in paragraphs of (do shell script "ls '/Volumes/" & aDisk & "/Users'")
if aUser is not in {"Shared"} then set the end of theUsers to (label & aDisk & "/Users/" & aUser)
end repeat
end if
try
if (server of disk aDisk is not missing value) then -- get users from connected disks
try
repeat with aUser in paragraphs of (do shell script "ls '/Volumes/" & aDisk & "/Users'")
if aUser is not in {"Shared"} then set the end of theUsers to ("[Server Volume] " & aDisk & "/Users/" & aUser)
end repeat
on error errmess -- get connected user
log errmess
set the end of theUsers to ("[Server " & (server of disk aDisk) & "] " & aDisk)
end try
end if
end try
end tell
end repeat
set theChoice to (choose from list theUsers with title "Move preferences to backup" with prompt "Select an account to move user preferences:" with empty selection allowed) as text
if the result is in {"false", ""} then return -- no selection
set theChoice to "/Volumes/" & text ((offset of "] " in theChoice) + 2) thru -1 of theChoice -- strip off the volume labels
set theSource to (theChoice & "/Library/Preferences") as POSIX file as text as alias
set theDestination to (theChoice & "/Library") as POSIX file as text as alias
tell ((current date) as «class isot» as string) to set timeStamp to (text 6 thru 7) & "-" & (text 9 thru 10) & "-" & (text 3 thru 4) & space & (text 12 thru 13) & (text 15 thru 16) -- ISO time = yyyy-MM-ddThh:mm:ss
set theName to "Preferences copy " & timeStamp
try
set targetFolder to ((theDestination as text) & theName) as alias
on error errmess
log errmess
tell application "Finder" to make new folder at theDestination with properties {name:theName}
set targetFolder to the result as alias
end try
tell application "Finder" to move items of theSource to targetFolder
</pre> -
What am I doing wrong - size issue
Need some advice...as usual!
I designed a site on my 17" monitor and set the margins to 0
and table to 100%. However when I look at it on different screens
it looks rubbish...big gap at the bottom of the page with the
design cramp at the top. I wonder if someone would mind looking at
my code and see what's wrong with it. The site was designed using
various techniques including css for nav bars, tables, and
fireworks elements. the site can be viewed at:
www.shelleyhadler.co.uk/nerja.html
thanks for your help. Shell>Re: What ams I doing wrong - size issue.
Several things...
First, your 17" monitor has noting to do with web page
layout. What
resolution is your monitor set to? it could be 800 pixels
wide or 1280
pixels... wouldn't that make a difference? That aside, screen
resolution and
size are irrelevant anyway. What counts it eh size that your
viewers have
their web browser window set at.
I have a pretty large monitor, set to a very high resolution,
so I open
several windows at once and size them so I can see the
content in all.
Sometimes my browser is full screen and sometimes its shrunk
down to less
than 600 x 800. Your web site needs to accommodate that.
Every web viewer
out there is different and likes the way they have their
screens set up. So
you need to be flexible and your site needs to be flexible.
Next, Don't design in Fireworks and import to Dreamweaver.
Fireworks is a
superb web ready graphics and imaging processing program. The
authors
(mistakenly) threw in some web authoring stuff that works
very poorly.
Design your pages using Dreamweaver. Learn html markup and
css styling to
arrange it, then use Fireworks to create graphics to support
your content.
Along the way, be aware of the diffferant browsers in use.
Internet
Explorer is the most popular (or at least most in use) simply
by virtue of
the Microsoft market share, but it is also the least web
complient (by virue
of the Microsoft arrogance) so some things that work there,
(like your green
bands) won't on other browsers and vice versa.
That said... graphically, your site looks great. You have a
good eye for
composition and simple clean design. You just need to learn
to use html to
your best advantage to create some realy nice looking and
nicely working
sites.
"shelleyfish" <[email protected]> wrote in
message
news:[email protected]...
> Need some advice...as usual!
>
> I designed a site on my 17" monitor and set the margins
to 0 and table to
> 100%. However when I look at it on different screens it
looks
> rubbish...big
> gap at the bottom of the page with the design cramp at
the top. I wonder
> if
> someone would mind looking at my code and see what's
wrong with it. The
> site
> was designed using various techniques including css for
nav bars, tables,
> and
> fireworks elements. the site can be viewed at:
>
> www.shelleyhadler.co.uk/nerja.html
>
> thanks for your help. Shell
> -
What i'm doing wrong in this small pl/sql statement ?
Hi All,
I'm happy to write in this forum for the first time. Can anyone help me to show What i'm doing wrong in this small statement :
create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number(3))
is
update employees set salary = salary + salary*p2/100 where employee_id=p1;
end augmente_salaire;
begin
augmente_salaire(1001,20);
end;
I'm using pl/sql developer.
Any help would be much appreciated.
Best Regards.Welcome to the forum!!
Point 1:
> create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number(3))
The code in red is the one causing trouble. You cant specify LENGTH for the data type in parameter of a Procedure/Function. Oracle will define it based on the passing value.
So your code must be just.
create or replace procedure augmente_salaire(p1 IN employees.employee_id%type, p2 IN number)
Point 2:
BEGIN is missing after the IS key word.
Following is a corrected code.
create or replace procedure augmente_salaire
p1 IN employees.employee_id%type
, p2 IN number
is
begin
update employees
set salary = salary + salary*p2/100
where employee_id=p1;
end augmente_salaire;
show err -
I am trying to print redplum coupons and I can't, help. I have updated java, adobe flash, and made sure my printer was set on default. I am not sure what I am doing wrong. I have contacted redplum and no one will help.
No Apple response??? Redplum/Valassis will not help either. I searched, using the cups error message and though it is Unbuntu, same error so maybe useful...only problem: details would not display unless I join Unbuntu forum. What a pain to do anything with my Mac or find any help. I honestly regret buying this buggy OS.
Anyway, here is what I found, FYI:
http://ubuntuforums.org/showthread.php?t=483415
As the old saying goes: when in doubt, consult the manual. The problem appears to be that I added the printer using the KDE Add Printer Wizard. It was automatically given a "socket" URI instead of an "lpd" one. When I:
- altered the printer settings at http://localhost:631 (the CUPS admin page) as instructed in the manual for the printer, and
- copied the PPD file into a second place on the hard drive (as instructed on ubunutuforums, see the link above)
..everything started working.
It's still slower than windows, but I can live with that
Probably a simple fix. Change the socket I.P. to match the printer I.P. like this:
socket://192.168.1.86:9100. The thing I'm concerned with using socket:// is that AFAIK the printer I.P. must not change. In my case I'm able to assign a static I.P. address to the printer but it's something to consider.
I found that the only thing I needed to do was change socket to lpd (and remove :9100 off the end as well). See Solving Ubuntu printer broken pipe problem (DocuPrint C525A) . BTW thanks for steering me in the right direction - very grateful.
Solving Ubuntu printer “broken pipe” problem (DocuPrint C525A)
Posted on November 25, 2008
Are you having a problem with your printer under the latest versions of Ubuntu (perhaps it worked under an older version)? Are you able to print short documents, but not longer, or more graphics-intensive, documents? (e.g. the unfortunate people at http://ubuntuforums.org/showthread.php?t=625493). Do they sit there as Processing for ages and then switch to Held? If you have the same problem I had the solution I tried may work for you too. Firstly, check your cups error log:
sudo gedit /var/log/cups/error_log
If you see anything like the following, the solution may be simple:
[Job 201] Unable to write print data: Broken pipe
PID 13359 (/usr/lib/cups/backend/socket) stopped with status 1!
System > Administration > Printing and right click on your printer, selecting Properties. Settings > Device URI
If you see something like socket://your_printer_ip_address:9100 just change socket to lpd and remove the :9100 off the end. Then click on apply.
Apparently lpd is a more modern protocol which works with most printers whereas socket is more raw (and potentially faster but riskier in a network situation). Somewhere along the line, the default Ubuntu/Gnome setup for networked printers shifted from lpd to socket. Some primitive printers will have benefited whereas a larger number of more modern printers will have suffered.
Please correct me if I am wrong (which is highly possible) but the underlying problem could be that socket may make the printer wait a long time for a large file to be processed ready for printing. Some printers, such as the Fuji Xerox DocuPrint C525A, may drop the socket if things take too long to start coming through.
Changing timeout settings might work but lpd is better than socket so it is the preferred solution in any case.
If this works for you, please leave a comment to let others know (ideally with a description of the printer and Ubuntu version). Printer may be relevant if it doesn’t support the direct stream protocol properly. NB I may take a while to let your comment through because of the volume of spam. Sorry about that.
Finally, thanks to sphilli8 for the steer in the right direction at http://ubuntuforums.org/showthread.php?p=6245626.
http://ubuntuforums.org/showthread.php?t=483415 -
I am at starbucks and when I try to download my free music on itunes, my password is always rejected, even when i am forced to create a new one!!! what am I doing wrong, who do I ask for help?
Due to recent security issues and identify theft (mostly due to phishing scams), the iTunes Store seems to be requiring more frequent verification of credit card information when a card is registered in your account, even if you have a balance from a prepaid card. Either just go through the verification process or, if you have a credit card entered and you don't expect to need the card anytime soon, go into the Payment information in your account and set the payment method to "none" which should then stop the regular requirements for verification (it may still ask - mine does - but you should just be able to click through the buttons without problems).
Hope this helps. -
Help....I am trying to set up iClould on my pc....the set up was complete....when I try to sign in to set up it says the Apple ID is valid but is not an iCloud account. Please help me and tell me what I am doing wrong. Thx
Hi DesCoop,
You must initiallly activate iCloud from an IOS device or a Mac. You cannot inititally activated from a PC.
Sorry.
GB -
How can I get Home Sharing to work? I've know of this feature for years but have never got it to work. I'm using the same apple id on my devices, which is [email protected] What am I doing wrong? Please help.
http://support.apple.com/kb/HT3819 homesharing
http://support.apple.com/kb/TS2972 troubleshooting home sharing.
i <3 Homesharing. I enabled it at home, and where I work I use a mac so I enabled it on that computer as well so I can listen to my own music library while on breaks/lunch =) -
Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.
Have downloaded the latest version of ITunes and now i get "Incompatable Application" I tunes will no longer open. have worked my way through FAQ and help to no avail. What am i doing wrong? currently running windows 7.
-
After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?
Hi
Error -49 opWrErr File already open with write permission
Trash the preference files while application is NOT Running.
from Karsten Schlüter
Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
This issue occours only on MacOs machines using 10.7x
try switching-off the Local Mobile Backup
in Terminal copy/paste
sudo tmutil disablelocal
Re-launch Mac
Yours Bengt W -
Hi. I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme. Comes up with error 50. I am using a Macbook Pro to copy from so not sure what I am doing wrong. Can someone help? thanks Rory
These links might provide some information that may be of help.
http://support.apple.com/kb/TA20831
https://discussions.apple.com/message/2035035?messageID=2035035
I've encountered this error myself upon occasion. If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.
Maybe you are looking for
-
Windows 7 users in my domain are unable to configure or change backup settings. Users are able to open Control Panel > Backup and Restore, but when they click Change settings, they receive the error: Windows Backup - The backup application coud not
-
How to open multiple applications at the same time
I need to open several applications at the same time: Dreamweaver, BBEdit, and Acrobat. Is there a way to smooth this process, so pressing an icon in the dock will open them all for me?
-
Problem installing SQL server 2014 Express Edition on Windows 8 32 bit
Installation stops at a certain point and do not progress any further. Here i am attaching an image for the scenario.
-
Why am I not allowed to activate my product, CS3, when the product is bought years ago and I still have the serial number? It's an old version, but I don't throw products in the bin, just because they are old.
-
Transfer old audio cassettes to my mac desktop
I have a dozen audio cassettes from 1978-1985 that i would like to transfer to cd or file format to preserve the voices. My desktop mac is two years old and runs os x 10.9.5. What is the easiest way to do this? i read that if my mac has a 3.5 mm line