Reg. decimal alignment in selected columns in a Table
Hi all
Can someone help me to align the cells in the selected column of the table in decimal?
Thank you in advance.
Kind regards
Rani Sathya M
Hello
As Ariel wrote, in the case of table you need not type "tabs" within cells to achieve a goal.
Here is an example of the last column setting
var mCols = app.activeDocument.textFrames[0].tables[0].columns[-1], mTarget = mCols.cells.everyItem().texts.everyItem().getElements(), len = mTarget.length; while (len-->0) mTarget[len].tabStops.add({ alignment: TabStopAlignment.CHARACTER_ALIGN, alignmentCharacter: ".", position: mCols.width - 10 });
Notice: it should work in a simple doc for example (1 textFrame and 1 table)
Jarek
Tags: InDesign
Similar Questions
-
alignment of the column in a table
Hello
How to change the alignment of the column in Fe of the text fields in a table.
Manual option doesn.t work (no not the alingment position). I tried to add
in the column of the element options formatting, but I have not found a solution.style=text-align:right ( i cut quote)
Someone knows how to change that?
Maybe sth simillar to the same problem in IR:
I understand ".apexir_WORKSHEET_DATA" it is only the definition of IR and it does not work with tabular.apexir_WORKSHEET_DATA td, .apexir_WORKSHEET_DATA td div{text-align:right}
Edited by: nirud 2010-03-12 07:53Hello
Will change your tabular presentation of the attributes of the column where you want to apply this style.
Then add to the attributes of the elementstyle=text-align:right
BR, Jari
Published by: jarola on March 14, 2010 11:22
Forum don't like my code
Wrap text-align: right to double quotes -
How to insert point decimal all by selecting data from a table
Hi all
My select requirement says, if the value received with no decimal place then insert decimals before last 2 bytes. I need to recover the data with this condition.
May help people how I can achieve this?
Thanks in advance,
Yvan997936 wrote:
This will not work if the values are of 5 bytes.It should work for any number of digits...
select 1234567/100 from dual;
SELECT DECODE (INSTR (1234567, '.'), 0, 1234567 / 100, 1234567) FROM DUAL;
Output:
12345,67
See you soon,.
Manik.Published by: Marty on April 4, 2013 08:53
-
selection column of the table xml data type
Hello.
I tried the following example with xml as column name data type
So, after that I tried this query to retrieve the State of an attribute data.create table emp_detail( empno number,ename varchar2(32),empdetails sys.xmltype) Insert into EMP_DETAIL (EMPNO, ENAME, EMPDETAILS) Values (1, 'satya', XMLTYPE('<NAME> <FIRSTNAME>SATYA</FIRSTNAME> <LASTNAME>SREE</LASTNAME> <LOC>SECBAD</LOC> </NAME> ')); Insert into EMP_DETAIL (EMPNO, ENAME, EMPDETAILS) Values (2, 'jo', XMLTYPE('<NAME> <FIRSTNAME>JO</FIRSTNAME> <LASTNAME>REDDY</LASTNAME> <LOC>MYPR</LOC> </NAME> '));
But those who above indicates no record...SELECT a.empdetails.extract('//NAME/text()').getStringVal() AS "Table Name" FROM emp_detail a WHERE a.empdetails.existsNode('/NAME') = 1;
Why?
Thank youSQL> SELECT a.empdetails.extract('//NAME/FIRSTNAME/text()').getStringVal() AS "first_name", 2 a.empdetails.extract('//NAME/LASTNAME/text()').getStringVal() AS "last_name", 3 a.empdetails.extract('//NAME/LOC/text()').getStringVal() AS "loc" 4 FROM emp_detail a 5 WHERE a.empdetails.existsNode('/NAME') = 1; first_name last_name loc -------------------- -------------------- -------------------- SATYA SREE SECBAD JO REDDY MYPR
-
Choose the Select columns in interactive report
Well, many have been changed since the last, I have worked in Oracle Apex (he was at the time the HTMLDB) and now back to APEX
It is APEX4.0
I have a report of interatrive on a table that has only 4 columns. One of the column is not displayed when the report charge upward,
as the user selects "column" in the Action menu.
How can I change this? How can I make sure the columns to display in the report and the columns that should be available in the selection list.
I'm sure I'm missing something here. I searched a lot without success so far.
Any help is very appreciated.
user3347974 wrote:
Well, many have been changed since the last, I have worked in Oracle Apex (he was at the time the HTMLDB) and now back to the APEX
It is APEX4.0
I have a report of interatrive on a table that has only 4 columns. One of the column is not displayed when the report charge upward,
as the user selects "column" in the Action menu.
How can I change this? How can I make sure the columns to display in the report and the columns that should be available in the selection list.
I'm sure I'm missing something here. I searched a lot without success so far.
Any help is very appreciated.
In a developer session, change the report so that all columns are displayed and save it as the default main.
-
Error when selecting all the columns in the table
Hi all
When I write a query by selecting all the columns of the table fromo using * function as well as another new column, I get the error,
Select *, to_char (hiredate, 'fmday') day
WCP
where to_char (hiredate, 'fmday') ('Monday');
ERROR on line 1:
ORA-00923: THE KEYWORD not found where expected
I need all the columns in the table with the column user-defined 'day '. Is there a way I can get the result like this?
Hello
padders wrote:
Alias table to use...
Or the name of the table, for example
Select emp.*, to_char (hiredate, "fmday") as day
WCP
where to_char (hiredate, 'fmday') ('Monday');
The bottom line is that * must be qualified (with a table name or alias) when the SELECT clause includes anything else besides *.
-
Align the selection on the artboard - Photoshop
Computing: New Mac Pro running the Adobe CC update
Someone knows a problem with alignment to music while using Photoshop work plans? I have an item on a work plan that I'm trying to focus vertical to a selection, but no matter what I'm doing, it aligns vertical center to the artboard, as if it ignores the selection.
Any help would be appreciated.
Thank you
Spencer
I just found this thread:
https://forums.Adobe.com/thread/2022217
Workaround is fine for now, at least I can align to selection, but it's far from ideal.
Also, when I work within a work plan and start making a new selection, it would be nice if the selection would be contained to the artboard. At that time, it performs a selection on top of everything, but that does not help me a lot if I'm working within the boundaries of the artboard.
Thanks for a quick reply,
Spencer
-
Select columns when downloading interactive reports
Hello
We have a requirement defined by Oracle Corporate Security Architecture Review Board to prevent some columns to display when downloading interactive reports in csv format. They should appear on the report, but not on the csv output.
I vaguely remember it was possible when interactive reports have been made public, but I can't find a way to do so at the ApEx 4.1? When I go to the print attributes > columns in the report, I can see the list of columns, and they all get to see the report = Yes, but there is no way to make it no. it seems that all the selected columns to display in the interactive report are automatically included in the download.
Our applications are hosted on apex.oraclecorp.com, I can provide more details if necessary.
Please inform if there is a way to exclude the columns during the download.
Kind regards
Isabelle FallonChange the definition of column you want in the CSV file and add a conditional view:
Condition of Type: Ask! = Expression 1
Expression 1: CSV -
selective column of data pump export
Dear Experts,
I'm using Oracle 11 g. With the help of data pump is it possible to choose only some columns in a table to export.
Thanks in advance.spur230 wrote:
Dear Experts,I'm using Oracle 11 g. With the help of data pump is it possible to choose only some columns in a table to export.
Thanks in advance.
It is not possible in data pum export only selective table columns. However you can try next.
(1) create table export_selective as select c1, c2 from the source table; (you can create it in the source db)
(2) expdp export_selective table
(3) export_selective impdp in the target table
Reverse:
Dblink allows to obtain this table created with selective columns using DEC -
Alignment of columns of a table using the control variable
Hi I'm new to Javascript, using only Applescript before.
I use Indesign 5.5 on Mac and I learn Javascript by adapting old Applescripts I have used for years.
So, with an existing table, one of the things I want to do is to put alignments in the columns by using a variable. Here's what I've tried so far:
function setColumnWidthsAndAlignments() { var myWidths=[29, 23, 13, 13, 13, 13]; var myAlignments=["leftAlign","leftAlign","centerAlign","centerAlign","rightAlign","rightAlign"]; var numberOfColumns=myTable.columns.count(); for (c=0;c<numberOfColumns;c++) { myTable.columns[c].width=myWidths[c]; myTable.columns[c].cells.everyItem().texts.everyItem().justification=Justification.myAlignments[c]; } }
but I get an error
-Object does not support the property or method 'myAlignments '.
If I throw the myAlignments variable and just put for example leftAlign, it works, then maybe I'm not declares the variable correctly?
I know that I could add a few extra paragraph styles and cell styles and style of the table like that, but I it would be a good learning exercise (more of which I want to limit the number of paragraph in document styles - there enough already!)
If anyone is really interested, I would like to place the script here and would like to really comment on how the structure could be improved or optimized or simply to tell me if I'm heading in the right direction.
Thank you and best regards,
Malcolm
//Simple table script 1 app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll; //make sure that user interactivity is switched on ???? why???? if(checkForOpenDocs()) //checks to see if there are any open Indesign documents { if(targetMyTable()) //checks to see if the selection is inside a table - if not, gives an error dialog - if it is, returns variable myTable which can be used to target different parts of the table { // selectLastRow(); //resetTable(); //applyTableTextParaStyle(); //removeRules(); //applyAlternatingFills(); setColumnWidthsAndAlignments(); //setRowHeightsAndInsets(); } } function checkForOpenDocs() { if (app.documents.length!=0) //there is at least one document open { myDocument = app.documents.item(0); //get the id of the frontmost document - might be useful? return true; } else { alert("There are no documents open"); return false; } } function targetMyTable() //no matter what is selected in the table, change selection to be whole table { if(app.selection[0]==null) //if there is nothing selected { alert("There is nothing selected."); return false } var mySelection = app.selection[0]; switch(mySelection.constructor.name) { //When a row, a column, or a range of cells is //selected, the type returned is always "Cell" case "Cell": myTable=mySelection.parent; return true break; case "Table": myTable=mySelection; return true break; case "InsertionPoint": case "Character": case "Word": case "TextStyleRange": case "Line": case "Paragraph": case "TextColumn": case "Text": if(app.selection[0].parent.constructor.name == "Cell") { myTable=mySelection.parent.parent; return true } else { alert("The selection is not inside a table."); return false } break; case "Rectangle": case "Oval": case "Polygon": case "GraphicLine": case "TextFrame": if(app.selection[0].parent.parent.constructor.name == "Cell") { myTable=mySelection.parent.parent.parent; return true } else { alert("The selection is not inside a table."); return false } break; case "Image": case "PDF": case "EPS": if(app.selection[0].parent.parent.parent.constructor.name == "Cell") { myTable=mySelection.parent.parent.parent.parent; return true } else { alert("The selection is not inside a table."); return false } break; default: break; } } function resetTable() { myTable.cells.everyItem().clearCellStyleOverrides (true); } function selectLastRow() { //myTable.cells.itemByRange(0,-1).select(); myTable.rows.itemByRange(-1,-1).select(); } function applyTableTextParaStyle() { myParagraphStyle=myDocument.paragraphStyles.item("•table text"); myTable.cells.everyItem().texts.everyItem().appliedParagraphStyle = myParagraphStyle; } function removeRules() { myTable.cells.everyItem().topEdgeStrokeWeight=0; myTable.cells.everyItem().bottomEdgeStrokeWeight=0; myTable.cells.everyItem().leftEdgeStrokeWeight=0; myTable.cells.everyItem().rightEdgeStrokeWeight=0; } function applyAlternatingFills() { myColor=myDocument.swatches.item("Black"); myTable.alternatingFills=AlternatingFillsTypes.alternatingRows; myTable.startRowFillColor=myColor; myTable.startRowFillTint=20; myTable.endRowFillColor=myColor; myTable.endRowFillTint = 0; } function setColumnWidthsAndAlignments() { var myWidths=[29, 23, 13, 13, 13, 13]; var myAlignments=["leftAlign","leftAlign","centerAlign","centerAlign","rightAlign","rightAlign"]; var numberOfColumns=myTable.columns.count(); for (c=0;c<numberOfColumns;c++) { myTable.columns[c].width=myWidths[c]; myTable.columns[c].cells.everyItem().texts.everyItem().justification=Justification.myAlignments[c]; } } function setRowHeightsAndInsets() { myTable.rows.everyItem().minimumHeight=1.058; myInset=0.5; myTable.rows.everyItem().topInset=myInset; myTable.rows.everyItem().bottomInset=myInset; }
Hello
Welcome
myAlignments should be properties, not strings. have not read the second part of your post...
myTable = app.activeDocument.stories[0].tables[0]; setColumnWidthsAndAlignments(myTable) function setColumnWidthsAndAlignments(tableObj) { var myWidths=[29, 23, 13, 13, 13, 13]; var myAlignments=[Justification.LEFT_ALIGN,Justification.LEFT_ALIGN,Justification.CENTER_ALIGN,Justification.CENTER_ALIGN,Justification.RIGHT_ALIGN,Justification.RIGHT_ALIGN]; var numberOfColumns=tableObj.columns.count(); for (c=0;c
-
So I'm not going with the series "Create your first website" through adobe DW and everything went smoothly until I have add code to align the 3 columns. Reference to what I am referring here the link to the page: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt2.html#articlecontentAdob e_numberedheader_5 I'm on the last stage 'position the columns' and everything seems as it should until I enter the code float: left; and once I have it and press F5 my right column does not fit on one line, like the other two and has the word "here" in the line below... I checked my codes many, many times. I do not understand why a column is to the top... Please help
Hi Jeff,
Design view is not 100% reliable. Using Live View or preview in the browser to check your layout behaves.
If not, copy & paste the full HTML CSS integration & code of your test page into a forum post using web > (insert) syntax highlighting > ordinary.
code looks like this...
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
http://ALT-Web.com/
http://Twitter.com/ALTWEB -
Grant select privilege on the table column
Hello
I think that it is not possible to give the right to select level of column in a table.
by example-grant select (col1, col2) on table1 to User1;
Can anyone suggest what might be the way to achieve (apart from creating a view on the table).Hi, Anit,
Anit says:
Hi Frank,.
Thanks for the reply. Nothing bad to see.Then use a notice. It is simpler and more robust.
As that I knew WHAT EVP is used for the column data hide with a null value or other values. do not hide the entire column of the selection operation. Please correct me if I'm wrong.
Maksing the column with a null value or another value is hide the column.
Do what you should always do whenever you have a question. Post some sample data (CREATE TABLE and INSERT statements) and the results desired from these data. In this case, after an authorized user (that is, a user with all privileges) must get results and results that a user with lesser forge privileges.A view (or a copy of the table, as a materialized view) is the only way I know to prevent users to know that there is a column (for example) called credit_card_num.
Use row-level security, you can return NULL when users not allowed to reference credit_card_num, or you can trigger an error if they try to refer to this column. -
Is it possible to select only one column of a table for the redaction?
Hi, converted a Word doc with a table in PDF format. You will need to write a single column of the table.
Is it possible to select only one column for the redaction? When we select and drag downwards, it selects the other columns in the following lines.
With the help of Acrobat X Pro. Any help is appreciated.
Hold down the CTRL key and drag a selection.
-
SQLLDR - load only selected columns from a csv file
Hello
Can we charge only a few selected columns of a big (INFILE) CSV using SLLDR?
Thank you in Advcance
KapilHello
You can take a look at this. It may be useful
DECLARE l_start_file_name varchar2(50) := 'invoice_excel_c'; l_end_file_name varchar2(50) := '.csv'; l_file_name varchar2(100); l_sql varchar(32767); refresh_cdc varchar2(5) := '00304'; begin l_file_name := l_start_file_name||REFRESH_CDC||l_end_file_name; l_sql := 'create table exter_invoice_excel '|| '( '|| 'Product_name varchar2(255), '|| 'Net_Sales Number, '|| 'Net_Adjustments Number, '|| 'Cancels_Count Number, '|| 'Cancels_Amount Number, '|| 'Cashes_Count Number, '|| 'Cashes_Amount Number, '|| 'Claims_Count Number, '|| 'Claims_Amount Number, '|| 'Returns_Count Number, '|| 'Returns_Amount Number, '|| 'Free_Prize_Count Number, '|| 'Free_Prize_Amount Number, '|| 'Free_Promo_Count Number, '|| 'Free_Promo_Amount Number, '|| 'Promo_Credit_Count Number, '|| 'Promo_Credit_Amount Number, '|| 'Return_Commission Number, '|| 'Net_Discounts Number, '|| 'Total_Fees Number, '|| 'Sales_Commission Number, '|| 'Cash_Commission Number, '|| 'Tkt_Charge Number, '|| 'Subscription_Commission Number, '|| 'Interim_Sweeps Number, '|| 'Net_Due Number, '|| 'Retailer_id Number, '|| 'Retailer_Name varchar2(255) '|| ') '|| 'ORGANIZATION EXTERNAL ( '|| ' TYPE oracle_loader '|| ' DEFAULT DIRECTORY GTECHFILES '|| ' ACCESS PARAMETERS ( '|| ' RECORDS DELIMITED BY NEWLINE '|| ' CHARACTERSET WE8MSWIN1252 '|| ' BADFILE ''invoice_excel.bad'' '|| ' DISCARDFILE ''invoice_excel.dis'' '|| ' LOGFILE ''invoice_excel.log'' '|| ' FIELDS TERMINATED BY '','' RTRIM '|| ' MISSING FIELD VALUES ARE NULL '|| ' ) '|| ' LOCATION ('''||l_file_name||''') '|| ' ) '|| 'PARALLEL '|| 'REJECT LIMIT UNLIMITED '; execute immediate l_sql; l_sql:= 'INSERT INTO INVOICE_EXCEL_TEMP '|| ' ( Product_name , '|| ' Net_Sales , '|| ' Net_Adjustments , '|| ' Cancels_Count , '|| ' Cancels_Amount , '|| ' Cashes_Count , '|| ' Cashes_Amount , '|| ' Claims_Count , '|| ' Claims_Amount , '|| ' Returns_Count , '|| ' Returns_Amount , '|| ' Free_Prize_Count , '|| ' Free_Prize_Amount , '|| ' Free_Promo_Count , '|| ' Free_Promo_Amount , '|| ' Promo_Credit_Count , '|| ' Promo_Credit_Amount , '|| ' Return_Commission , '|| ' Net_Discounts , '|| ' Total_Fees , '|| ' Sales_Commission , '|| ' Cash_Commission , '|| ' Tkt_Charge , '|| ' Subscription_Commission , '|| ' Interim_Sweeps , '|| ' Net_Due , '|| ' Retailer_id , '|| ' Retailer_Name , '|| ' SOURCE , '|| ' INSERTED_DATE , '|| ' CDC , '|| ' UPLOADED '|| ') '|| ' select '|| ' ltrim(rtrim(product_name)) , '|| ' Net_Sales , '|| ' Net_Adjustments , '|| ' Cancels_Count , '|| ' Cancels_Amount , '|| ' Cashes_Count , '|| ' Cashes_Amount , '|| ' Claims_Count , '|| ' Claims_Amount , '|| ' Returns_Count , '|| ' Returns_Amount , '|| ' Free_Prize_Count , '|| ' Free_Prize_Amount , '|| ' Free_Promo_Count , '|| ' Free_Promo_Amount , '|| ' Promo_Credit_Count , '|| ' Promo_Credit_Amount , '|| ' Return_Commission , '|| ' Net_Discounts , '|| ' Total_Fees , '|| ' Sales_Commission , '|| ' Cash_Commission , '|| ' Tkt_Charge , '|| ' Subscription_Commission , '|| ' Interim_Sweeps , '|| ' Net_Due , '|| ' Retailer_id , '|| ' Retailer_Name , '|| ' '''||l_file_name ||''', '|| ' sysdate , '|| ' '''|| REFRESH_CDC ||''', '|| '''N''' || 'FROM '|| 'exter_invoice_excel '|| 'WHERE retailer_id is not null and ltrim(rtrim(product_name)) in (''Loto'',''Inst Tk'')'; execute immediate l_sql; l_sql :='drop table exter_invoice_excel'; execute immediate l_sql; exception when others then rollback; l_sql :='drop table exter_invoice_excel'; execute immediate l_sql; debug_message('INVOICE_EXCEL_UPLOAD/'||REFRESH_CDC,'Unexpected Error '||sqlerrm); END; --truncate table invoice_excel_temp
Thank you
-
Select cursor for update: multiple columns of different tables
Hello
I have two tables test1 and test2. I want to udpate the column (DEPT_DSCR) from the TEST1 and TEST2 using select for update and current tables of the... with the cursor.
I have a code drafted as follows:
DECLARE
v_mydept1 TEST1. TYPE % DEPT_CD;
v_mydept2 TEST2. TYPE % DEPT_CD;
CURSOR C1 IS SELECT TEST1. DEPT_CD, TEST2. DEPT_CD OF TEST1, TEST2 WHERE TEST1. DEPT_CD = TEST2. DEPT_CD AND TEST1. DEPT_CD IS 'AA' FOR THE UPDATE OF TEST1. DEPT_DSCR, TEST2. DEPT_DSCR;
BEGIN
OPEN C1;
LOOP
FETCH C1 INTO v_mydept1, v_mydept2;
WHEN EXIT C1% NOTFOUND;
UPDATE TEST1 SET DEPT_DSCR IS "PLSQL1" WHERE CURRENT OF C1;.
SETTING A DAY TEST2 SET DEPT_DSCR = 'PLSQL2' WHERE CURRENT OF C1.
END LOOP;
COMMIT;
END;
The code above when it is run, declares that it runs successfully. But it does not update the columns you want [DEPT_DSCR].
It works only when we want to update one or more columns of the same table... i. e by providing these columns after ' to UPDATE THE.
I don't know what exactly is the problem when you want to update several columns of different tables.
Can someone help me on this?user12944938 wrote:
But it's more the notion of compensation and understanding.See the link below:
http://download.Oracle.com/docs/CD/B10501_01/AppDev.920/a97269/pc_06sql.htmSee the section RESTRICTION in the link above.
Twinkle
Maybe you are looking for
-
I just added an iTunes gift card and I am trying to make a purchase. My current credit card is too low to make this purchase. How can I get the gift card funds get used first? * I tried solvent of the card, but do not know how do that either on accou
-
Some Web sites do not show text correctly but only in Firefox
Firefox does not display text on some web sites, all I get are |, of arrows, points etc and yet I can see very well in Chrome or IE pages. IV removed my FF, disabled theme Add ons and check if everything is updated and still nothing. Its really annoy
-
Access waveform data passed in a DLL
Hello I'm working on a LabVIEW application that processes the continuous stream, 2 ms/s, 32 analog input channels, each channel. This application has a DLL built in order to improve the table great handling performance in LabVIEW. Initially, I fed th
-
combining individual photos in hotmail for a group of photos to email
How to combine individual photos received in hotmail for a group of photos to pass on to third parties?
-
How can I use two DVI and HDMI outputs for monitors?
I have a 55 inch LG TV connected to my PC via an HDMI cable. I recently bought a HP 2311 x flatscreen monitor and want to connect using DVI. But when both are plugged into the PC automatically turns off the DVI output, and switches automatically to