Return to text from endnote?
In pages 5, when you insert an endnote (pages endnote, not the plugin) how do you return to the insertion point in the text from the endnote? In 4.3, you could click on the endnote number.
Thanks
I am surprised more people are not complaining about this. I sent Apple feedback. I too have this problem and I use the Command F shortcut to type in the text I was just working on and to get back there quickly.
Still would be so much better to be able to click on the little number and it would save time!
Apple please fix this!
Similar Messages
-
Return formatted text from LOV
I have text stored in a table as a varchar2 with carriage returns in the text using utl_tcp.CRLF. This works fine when I send an email using this text thru a procedure. I am trying to load this text to an unbound item (defined as char) thru an LOV created using Designer (web pl/sql page). The lov lists the text in read-only as formatted, but when I load it to the unbound item, it loses the formatting. I have tried to make a post-gen change to add WSGL.preformat to the javascript:passback function, but I am still not seeing the formatting in the unbound item on my page. Does anyone have any ideas (including post-gen changes to the package)how I might accomplish this?? Any ideas are welcome.
I suspected that...
Maybe someone has an idea for the following:
I need a generic solution for a reference table (based on table name, key and value attribute names). In a function I generate this query statement.
TEXT_FROM_LOV_QUERY would be just fine for me, for it lets me pass a statement as a string and providing me a solution with key/value pairs. However, due to the restrictions above I cannot use that function.
Instead, I'd probably have to join the reference table somehow. I would have suggested the following
SELECT e.empno, e.ename, d.display_value
FROM emp e,
f_get_generic_ref_table('dept', 'deptno', 'dname') d
WHERE e.deptno = d.return_valuewhile the function f_get_generic_ref_table generates me a string like
'SELECT deptno, return_value, dname display_value
FROM dept'obviously that doesn't work since the function f_get_generic_ref_table only returns a statement as VARCHAR.
Any ideas how I could solve that?
Thanks,
Michael -
SQL Server 2005 (64 bit) returns truncated text from Oracle 10g (64 bit)
Hi all,
I'm no expert in Oracle so I desperately need your advice.
I'm using SQL Server 2005 (64 bit) and trying to pull data from a Oracle 10g (64 bit) server. I am able to connect to the Oracle server with no problems.
The problem came when I was trying to pull a text column (I think it's BLOB in Oracle) from the Oracle server. The results came back BUT truncated to only 100 characters. (This is a column containing event logs so the text is really really long...)
As you may already know, Microsoft is not providing the driver for this case (which is insanely ridiculous!!!). There is no standard “Microsoft OLE DB Provider for Oracle” which we would normally use to establish a linked server connection to Oracle. Instead, we had to install the provider given by Oracle (Oracle Provider for OLE DB).
I have tried to Google for solutions but didn't find much. Please help! :(
Thanks in advance,
EleniIf this is a one time activity, you need to find a migration utility which will do the job for you. SQL Developer is available had your case been the other way round (migrate from SQL Server to Oracle).
Check out tools from SwisSQL
http://www.swissql.com/products/oracle-to-sqlserver/oracle-to-sql-server.html
Microsoft's own SSMA (I think this is what you are using already)
http://www.microsoft.com/sqlserver/2005/en/us/migration-oracle.aspx
Apart from this, if there are any issues with the tools themselves, you need to get in touch with the respective vendors. -
Extract Text from pdf using C#
Hi,
We are Solution developer using Acrobat,as we have reuirement of extracting text from pdf using C# we have downloaded adobe sdk and installed. We have found only four exmaples in C# and those are used only for viewing pdf in windows application. Can you please guide us how to extract text from pdf using SDK in C#.
Thanks you for your help.
Regards
kiranmaiOkay so I went ahead and actually added the text extraction functionality to my own C# application, since this was a requested feature by the client anyhow, which originally we were told to bypass if it wasn't "cut and dry", but it wasn't bad so I went ahead and gave the client the text extraction that they wanted. Decided I'd post the source code here for you. This returns the text from the entire document as a string.
private static string GetText(AcroPDDoc pdDoc)
AcroPDPage page;
int pages = pdDoc.GetNumPages();
string pageText = "";
for (int i = 0; i < pages; i++)
page = (AcroPDPage)pdDoc.AcquirePage(i);
object jso, jsNumWords, jsWord;
List<string> words = new List<string>();
try
jso = pdDoc.GetJSObject();
if (jso != null)
object[] args = new object[] { i };
jsNumWords = jso.GetType().InvokeMember("getPageNumWords", BindingFlags.InvokeMethod, null, jso, args, null);
int numWords = Int32.Parse(jsNumWords.ToString());
for (int j = 0; j <= numWords; j++)
object[] argsj = new object[] { i, j, false };
jsWord = jso.GetType().InvokeMember("getPageNthWord", BindingFlags.InvokeMethod, null, jso, argsj, null);
words.Add((string)jsWord);
foreach (string word in words)
pageText += word;
catch
return pageText; -
Select text from all_views returns an empty string
My application allows the user to select between the Data Provider for ODBC and the Data Provider for Oracle. (ODP)
When using the ODBC provider the statement:
Select text from all_views where view_name='MYVIEW'
returns the expected string.
If I connect via ODP however it returns an empty string.
(If I use 'Select *' it tells me the text_length is 154 in this specific case - so there is definately text available.)
I'm thinking it has something to do with the fact that the data type is LONG.
In both cases I retreive the data using rdr.GetChars(), which should work.
If I use the dbms_metadata.get_ddl function instead, it does return the string (Probably because the return type is not LONG)
Unfortunately that function only works for Views in the current schema, while the original Select works for any view.
(And I dont know what version of Oracle this function was added in - I have to support older versions too.)
Similarly, if I use one of the XML functions to retreive the text as XML it works fine.
(Again it is probably returned as a VARCHAR2 instead of a LONG.)
The strange thing is that when I created my own table containing a LONG column I was able to load and retreive data without any problems.
The problem appears to be specific to this column in all_views.
Anyone know a solution to this?
Thanks
MikeThanks that was it.
I had not seen those properties since I am working with the 'generic' objects (DbCommand rather than OracleCommand, etc.)
What is strange is that I was able to retreive data from my own LONG column WITHOUT setting this value to -1.
(It defaulted to 0 in both cases.)
The only difference was that when I retreived data from my own column I specified CommandBehaviour.SequentialAccess.
When I retreived the all_views.text column I did not specify a behaviour at all.
However the Oracle docs said that SequentialAccess is not supported ... so I guess that is not correct.
(Maybe it doesn't 'work', but it certainly seems to cause things to work differently)
Thanks
Mike -
I have downloaded I-Cloud and the new ios program. Where do my text go through now if they don't show up on my bill in the data usage section? When I get a text from friends sometime their e-mail address shows at the top of the message instead of their name like it use to. Then when I reply it gets returned. They tell me they are sending it through the normal text like they use to.
You are probably right - I don't have my iPad with me and was confusing myself. But on the iPad it is receive at email addresses only.
Sending to the phone number will mean ONLY your iPhone gets the message. If you want it to go to ALL devices, then you should have them send to the email address associated with the AppleID you used to set up iMessage originally. Also set that email address up as your caller id on the iPhone so as you send out messages, people will reply to that and both your devices should get them.
Although Apple's notes indicate you should be able to do it - http://support.apple.com/kb/TS2755
what if you just type in a 10-digit phone number on the iPad instead of an email?
(I originally did all this with iOS 5.0, and I know then the number did not work on an iPad, but maybe with iOS 5 updates, it does now?) -
I text from iphone 5. The recipient's return text goes to my ipad and I don't receive it on my iphone 5. Why?
Phone the online Apple Store and order a Mac OS X 10.6 DVD.
(70623) -
Hi guys,
I'm hopeing someone out there can help me out with a problem that has been bothering me for the last few days. Basically I can not get my class to return any text at all by calling the appropriate function, yet if I do a system.out.println() from within the class its self the text will be outputed to the console without a problem.
Below is the threaded class I want to retrieve the text from:
import java.io.*;
import java.net.*;
import java.util.*;
public class SockThread implements Runnable{
private String chatter;
public String chatText;
private String charText;
private Thread runner;
private Socket socktest;
private PrintStream out;
private BufferedReader in;
public SockThread() {
if (runner == null) {
runner = new Thread(this);
runner.start();
public void run() {
try {
this.connect();
} catch (IOException ioe) {
public void connect() throws java.io.IOException{
String hostname = "efnet.xs4all.nl";
int portnumber = 6669;
this.socktest = new Socket(hostname, portnumber);
this.out = new PrintStream(this.socktest.getOutputStream());
this.in = new BufferedReader(new InputStreamReader(this.socktest.getInputStream()));
this.out.print("user "+ "strangename" + " stranger irc : " + "Stranger");
this.out.print("\n");
this.out.print("nick " + "Shadwick");
this.out.print("\n");
Boolean eof = false;
try {
while (!eof) {
this.charText = in.readLine();
if (this.charText == null){
eof = true;
socktest.close();
} else {
this.chatText = charText;
} catch (IOException ioe) {
System.out.println("Its not working :( " + ioe);
public void showStatus() {
System.out.println(this.chatText);
}And here is my main class:
public class ChatConsole {
public static void main(String[] arguments) {
SockThread st = new SockThread();
st.showStatus();
}No matter if i try accessing the text via the showStatus() function or directly access the chatText variable i get nothing. I'm pretty sure i'm missing something thats stopping me from getting the text but I just cant see it. If anyone can help I'd greatly appreciate it.As you are creating another thread with the SockThread class, it runs independently from the main thread. So the SockThread Thread has probably not gotten to the part where it initiates the chatText var by the time the main thread calls the showStatus() method.
To varify this, either do:
put System.out.println("TEST"); in the show status method. If this prints then the var just hasnt been initiated yet.
OR
Use Thread.Sleep(2000); in the main method to make is sleep for a while to give the SocketThread Thread a chance to initiate the var. -
Return text from a PDF stored in a SQL Server database (Adobe iFilter)
We are storing PDF files inside a SQL Server 2008R2 DB. We have installed the Adobe iFilter to create a full-text catalog in order to search these files. Everything was working great, until.... we tried to get the text out of that PDF for display on a website. I am at a loss. We want to be able to return the text of a PDF file as varchar(max) using just straight-up T-SQL. I assume we would need to create a function and *somehow* use the iFilter to pull out the text, but I cannot find any documentation on how to do such a thing. Has anyone done this? Is there documentation online anywhere? Thanks
There is no Adobe documentation. iFilter is a standard Microsoft interface. I've never seen the documentation. It may be that you don't use it directly, but invite the system to extract text. You may need to pull out and save the data into a regular file first. I've seen some discussion suggesting that trying to use the iFilter directly (rather than letting Microsoft functionality use it) doesn't work.
-
Can receive texts from some phones but they never get my return text.
Brand new replacement iphone 4S for duplicate issue - can text other iphones and receive texts but NON-iphones cannot receive any texts from my iphone (I can receive their texts, though). Has anyone else had this problem?
You can't send texts to other phones with iMessage, it only sends and/or receives from other iOS devices. If you want to send text to others phones (other than an iPhone to iTouch), get the third-party app textPlus Free Text + Calls so you can send and received texts from other people.
Hope this helps. -
How to extract text from a PDF file?
Hello Suners,
i need to know how to extract text from a pdf file?
does anyone know what is the character encoding in pdf file, when i use an input stream to read the file it gives encrypted characters not the original text in the file.
is there any procedures i should do while reading a pdf file,
File f=new File("D:/File.pdf");
FileReader fr=new FileReader(f);
BufferedReader br=new BufferedReader(fr);
String s=br.readLine();any help will be deeply appreciated.jverd wrote:
First, you set i once, and then loop without ever changing it. So your loop body will execute either 0 times or infinitely many times, writing the same byte every time. Actually, maybe it'll execute once and then throw an ArrayIndexOutOfBoundsException. That's basic java looping, and you're going to need a firm grip on that before you try to do anything as advanced as PDF reading. the case.oops you are absolutely right that was a silly mistake to forget that,
Second, what do the docs for getPageContent say? Do they say that it simply gives you the text on the page as if the thing were a simple text doc? I'd be surprised if that's the case.getPageContent return array of bytes so the question will be:
how to get text from this array? i was thinking of :
private void jButton1_actionPerformed(ActionEvent e) {
PdfReader read;
StringBuffer buff=new StringBuffer();
try {
read = new PdfReader("d:/getjobid2727.pdf");
read.getMetaData();
byte[] data=read.getPageContent(1);
int i=0;
while(i>-1){
buff.append(data);
i++;
String str=buff.toString();
FileOutputStream fos = new FileOutputStream("D:/test.txt");
Writer out = new OutputStreamWriter(fos, "UTF8");
out.write(str);
out.close();
read.close();
} catch (Exception f) {
f.printStackTrace();
"D:/test.txt" hasn't been created!! when i ran the program,
is my steps right? -
How ias integrate with Snacktory for getting main text from an html page
Hi All,
i am new to endeca and ias, i have an requirement, need to get main text from whole html page before ias save text to Endeca_Document_Text property,
as ias save all text in page to endeca_document_text property, it is not ok for reading when show in web page, i use an third party API to filter out the main text from original page,
now i want to save these text to endeca_document_text property,
an another question,
i get zero page when doing the logic of filtering main text from original html text in ParseFilter( HTMLMetatagFilter implements ParseFilter) using Snacktory.
if only do little things, it will work fine, if do more thing, clawer fail to crawl page. any one know how to fix it.
log for clawler.
Successfully set recordstore configuration.
INFO 2013-09-03 00:56:42,743 0 com.endeca.eidi.web.Main [main] Reading seed URLs from: /home/oracle/oracle/endeca/IAS/3.0.0/sample/myfirstcrawl/conf/endeca.lst
INFO 2013-09-03 00:56:42,744 1 com.endeca.eidi.web.Main [main] Seed URLs: [http://www.liferay.com/community/forums/-/message_boards/category/]
INFO 2013-09-03 00:56:43,497 754 com.endeca.eidi.web.db.CrawlDbFactory [main] Initialized crawldb: com.endeca.eidi.web.db.BufferedDerbyCrawlDb
INFO 2013-09-03 00:56:43,498 755 com.endeca.eidi.web.Crawler [main] Using executor settings: numThreads = 100, maxThreadsPerHost=1
INFO 2013-09-03 00:56:44,163 1420 com.endeca.eidi.web.Crawler [main] Fetching seed URLs.
INFO 2013-09-03 00:56:46,519 3776 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-1] come into EndecaHtmlParser getParse
INFO 2013-09-03 00:56:46,519 3776 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-1] come into HTMLMetatagFilter
INFO 2013-09-03 00:56:46,519 3776 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-1] meta tag viewport ==minimum-scale=1.0, width=device-width
INFO 2013-09-03 00:56:52,889 10146 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-1] come into EndecaHtmlParser getParse
INFO 2013-09-03 00:56:52,889 10146 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-1] come into HTMLMetatagFilter
INFO 2013-09-03 00:56:52,890 10147 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-1] meta tag viewport ==minimum-scale=1.0, width=device-width
INFO 2013-09-03 00:56:59,184 16441 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-2] come into EndecaHtmlParser getParse
INFO 2013-09-03 00:56:59,185 16442 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-2] come into HTMLMetatagFilter
INFO 2013-09-03 00:56:59,185 16442 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-2] meta tag viewport ==minimum-scale=1.0, width=device-width
INFO 2013-09-03 00:57:07,057 24314 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-2] come into EndecaHtmlParser getParse
INFO 2013-09-03 00:57:07,057 24314 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-2] come into HTMLMetatagFilter
INFO 2013-09-03 00:57:07,057 24314 com.endeca.eidi.web.parse.HTMLMetatagFilter [pool-1-thread-2] meta tag viewport ==minimum-scale=1.0, width=device-width
INFO 2013-09-03 00:57:07,058 24315 com.endeca.eidi.web.Crawler [main] Seeds complete.
INFO 2013-09-03 00:57:07,090 24347 com.endeca.eidi.web.Crawler [main] Starting crawler shut down
INFO 2013-09-03 00:57:07,095 24352 com.endeca.eidi.web.Crawler [main] Waiting for running threads to complete
INFO 2013-09-03 00:57:07,095 24352 com.endeca.eidi.web.Crawler [main] Progress: Level: Cumulative crawl summary (level)
INFO 2013-09-03 00:57:07,095 24352 com.endeca.eidi.web.Crawler [main] host-summary: www.liferay.com to depth 1
host depth completed total blocks
www.liferay.com 0 0 1 1
www.liferay.com 1 0 0 0
www.liferay.com all 0 1 1
INFO 2013-09-03 00:57:07,096 24353 com.endeca.eidi.web.Crawler [main] host-summary: total crawled: 0 completed. 1 total.
INFO 2013-09-03 00:57:07,096 24353 com.endeca.eidi.web.Crawler [main] Shutting down CrawlDb
INFO 2013-09-03 00:57:07,160 24417 com.endeca.eidi.web.Crawler [main] Progress: Host: Cumulative crawl summary (host)
INFO 2013-09-03 00:57:07,162 24419 com.endeca.eidi.web.Crawler [main] Host: www.liferay.com: 0 fetched. 0.0 mB. 0 records. 0 redirected. 4 retried. 0 gone. 0 filtered.
INFO 2013-09-03 00:57:07,162 24419 com.endeca.eidi.web.Crawler [main] Progress: Perf: All (cumulative) 23.6s. 0.0 Pages/s. 0.0 kB/s. 0 fetched. 0.0 mB. 0 records. 0 redirected. 4 retried. 0 gone. 0 filtered.
INFO 2013-09-03 00:57:07,162 24419 com.endeca.eidi.web.Crawler [main] Crawl complete.
~/oracle/endeca
-======================================
source code for parsefilter
package com.endeca.eidi.web.parse;
import java.util.Map;
import java.util.Properties;
import org.apache.hadoop.conf.Configuration;
import org.apache.log4j.Logger;
import org.apache.nutch.metadata.Metadata;
import org.apache.nutch.parse.HTMLMetaTags;
import org.apache.nutch.parse.Parse;
import org.apache.nutch.parse.ParseData;
import org.apache.nutch.parse.ParseFilter;
import org.apache.nutch.protocol.Content;
import de.jetwick.snacktory.ArticleTextExtractor;
import de.jetwick.snacktory.JResult;
public class HTMLMetatagFilter implements ParseFilter {
public static String METATAG_PROPERTY_NAME_PREFIX = "Endeca.Document.HTML.MetaTag.";
public static String CONTENT_TYPE = "text/html";
private static final Logger logger = Logger.getLogger(HTMLMetatagFilter.class);
public Parse filter(Content content, Parse parse) throws Exception {
logger.info("come into EndecaHtmlParser getParse");
logger.info("come into HTMLMetatagFilter");
//update the content with the main text in html page
//content.setContent(HtmlExtractor.extractMainContent(content));
parse.getData().getParseMeta().add("FILTER-HTMLMETATAG", "ACTIVE");
ParseData parseData = parse.getData();
if (parseData == null) return parse;
extractText(content, parse);
logger.info("update the content with the main text content");
return parse;
private void extractText(Content content, Parse parse){
try {
ParseData parseData = parse.getData();
if (parseData == null) return;
Metadata md = parseData.getParseMeta();
ArticleTextExtractor extractor = new ArticleTextExtractor();
String sourceHtml = new String(content.getContent());
JResult res = extractor.extractContent(sourceHtml);
String text = res.getText();
md.set("Endeca_Document_Text", text);
} catch (Exception e) {
// TODO: handle exception
public static void log(String msg){
System.out.println(msg);
public Configuration getConf() {
return null;
public void setConf(Configuration conf) {but it only extracts URLs from <A> (anchor) tags. I want to be able to extract URLs from <MAP> tags as wellGee, do you think you could modify the code to check for "Map" attributes as well.
Can someone maybe point a page containing info on the HTML toolkit for me?It's called the API. Since you are using the HTMLEditorKit and an ElementIterator and an AttributeSet, I would start there.
There is no such API that says "get me all the links", so you have to do a little work on your own.
Maybe you could use a ParserCallback and every time you get a new tag you check for the "href" attribute. -
A little help please as it's been years since I've done any coding of any sort.
So I have a 4 page document with various field types. I have a document script that gets "TodaysDate" that works perfectly and a few other scripts as well.
So what I'm trying to do is find a work around for the following:
I have 3 fields - SURNAME, FIRSTNAME & dob.
And I want what is typed into these fields to populate into 1 field. And according to this tutorial (http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript) it's not exactly possible. At least I think that's what it says.
However I'm hoping that maybe I could have a Submit button at the end of that document that when clicked would copy the text from those 3 fields (that I would have on 1 layer) into 1 field on a 2nd layer. Is that even possible??
I'd also like to have the document Print, Save (using the text in the field on the 2nd layer as the file name), Email (using the text in the field on the 2nd layer as the subject line) and Export to a specific Excel spreadsheet.
I don't want much do I?
I'm using Acrobat 9 Pro on a Windows PC but also have access to Acrobat 8 Professional. And I'm going to want the form to run in Acrobat Reader X.
So far I have for the 3 fields into 1 on another layer:
function buttonClick(){
if(buttonClick==false)
event.value=this.getField("SURNAME"+"-"+"FIRSTNAME"+"-"+"dob").valueAsString;
But I have no idea how to call the event.value from 1 layer to another or if any of that code above would even work at all.
I have a script that I believe will work perfectly for the Save and Email function:
Using the “doc.submitForm()” function
// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
// Change address on your form
var cToAddr = "[email protected]";
// First, get the client CC e-mail address
var cCCAddr = this.getField("ClientEmail").value;
// Now get the beneficiary e-mail only if it is filled out
var cBenAddr = this.getField("BennyEmail").value;
if(cBenAddr != "") cCCAddr += ";" + cBenAddr;
// Set the subject and body text for the e-mail message
var cSubLine = "Form X-1 returned from client"; var cBody = "Thank you for submitting your form.\n" + "Save the mail attachment for your own records";
//** Send the form data as an XML attachment on an e-mail
// Build the e-mail URL
var cEmailURL = "mailto:[email protected]?cc=" + cCCAddr + "&subject=" + cSubLine + "&body=" + cBody;
this.submitForm({
cURL: cEmailURL,
cSubmitAs:"XML",
cCharSet:"utf-8"
I'll work out the Export to Excel thing later as I've seen many tutorials on that. But can I do the 3 fields to 1 thing at all?
Please Help!!!Sorry Gilad. I hope I'm not getting on your nerves (too much) but as I said it's been a while since I did any formal code. And I'm trying to do this code for a work document but I'm doing it in amongst so many other things I do for my job that it's difficult to get the time to concentrate for longer than 5 mins.
I didn't get a chance to try that code until just now. I guess I asked again as I thought (from what I'd read) that it wouldn't be that simple.
So I've added that code and I get no errors. But it doesn't appear to be doing anything either. I've added the code like this in the Custom calculation script of a separate field I've called FileName. And on the Button i'm using I've added: buttonClick()
function buttonClick(){
if(buttonClick==false)
event.value=this.getField("SURNAME").valueAsString + "-" + this.getField("FIRSTNAME").valueAsString + "-" + this.getField("dob").valueAsString;
So now I'm guessing that becasue i'm not getting an error or a result that I've screwed it up still. Have I put the code in the correct area? Have I assigned a the buttonClick() function correctly? -
How can I print out all texts from one person
How can I printall of my texts from my very bad lawyer?
It's not a file, so you can't "open" one file. Every message (and note) is a single file on the computer.
This Applescript will grab all the notes in the selected mailbox (i.e. the selected Notes item in Mail) and put them in a textEdit document.
Note that Mail doesn't differentiate between a note and an email message, so if you run this while a normal email mailbox is selected, it will gather all of your email messages.
tell application "Mail"
set theMailboxes to the selected mailboxes of message viewer 0
repeat with aMailbox in theMailboxes
set theNotes to the messages of aMailbox
set theText to ""
repeat with aNote in theNotes
set theText to theText & content of aNote & return
end repeat
end repeat
end tell
tell application "TextEdit"
set myDocument to make new document at end of documents with properties {text:theText}
end tell
Copy and paste this into a new AppleScript Editor Document, select the Notes mailboxes you want to print the notes from, and click the Run button (Green button with arrow).
This may take a while. -
Function returning error text validation
Hi,
I have a page where i can insert/update user, organisation, responsible.
Organisation can be nullable.
Only one user at a time can be responsible for a organisation.
To check this responsible validation i made a function returning error text validation as follow:
BEGIN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = :p22_usr_org_id
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END;
The validation works fine.
But it goes wrong when i want to insert a new user, without assigning him to an organisation.
I get following message:
ORA-01722: invalid number
ERR-1024 Unable to run "function body returning text" validation.
Can someone please help me solve this problem?
ThanksHi,
try:
BEGIN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = nvl(:p22_usr_org_id,-1)
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END;This assumes that :p22_usr_org_id could be null and converts this to -1 (pick another default value if this may exist as an id). It is possible that the statement would otherwise be seen as WHERE usr_org_id = null which is invalid.
or you could do:
BEGIN
IF :p22_usr_org_id IS NOT NULL THEN
FOR c IN (SELECT usr_spa
FROM kpi_users
WHERE usr_org_id = :p22_usr_org_id
LOOP
IF upper(:p22_usr_spa) = upper('YES') and upper(c.usr_spa) = upper('YES')
THEN
RETURN 'A user is already responsible for this organisation'||'!';
END IF;
END LOOP;
END IF;
END;As this would stop the validation running if the :p22_usr_org_id is null.
Or, you could just make your validation conditional on p22_usr_org_id not being null?
Andy
Maybe you are looking for
-
Title ^ So yeah, is there anyway I can just go back to what I had? c:
-
Beat marking on more than one song?
Hi guys, I have video and photo footage that has a duration of more than 1 piece of music. I would like to add another song with beat markers so I it can sync nicely throughout the whole video however I am having difficulty in completing this task. C
-
After installing Oracle11g, I tried to create RDF models in it, but failed in :EXECUTE SDO_RDF.CREATE_RDF_NETWORK('rdf_tblspace'); i only found similar package : SDO_RDF_IMG, anyone know that problem?
-
Solaris 10 installation freezes
Hello im trying to install solaris 10 on a Sun ultra 10, but everytime i come to the language selection it just freezes and dont respond, if i press stop+a i get a prompt. any one have any clues? Cheers Martin
-
I bought photoshop but when I start the program a window appears with trial period expired. bought a licence how to solve it?