Set/get an Insertion Point in a table cell
I'm an iteration through the cells in a table to a series of calls to ITableCommands::SetCellText (). This written properly in cells, but I also need to set the insertion point to the first character in the cell somehow. I have the GridAddress - is - it possible to get the selection of who? (I was able to select the entire cell, but I want to get the text of her selection. Does anyone know how? Thank you.
Bob
I had the TextIndex of the cell using ITextStoryThread::GetTextStart.
Tags: InDesign
Similar Questions
-
Bullet points list beyond table cell displyaing
Just need of a small workaround / difficulty for a list style - basically in Firefox, the ball towards the left, view the points beyond the cell of the table, they are found in:
link
Any ideas to fix this?
See you soon.Set the margin and the filling of the ul to zero.
--
Murray - ICQ 71997575
Adobe Community Expert
(If you * MUST * write me, don't don't LAUGH when you do!)
==================
http://www.dreamweavermx-templates.com - template Triage!
http://www.projectseven.com/go - DW FAQs, tutorials & resources
http://www.dwfaq.com - DW FAQs, tutorials & resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
=================="Iain71" wrote in message
News:evts8i$Bf0$1@forums. Macromedia.com...
> Just need of a small workaround / difficulty for the list style - essentially in
> Firefox.
> points thumbnails displayed on the left, beyond the table cell
> they are in:
>
> http://www.choice-apex.com/
>
> Any ideas to fix this?
>
> Cheers.
> -
get location from pixel coordinates to table cell
I would like the opposite of what the MakePoint() function. Instead of providing an index of table of row/column cell, I would get the coordinates of the beginning of a table of mouse cell.
Is there a special function to do this?
Hello ElectroLund,
I think GetTableCellRangeRect is what you are looking for.
To get the mouse coordinates table cell using GetTableCellFromPoint.
Constantine.
-
How can I make the JPG images inserted into a visible table cell?
Dreamweaver CS4 - Macintosh iMac OSX 10.9.5
DW has been great to work for ten years. I have a very simple website with a few tables and multiple images.
He did all of a sudden all the images I have insert invisible. The 'elements - Visual Aids Invisible' is checked.
I need to make changes to the site, but I'm frustrated. I can't add or replace images.
I don't want to upgrade to creative cloud.
Help!
Benniemc wrote:
Dreamweaver CS4 - Macintosh iMac OSX 10.9.5
DW works a lot for ten years. I have a very simple website with a few tables and multiple images.
He suddenly made all the images I have insert invisible. The 'elements - Visual Aids Invisible' is checked.
It's all good and dandy that Nancy and Jon say that they see your site online will be images. Correct me if I'm wrong but... the real problem is that just inserted images are not visible in Dreamweaver making any visibility on the site online a moot point, right?
best,
Shocker
-
DW CS6 Valign a table cell?
I use DW since Macromedia days. I started my site Web to help teach yourself the publication of Laura Lemay Web with HTML 3, released in 1996. I learned HTML 3. I learned to use Dreamweaver. I have maintained my site without too many problems, relying on DW. Until the CS6.
Now I'm lost. I only want to vertically align a small icon (a 30 x 30 px JPEG) and 10-point in a table cell text. The cell is a length of three cells. The code looks like this:
< td colspan = "3" valign = "middle" >
"" < img src = "... / images/misc/little-stars/Tiny-Star-1.jpg" width = "30" height = "31" border = "0" >
< span class = "verdana10" > - in time for filming! (rules of < em > Dave < /em > clock!) </span >
< table >It can be seen on the Web here. http://www.techno-Imaging.com/gal15summer/gal2015summer.html
I understand that does not support HTML5 valign = "middle" and that I should use a CSS style. But most browsers should be backwards compatible. I prefer to use the old code in this instance.
If I knew how to add a CSS class to my default style sheet I would.
TIA,-Dave
Do what you want to achieve? (Although course without border)
Remove the valign = "middle" and insert this code at the end of the img element:
"img src ="... / images/misc/little-stars/Tiny-Star-1.jpg "width ="30"height ="31"border ="0" style =" "vertical-align: middle;" "
Us-hh
-
How can I get a name of table 1, column A, if column B is a negative number and insert the names of table 2?
What is the formula?
You can do this with a column of "index" in table 1, as this assistance:
The formula in C2, filled to the bottom:
IF (B =<>
That increments a counter each time that it finds a negative number in column B.
In the second table, you can retrieve a list of negative values in this way:
The formula in A2, filled to the bottom:
= INDEX (array 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0))
It takes the line number, the formula is activated, subtracts 1 to the header line and look up the result in the column of table 1 C. If it finds a match, it feeds the line number to the INDEX page with retrieves the value of the column of table 1A.
To hide the red triangles of signage wrap the IFERROR formula, like this:
= SIERREUR (INDEX (table 1::A, CORRESPONDENCE (LINE (−1, Table 1::C), 0)),"")
Of course, you can also simply filter on column B without the need to set up a column from another table or index.
SG
-
How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point. I've been messing around with the without success. I'm under Labview 2012.
Thank you!
Townes wrote:
I can't understand what you mean. I have no formal training with labview. It took me a long time to write the simple program that I joined. Any guidance would be greatly appreciated!
Its pretty normal for a beginner to take the time to write code. Right-click the map of waveform > Create > property node > historical data, you will get a property node, keep this at the beginning of the code and create a constant. You can also go to the VI properties and > run and select "clear indicators when it is called.
I recommend you to go through the basic materials of LabVIEW which will give you an understanding on the basics of bases/components of LabVIEW.
-
How to set the insertion point in TextInput at the beginning of the app
I can set the focus to a TextInput to the launch of the app with focusManager.setFocus (userTxt), but the insertion point is not in the TextInput. How can I do this?In the html-template to your project folder, the index.template.html file write code like java script
function getfocus()
{
document.getElementById("${application}").focus ();
Returns true;
}and use the onload function.
you will get the point insertion and update -
AS: getting an integer from the object reference in the text to the insertion point
I think the merger of data that I need a whole number of the insertion point. I have a practical object reference that says: 'text 78 to character... ". »
I'm trying different ways to get this whole first, but everything the average back fail to transform into an integer. Brute force such as the constraint do not work. How to extract '78' of an object reference? Thanks, sam
"Index of objRef.
-
Inserting blob in a table: problems
I wanted to insert a picture into the database using PLSQL table. Please let me know if the image file must be on a database server or I can insert it premises as well. Please find below my code and the error I get.
Call to the procedure and the error
My procedure to insert data into the tableBEGIN load_blob_from_file ( 'D:\PRoJeCt-RS\OracleError', 'item', 'item_blob', 'id', '2'); END; BEGIN * ERROR at line 1: ORA-22285: non-existent directory or file for FILEEXISTS operation ORA-06512: at "SYS.DBMS_LOB", line 504 ORA-06512: at "CMSRTPGM.LOAD_BLOB_FROM_FILE", line 18 ORA-06512: at line 2
The table structureCREATE OR REPLACE PROCEDURE load_blob_from_file ( src_file_name IN VARCHAR2 , table_name IN VARCHAR2 , column_name IN VARCHAR2 , primary_key_name IN VARCHAR2 , primary_key_value IN VARCHAR2 ) IS -- Define local variables for DBMS_LOB.LOADCLOBFROMFILE procedure. des_blob BLOB; src_blob BFILE := BFILENAME('GENERIC',src_file_name); des_offset NUMBER := 1; src_offset NUMBER := 1; -- Define a pre-reading size. src_blob_size NUMBER; -- Define local variable for Native Dynamic SQL. stmt VARCHAR2(2000); BEGIN -- Opening source file is a mandatory operation. IF dbms_lob.fileexists(src_blob) = 1 AND NOT dbms_lob.isopen(src_blob) = 1 THEN src_blob_size := dbms_lob.getlength(src_blob); dbms_lob.open(src_blob,DBMS_LOB.LOB_READONLY); END IF; -- Assign dynamic string to statement. -- We are going to obtain the clob locator (pointer) to use later stmt := 'UPDATE '||table_name||' ' || 'SET '||column_name||' = empty_blob() ' || 'WHERE '||primary_key_name||' = '||''''||primary_key_value||''' ' || 'RETURNING '||column_name||' INTO :locator'; -- Run dynamic statement. -- the locator (pointer) to the blob will assigned to des_blob EXECUTE IMMEDIATE stmt USING OUT des_blob; -- Read and write file to BLOB, close source file and commit. dbms_lob.loadblobfromfile( dest_lob => des_blob , src_bfile => src_blob , amount => dbms_lob.getlength(src_blob) , dest_offset => des_offset , src_offset => src_offset ); -- Close open source file. dbms_lob.close(src_blob); -- Commit write and conditionally acknowledge it. IF src_blob_size = dbms_lob.getlength(des_blob) THEN $IF $$DEBUG = 1 $THEN dbms_output.put_line('Success!'); $END ROLLBACK; ELSE $IF $$DEBUG = 1 $THEN dbms_output.put_line('Failure.'); $END RAISE dbms_lob.operation_failed; END IF; END load_blob_from_file;
Thanks in advance!CREATE TABLE ITEM ( "ID" NUMBER, "TITLE" VARCHAR2(50), "ITEM_BLOB" BLOB )
Concerning
34MCA2K2
Published by: BluShadow on June 14, 2012 13:31
addition of {noformat}{noformat} tags for readability. Please read {message:id=9360002} and learn to do this yourself.
Yes,
Start by creating an object directory point to a physical directory on the server database as the 'oracle '.
user has read/write permissions.CONN / AS SYSDBA
CREATE or REPLACE DIRECTORY nom_repertoire as 'D:\Applications ';
GRANT READ, WRITE ON DIRECTORY NOM_REPERTOIRE TO USER_NAME;Here is the diagram user USER_NAME.
Then,.
create and populate a table to contain the images in the database your user to user schema.and try this procedure...
DECLARE l_dir VARCHAR2(10) := 'DIR_NAME'; ----> Is the Directory Object we created. l_file VARCHAR2(20) := 'site_logo.gif'; ----- > The image to be located in the DB Server in the Directory Path DIR_NAME mentioned. l_bfile BFILE; l_blob BLOB; BEGIN INSERT INTO images (id, name, image) VALUES (images_seq.NEXTVAL, l_file, empty_blob()) RETURN image INTO l_blob; l_bfile := BFILENAME(l_dir, l_file); DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly); DBMS_LOB.loadfromfile(l_blob, l_bfile, DBMS_LOB.getlength(l_bfile)); DBMS_LOB.fileclose(l_bfile); COMMIT; END;
Thank you
Shankar -
Get an "Unable to locate required tables" error at startup
Original title: unable to locate required tables
I have windows 7 ultimate 32 bit. When I used my computer last night and stop it, everything was fine. But today morning when I start my PC, instead of the windows loading screen, I get the following message:
"FATAL ERROR: unable to locate the tables needed to make adjustments." Press any key to continue initialization. "
When I press a key, it gives a list of options to start windows in:
(1) safe mode
(2) safe mode with networking
(3) safe mode with command prompt
(4) last known good configuration
(5) start windows normally
When I choose the option 4 or 5, the windows of the loading screen (which says "STARTING WINDOWS") appears after which it hangs or restarts.
When I choose option 1, it loads several files up to a named "CLASSPNP. SYS "(pas sûr dele de nom) after which it hangs or restarts." I tried to start my DVD win 7 to repair my installation but after loading the necessary files, it just reboots or freezes at the loading screen windows.
My PC Config:
Intel Dual Core 2.00GHZ
3 GB RAM DDR2
Seagate 160GB HDD
DVD - RW drive LG
Gigabyte motherboard with BIOS F5 v 945GCMXS2 (I've never risked updated my BIOS).
I do not have any hardware changes since the last successful startup (which was yesterday). Kindly help me with this problem.
Try this:
1. put your BIOS so that it uses the DVD drive as its primary boot device.
2 start the computer with the Windows 7 repair CD or with your Windows 7 installation DVD.
3. press a button if you are prompted to start from the DVD.
4. When prompted, select "Safe Mode Command Prompt".
5 log in as administrator if you are prompted.
6. Select repair when prompted.
7. When you are prompted, select System Restore.
8. set Windows to a point before this problem occurred.
_________________________If this answer solves your problem, please click "Propose as answer" so that the thread can be closed. Thank you.
-
How to get the text formatting in the tables
Dear experts and aid
For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
[[Garneau, 1990 #12]] » [9]
The good article can also be locally as text, e.g. [9]
Then follow the same (or smaller) number of paragraphs with text formatted like this:
[9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.Is it possible to replace in the body of the function below the next song
while(pgf.ObjectValid()) { pgfText = GetText (pgf, newDoc); gaBibliography.push(pgfText); pgf = pgf.NextPgfInFlow; }
with this
while(pgf.ObjectValid()) { gaBibliography.push(pgf); pgf = pgf.NextPgfInFlow; }
Do I need a special statement of the gaBibliography range?
And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?Currently, I read in the tables as "strings" (function GetText not shown):
var gaFmtCitsRaw = []; // left column in processed RTF var gaFmtCitsFmt = []; // right column in processed RTF var gaBibliography= []; // bibliography lines from processed RTF // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf function ReadFileRTF (fileName) { var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ; var TAB = String.fromCharCode(8); // FM has wrong ASCI for TAB var parts = []; openParams = GetOpenDefaultParams(); openReturnParams = new PropVals(); newDoc = Open (fileName, openParams, openReturnParams); pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf; // get first pgf in flow // --- read the temp/formatted citations while(pgf.ObjectValid()) { pgfText = GetText (pgf, newDoc); if (pgfText.substring (0,2) == "[[") { // citation lines start with [[ parts = pgfText.split(TAB); // get the two parts of the line gaFmtCitsRaw.push (parts[0]); // Push the result onto the global array gaFmtCitsFmt.push (parts[1]); pgf = pgf.NextPgfInFlow; } else { break } } // --- read the bibliography while(pgf.ObjectValid()) { // until end of doc pgfText = GetText (pgf, newDoc); gaBibliography.push(pgfText); pgf = pgf.NextPgfInFlow; } newDoc.Close (Constants.FF_CLOSE_MODIFIED); } // --- end ReadFileRTF
The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...
Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.
// Add a new paragraph after the current paragraph. var newPgf = oDoc.NewSeriesPgf (lastPgf); var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0)); oDoc.TextSelection = textRange; oDoc.Paste ();
-Rick
-
Doubt about inserting data into a table
Hi all, when I try to insert data into a table through an anonymous block, the pl/sql block runs successfully, but the data are not get inserted. Can someone please tell me where I am doing wrong?
Thanks in advance!SQL> DECLARE 2 3 V_A NUMBER; 4 5 V_B NUMBER; 6 7 v_message varchar2(25); 8 9 10 BEGIN 11 12 13 select regal.regal_inv_landed_cost_seq.NEXTVAL into V_A from dual ; 14 15 select regal.regal_inv_landed_cost_seq.currval into V_B from dual ; 16 17 INSERT INTO rcv_transactions_interface 18 ( 19 INTERFACE_TRANSACTION_ID, 20 HEADER_INTERFACE_ID, 21 GROUP_ID, 22 TRANSACTION_TYPE, 23 TRANSACTION_DATE, 24 PROCESSING_STATUS_CODE, 25 PROCESSING_MODE_CODE, 26 TRANSACTION_STATUS_CODE, 27 QUANTITY, 28 LAST_UPDATE_DATE, 29 LAST_UPDATED_BY, 30 CREATION_DATE, 31 CREATED_BY, 32 RECEIPT_SOURCE_CODE, 33 DESTINATION_TYPE_CODE, 34 AUTO_TRANSACT_CODE, 35 SOURCE_DOCUMENT_CODE, 36 UNIT_OF_MEASURE, 37 ITEM_ID, 38 UOM_CODE, 39 EMPLOYEE_ID, 40 SHIPMENT_HEADER_ID, 41 SHIPMENT_LINE_ID, 42 TO_ORGANIZATION_ID, 43 SUBINVENTORY, 44 FROM_ORGANIZATION_ID, 45 FROM_SUBINVENTORY 46 ) 47 48 SELECT 49 regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_ id 50 V_A, --Header Interface ID 51 V_B, --Group ID 52 'Ship', --Transaction Type 53 sysdate, --Transaction Date 54 'PENDING', --Processing Status Code 55 'BATCH', --Processing Mode Code 56 'PENDING', --Transaction Status Cod e 57 lc.quantity_received, --Quantity 58 lc.last_update_date, --last update date 59 lc.last_updated_by, --last updated by 60 sysdate, --creation date 61 lc.created_by, --created by 62 'INVENTORY', --Receipt source Code 63 'INVENTORY', --Destination Type Code 64 'DELIVER' , --AUT Transact Code 65 'INVENTORY', --Source Document Code 66 msi.primary_uom_code , --Unit Of Measure 67 msi.inventory_item_id, --Item ID 68 msi.primary_unit_of_measure, --UOM COde 69 fnd.user_id, 70 V_A, --Shipment Header ID 71 V_B, --SHipment Line ID 72 82, --To Organization ID 73 'Brooklyn', --Sub Inventory ID 74 81, --From Organization 75 'Vessel' --From Subinventory 76 77 FROM 78 regal.regal_inv_landed_cost_tab lc, 79 fnd_user fnd, 80 mtl_system_items msi 81 82 WHERE 83 lc.organization_id = msi.organization_id 84 AND lc.inventory_item_id = msi.inventory_item_id 85 AND lc.created_by = fnd.created_by; 86 87 commit; 88 v_message := SQL%ROWCOUNT; 89 dbms_output.put_line('v_message'); 90 END; 91 / v_message PL/SQL procedure successfully completed. SQL> select * from rcv_transactions_interface; no rows selected
There is no problem with inserting data!
Only there is no data! This means that your select statement retrieves no rows.
You can see the output of your program (0). This means that there where no line in the result set.Please check the output of your tax return independently:
SELECT -- regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_id -- V_A, --Header Interface ID -- V_B, --Group ID 'Ship', --Transaction Type sysdate, --Transaction Date 'PENDING', --Processing Status Code 'BATCH', --Processing Mode Code 'PENDING', --Transaction Status Code lc.quantity_received, --Quantity lc.last_update_date, --last update date lc.last_updated_by, --last updated by sysdate, --creation date lc.created_by, --created by 'INVENTORY', --Receipt source Code 'INVENTORY', --Destination Type Code 'DELIVER' , --AUT Transact Code 'INVENTORY', --Source Document Code msi.primary_uom_code , --Unit Of Measure msi.inventory_item_id, --Item ID msi.primary_unit_of_measure, --UOM COde fnd.user_id, -- V_A, --Shipment Header ID -- V_B, --SHipment Line ID 82, --To Organization ID 'Brooklyn', --Sub Inventory ID 81, --From Organization 'Vessel' --From Subinventory FROM regal.regal_inv_landed_cost_tab lc, fnd_user fnd, mtl_system_items msi WHERE lc.organization_id = msi.organization_id AND lc.inventory_item_id = msi.inventory_item_id AND lc.created_by = fnd.created_by;
Published by: hm on 13.10.2011 23:19
I removed the references of the sequence and the variables V_A and YaeUb.
BTW: Why do you want to include V_A and YaeUb in two different columns?The use of sequences in your code seems a bit strange to me. But this has nothing to do with your question.
-
Hello
I want to add 3 line breaks after every table in my document. So I want to convert tables in text (sorry, but it makes sense for reasons of export ;-)).
Step 2 I had with: ' app.activeDocument.stories.everyItem (). tables.everyItem () .convertToText ("\t", "\r");
But I can't find out how to place an insert-text with '\r\r\r' after each table (step 2).
Thanks a lot for your help
Hello
One approach is to loop through the insertion points using the property storyOffset of the tables:
// Get the array of tables' insertionPoints // --- var ips = app.activeDocument.stories.everyItem().tables.everyItem().storyOffset, i = ips.length; while( i-- ) with( ips[i].insertionPoints.nextItem(ips[i]) ) isValid && contents = '\r\r\r';
@+
Marc
-
Hi all
I use forms [32 bit] Version 6.0.8.24.1 (Production)
Oracle Database 10g Release 10.2.0.1.0 - Production
I have settings such as the (optional) emp_code and the year (mandatory field - four digits).
Based on the setting that I have to get the detail of a table and these must be inserted at the other table with columns of additions (to hardcode the additional columns).
To achieve this, I intend to get a cursor by selecting the required fields in the table by the way the where clause of the cursor parameters.
by making a loop through the cursor I will insert the records in the other table.
Here, the thing is that the data is going to be huge (since the year is the parameter).
so my approach causes the performance issue.
I heard that there is a different method of insetions
can anyone suggest me the best way (performance wise) other than what I mentioned (if you are aware of)...
Thank you...user13329002 wrote:
Thanks for everyone.
I have to take the data from the table as e_name, e_code, of the table and insert it into another table with some other values such as
e_name, e_code, as well as I add 'n', 'o'.
its something likeinsert into e_emp(emp_name,emp_code,emp_add,emp_status,emp_type) select e_name,e_code,e_add,'O','N') from e_table where e_date = Parameter.
in other words, the values for Emp_status, emp_type I have no values in the e_table.so table and enter in e_table I have to hard code it.
CAL I hard code as I mentioned in my statement examplecan someone clear me of the foregoing.
Thank you...
Published by: user13329002 on February 15, 2011 20:11
Yes... You can hardcode the values for Emp_status, emp_type.
SQL> CREATE TABLE e_emp(emp_code NUMBER(10),emp_status VARCHAR2(1),emp_type VARCHAR2(1)); Table created. SQL> create table e_table as (select * from e_emp); Table created. SQL> INSERT INTO e_table(emp_code) VALUES('1111'); 1 row created. SQL> insert into e_table(emp_code) values('2222'); 1 row created. SQL> select * from e_table; EMP_CODE E E ---------- - - 1111 2222 SQL> insert into e_emp(emp_code,emp_status,emp_type) (select emp_code,'0','N' from e_table); 2 rows created. SQL> select * from e_emp; EMP_CODE E E ---------- - - 1111 0 N 2222 0 N SQL>
I hope this helps.
Kind regards
Claudy
Maybe you are looking for
-
I have recently upgraded to Windows 10 and now can no longer use Firefox. I tried a new install and it did not resolve it. Pages appear as broken images, or the shells of Web pages. I am also unable to access the Mozilla site properly... by clicking
-
Pop - up incomplete missing right buttons in bookmark window
When I use the bookmark button and select 'Bookmark this Page' pop-up window to place the bookmark is incomplete. The right side is cut off and the buttons to select or add folders are not displayed.
-
Didn't know where to put that theres no problems forum here. Move to the right place, if you wish. Im a House of 64-bit windows 7 in the course of execution. Ive been having a problem with the start up like the windows 7 loading screen freezes and I
-
updates for iTunes/Quicktime/Safari blocked installation
I am currently using and old verson of iTunes and Safari. I tried to update both, but have not been able to. I can download the updates on the Apple site and run the process installation, but when it is finished I get a message saying "the system adm
-
Dear Sir I had problem with my laptop (inspiron 5521) speakers and he sent to dell support center and they installed new speaker but I discovered that the sound is lower than it used to be confronted with the problem. also when I used to use to conne