[JS CS3/4] Store data from app.selection[0] even after deselection
Hi,
I am facing a matter that I can't find a way out.
To be brief, I am trying to store app.selection[0].contents (some text) & get access to that value even after the text is deselected.
In case I am wrong (May be :-S), let me detail the process of my script:
1. A user selects some text
2. The user launches the script
3. The script picks the contents of the selection
var sel=app.selection[0];
var myOriginalContents = sel.contents;
4. ...makes a index reference & topic
5. ...generates the index on last page
6. ...find original contents in the index text frame
app.findTextPreferences.findWhat=myOriginalContents;
app.findText();
7. ..selects found text
app.select(app.findText()[0]);
8. ...adds a hyperlink (source = text; destination = original selection page, name = myOriginalContents).
Just assign the selection to a var.
you have it in:
var sel=app.selection[0];
var myOriginalContents = sel.contents
so unless you change the contents of those vars (deleting the elements) you can always get it by using myOriginalContent, no need to select it again.
Similar Messages
-
How to store data from textfile to vector and delete a selected row.
Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile.
Do someone has an idea? :)nemesisjava wrote:
Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile.
Do someone has an idea? :)What's the problem? What have you done so far? What failed?
What you described should be pretty easy to do. -
Where can I find the third party app?
I'm really in trouble that I can't record and check my blood glucose.
Of cause I exported the data from app, but It's not readable for me.
Please reply ASAP and give me other solution.You find third-party apps in the App Store. What app are you looking for? Due to problems, Apple removed the ability to record that information in Health. You can always go back to whatever you used before three weeks Health was released. Why can you not check and record your blood glucose? I would assume you check it using blood samples and a glucose meter which has nothing to do with your phone. You should be able to record it in any number of apps, from Notes to purpose made third-party apps.
-
Can data from Apps be shared between family members with iCloud Family Share?
I'd like to know if data from Apps can be shared between family members with Family share in iCloud
no, unless the app has a sharing setting.
-
I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.
Hi Tony,
Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
Regards,
Barry -
I used Article: HT2109 to transfer everything from my iPod touch 3g, iOS 5.1.1, to my iPod touch 5g, iOS 6.1.3. Why did data from apps NOT move to the new device? Games are starting over rather than picking up where they were on the old device?
- If you restored the 5G frmm the iTunes backup of the 3G were th app in the iTunes library of the computer you used? They have to be.
- If yes then try again. When I first restored my iPad 4 from the iTunes backup of my iPad 1 app data did not transfer. I tried again and it did. -
Determine previous date from the selection date
Hi Guys,
I need to get a previous date from the selection date mm/dd/yyyy
Eg:
Selection date is 02/28/2008
Sol- -02/27/2008
Selection date - 03/01/2008
Sol- 02/29/2008
Selection date - 04/02/2008
Sol-04/01/2008
If i do ofset -1 in query ....it goes -1 month. In Exit if i do Sys-datnum -1. It works but not in case for Feburary month. Since 2008 year has Feb (29 days) but for 2007 (28 days)
RegardsHi,
Problem is i have a 0Date restricted to a variable and if i do offset-1 to that variable it goes previous month not the date.
I dont have 0CALDAY in my cube. Can i do in the UserExit.
If i do sy-datum-1. Will it work?
Because the FEb one is the main problem
Regards -
Reading data from App Web List and Displaying in HostWeb.
Hi,
Is it possible to read list data from AppWeb and display it on a page in HostWeb?
Any approaches to achieve this?
Regards,
Rivin Jose.Hi Rivin,
There seems no need to query an app web from host web cause App for SharePoint is designed to work as an “advanced web part” solution, it should work as a separate
component of a SharePoint site which shouldn’t be taken care on the host web side.
If you simply want to display data from app web in the host web, add an App Part into a page in the host web would be the best option for you as what Dan suggests.
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How can i recover my data from an old hard drive after replacing it?
How can I recover my data from an old hard drive after replacing it?
Internal or external hard drive? Was the drive still working before you replaced it?
-
I recently transferred my ITunes library to an external hard drive. I made sure to copy all the data from the saved location. After the transfer I noticed that a lot of albums are missing the first song and some recently purchased albums are missing. Is there any way to recover the data? Thanks for any help.
I may have found an answer here:
http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive
They only thing I can assume is that my external hard drive was slow to start and iTunes defaulted to its old directory (see the last paragraph at the link above). However, once my external was recognized shouldn't everything have fixed itself?
Message was edited by: williamson42
Message was edited by: williamson42 -
Having trouble with music apps shutting down, even after I swipe them off the screen. They go off then come back on in a few minutes. This happens in my car either ubs plugged in, or bluetooth. ANy one else have that issue?
Hi, beth.lau.gr.
Thank you for visiting Apple Support Communities.
I understand you have been experiencing issues with your iPhone restarting and showing you a blue screen. I wont be able to give you an exact answer as to why this is happening. However, this is the most relevant troubleshooting article for this issue. This article also provides options to reach out to us via phone for additional assistance.
If your iOS device restarts, displays the Apple logo, or powers off while you're using it
http://support.apple.com/en-us/HT203899
Cheers,
Jason H. -
How to store data from a complex query and only fresh hourly or daily?
We have a report which runs quite slow (1-2 minutes) because the query is quite complicate, so we would like to run this query daily only and store in a table so for those procedures that need to use this complex query as a subquery, can just join to this table directly to get results.
However, I am not sure what kind of object I should use to store data for this complex query. Is data in global temp table only persist within transaction? I need something that can persist the data and be access by procedures.
Any suggestions are welcome,
CheersThank you for your reply. I looked at the materialized view earlier on, but have some difficulties to use it. So I have some questions here:
1.The complex query is not a sum or aggregate functions, it just need to get data from different tables based on different conditions, in this case is it still appropriate to use meterialized view?
2.If it is, I created one, but how to use it in my procedure? From the articles I read, it seems I can't just query from this view directly. So do I need to keep the complex query in my procedure and how the procedure will use the meterialized view instead?
3. I also put the complex query in a normal view, then create a materialized view for this normal view (I expect the data from the complex query will be cache here), then in the procedure I just select * from my_NormalView, but it takes the same time to run even when I set the QUERY_REWRITE_ENABLED to true in the alter session. So I am not sure what else I need to do to make sure the procedure use the materialized view instead of the normal view. Can I query from the Materialized View directly?
Below in the code I copied from one of the article to create the materialized view based on my normal view:
CREATE MATERIALIZED VIEW HK3ControlDB.MW_RIRating
PCTFREE 5 PCTUSED 60
TABLESPACE "USERS"
STORAGE (INITIAL 50K NEXT 50K)
USING INDEX STORAGE (INITIAL 25K NEXT 25K)
REFRESH START WITH ROUND(SYSDATE + 1) + 11/24
NEXT NEXT_DAY(TRUNC(SYSDATE), 'MONDAY') + 15/24
enable query rewrite
AS SELECT * FROM HK3ControlDB.VW_RIRating;
Cheers -
Error when passing data from app server...
Hello Experts,
I am encountering an error when trying to pass data from application server
to my internal table. Below is the error:
"You cannot convert the character set"
Hope you can help me guys.Thank you and take care!Hi ,
ABAP code for uploading a TAB delimited file into an internal table. See code below for structures. The code is base on uploading a simple txt file.
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Reward points if it is usefull ..
Girish -
Is it possible to store dat from word file into a table
Hi Experts,
I have an Office UI element on my web dynpro View. It is selected as MS Word. Now I want to save data from this word file to a table in SAP. Can we have a data element which can store such type of large data. Please suggest.
Regards,
Vaibhav Tiwari.>But we can't have a table attribute of this type
Actually you can. You can define a database column as RAW STRING. This is exactly the same as a XSTRING variable and in your SQL statement you just pass it an XSTRING. It will store the entire contents of the XSTRING as a single column in the database. Large size is not a problem. -
Store data from a table into excel sheet and email
Hi all,
I am just wondering, i m not sure where to start. I want to insert data from a table into an excel spread sheet.
I'm working on a stored procedure with 3 input parameters:
1. the actual query
2. userid
3. the column headers (comma separated) - these will be in the same order as the outer select statement in the query itself. I will use the column headers for the respective columns in Excel worksheet.
When the proc is executed, the excel is populated. If the record count is > 65536, then I need to create multiple worksheets in the same excel file.
How can i do that? Can any body please help with this..?We are doing like this ( Not sure whether it is the best method available)
--Get the output of the query (Since the number of columns is not fixed you would have to use dbms_sql package)
--loop through the output and write into a file, for example test.csv, using UTL_FILE package
--load the file into a blob variable(we are doing it by loading it into a table)
--For mailing You can use the below package
http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
Mailing code we are using is given below:
CREATE OR REPLACE procedure xls_mail(
p_sender varchar2, -- sender, example: 'Me <[email protected]>'
p_recipients varchar2, -- recipients, example: 'Someone <[email protected]>'
p_subject varchar2, -- subject
p_text varchar2, -- text
p_filename varchar2, -- name of xls file
p_blob blob -- xls file
) is
conn utl_smtp.connection;
i number;
len number;
BEGIN
conn := demo_mail.begin_mail(
sender => p_sender,
recipients => p_recipients,
subject => p_subject,
mime_type => demo_mail.MULTIPART_MIME_TYPE);
demo_mail.begin_attachment(
conn => conn,
mime_type => 'application/xls',
inline => TRUE,
filename => p_filename,
transfer_enc => 'base64');
-- split the Base64 encoded attachment into multiple lines
i := 1;
len := DBMS_LOB.getLength(p_blob);
WHILE (i < len) LOOP
IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
ELSE
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, (len - i)+1, i)));
END IF;
UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
END LOOP;
demo_mail.end_attachment(conn => conn);
demo_mail.attach_text(
conn => conn,
data => p_text,
mime_type => 'text/html');
demo_mail.end_mail( conn => conn );
END;
Maybe you are looking for
-
I have a MacBook with Snow Leopard 10.6.8. The last few weeks it has been constantly dropping internet connection, and one of these messages appear on the page: "Safari cannot open this page because the server where this page is located isn't respond
-
Vertical Menu Background Wrong in IE
I have a vertical spry menu in the left column of a template with a top row, two columns in center, and a bottom row. I set a different background color for the menu items by setting ul.MenuBarVertical a {background-color: #f0f000;....} in SpryMenuBa
-
Contact Form won't display input text
Hi, I'm trying to create a flash contact form that sends the user's message on enter key. Therefore I need you to help me do this and also help me understand why my form isn't displaying right when I have a mask for it. To get a better picture of the
-
Recommend a functional and fast HD encoder for .m2t files hat "copy freely"
Now that HD .m2t files are becoming very common place, what program do you recommend to encode into mp4 format? I'm especially referring to 2048 and 2112 PID which are .m2t files and wanting to encode into .m4v files for ATV. Currently Handbrake chok
-
Creating infered entity instances
How can I create infered entity instances..in opa 10.4. When I am trying to write rule using the "exists" keyword.. its not compiling as "Infered Instance" but it compiles as normal conclusion. and how can I create inferred instances conditionally..