Textframe selection by name in CS6
I have written below code to select perticular textframe by passing name of the textframe in InDesign CS4 using VB script
page.TextFrames.Item("Main1").select
Its working fine in CS4 but I am using same code with CS6 that time it is giving an exception as:
"The requested member of the collection does not exist."
I don't want to loop through each and every frame present on the page and selecting perticular frame on its label match
please provide me the solution in CS6 to select textframes by its name/label.
Regards,
Raj
@Crest-Raj – so, as you can see, there is no text frame by the name of "Main1". You either have to rename the text frame in the Layers Panel or do it by script.
Here a JavaScript(ExtendScript) snippet that works with the selected text frame:
app.selection[0].name = "Main1";
Close/re-open the Layers Panel and you'll see the updated name.
All the "names" in brackets are generic names InDesign will create, if you are creating a text frame.
For new empty text frames the generic name is: "<text frame>".
In the moment you insert contents, the generic name will change according to the contents.
If you try to get the "name" property of a text frame with a generic name, you'll get an empty String!
After re-naming the Text Frame in the Layers Panel or by scripting, the name will not change, if you add or delete contents.
Uwe
Similar Messages
-
How to get the address of the selected contact name
Hello All,
Hi can anybody help me for nowing the Index(address) of the selected contact name after serching the list of contact names.
Thanking Youthis is done using PIM Api search it
-
select empno,name,sum(sal) from emptable where year=' ' groub by empno order by empno.
this query getting error because i didn't include empname in group by.
But if i include this name, my sum is not correct.
so i want to empno,name but i don't want to include name in group by. Is this possible?
My oracle verion is 8.
IS any other solution to solve this problem?
Thanks in advance.i want to empno,name but i don't want to include name in group by. Is this possible?<br>
<br>
No. It isn't.
<br>
select empno,name,sum(sal) over (partition by empno) <br>
from emptable
<br>where year=' '
<br>
-- <s>groub by empno</s>
<br>
order by empno; -
Somehow the selection tool in Ill cs6 lost its capabilities e.g. scaling, rotating, HELP??
Hi satchee,
Try Jacob's suggestion and if that doesn't work, then possibly you can try these:
1) Try a System restart,or
2) Cleaning the Illustrator's preferences. ( Please take a backup of the preferences before deleting them)
you can find the preferences in the following location:
Win : Installed Drive\Users\Username\AppData\Roaming\Adobe\Adobe Illustrator 17 Settings\
Mac : ~/library/preferences/Adobe Illustrator 17 Settings/
Hope it helps!
Thanks,
Dhirendra -
Select the name of the column in combobox
Hi !!
i have already get the name of the columns in a combobox with this code
xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
xlWorkSheet.Activate()
xlApp.Visible = True
With xlWorkSheet
Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
For x As Integer = 1 To LastCol
ComboBox2.Items.Add(xlWorkSheet.Cells(1, x).value)
Next
End With
and what i want is :
when i select the name of the column :
-this column will be copie in a new sheet of the same workbook (a new sheet add and the column of the table will be there )
help me pleaseei use tis code
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim Excols As New Dictionary(Of Integer, String)
xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
xlWorkSheet.Activate()
xlApp.Visible = True
With xlWorkSheet
Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
For x As Integer = 2 To LastCol
Excols.Add(x, xlWorkSheet.Cells(1, x).value.ToString)
Next
ComboBox2.DataSource = New BindingSource(Excols, Nothing)
ComboBox2.ValueMember = "Key"
ComboBox2.DisplayMember = "Value"
AddHandler ComboBox2.SelectedIndexChanged, AddressOf ComboBox2_SelectedIndexChanged
End With
End Sub Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox2.SelectedIndexChanged
Dim exWS2 As Microsoft.Office.Interop.Excel.Worksheet
xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
xlWorkSheet.Activate()
xlApp.Visible = True
With xlWorkSheet
Dim key As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Key
Dim value As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Value
Dim lastrow As Integer = xlWorkSheet.Cells.Rows.End(XlDirection.xlDown).Row
Dim colletter As String = ColumnIndexToColumnLetter(key)
exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
exWS2.Name = value
xlWorkSheet.Range(colletter & "1:" & colletter & lastrow.ToString).Copy(exWS2.Range("A1"))
' xlWorkSheet = DirectCast(xlWorkBook.ActiveSheet, Microsoft.Office.Interop.Excel.Worksheet)
'exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
'exWS2.Cells(1, 1).value = ComboBox2.SelectedItem.ToString
'exWS2.Name = ComboBox2.SelectedItem.ToString
End With
Me.Hide()
form2.show()
End Sub
Private Function ColumnIndexToColumnLetter(ByVal colIndex As Integer) As String
Dim div As Integer = colIndex
Dim colLetter As String = String.Empty
Dim modnum As Integer = 0
While div > 0
modnum = (div - 1) Mod 26
colLetter = Chr(65 + modnum) & colLetter
div = CInt((div - modnum) \ 26)
End While
Return colLetter
End Functionbut
when i click on the button a new sheet add named the first colum and an other sheet add also empty
without choosing an items of the combobox :(
and i get an error in this : exWS2.Name = value
which is :
Impossible de renommer une feuille comme une autre feuille, une bibliothèque d'objets référencée ou un classeur
référencé par Visual Basic. -
Hi :
I have a sql report in apex where the report is in page 15 but also there are multiple reports in other pages from page 10 to page 15 but the item is located in page10 as i select the item in page10 all the reports must redirects to it based on the item selected
item name in page 10 is p10_projects
plsql query is like this
declare
i number:=1;
q varchar2(32676);
BEGIN
q := '
SELECT pro.project_name
FROM projects pro ';
IF :P10_PROJECTS = 'ALL' THEN
q := q||' AND pro.id = :P10_PROJECTSS ';
END IF;
IF :P10_PROJECTSS <> 0 THEN
q := q||' AND pro.id = :P10_PROJECTS ';
END IF;
Return q
End;
now whts my requirement is like i also have a another item in page 15 called :p15_projects here in the report there must be a option like even if i select the item in page 15 the report must redirect to that base on this selection also
please suggest me how to include this condition in the above query
thanks
sudhirYou know this makes little sense, right?
Ad-hoc reporting should be done at worst via Discoverer or a data warehouse solution, where the irrelevant fields can be hidden, foreign keys can bring code descriptions and everything can have nice names. More properly, it should be submitted to IT and they should determine how to produce the output the business requires. Letting users run queries directly against the database tables is almost always a bad idea. How does the user know if they want XPLV_BTCH_ID or not? They want to know details of sales made in a given period or how many widgets are in stock.That's what an IT department is for. -
hello Everyone
1.- i don't know how to merge the two qys to see in the same select (user, name, profile, role, table_name, privilege table)
Im using the tables usuarios and view dba_users : See next qry
SELECT Nvl(US.IDUSUARIO,DU.USERNAME) USUARIO,
US.DESCRIPCION NAME,
ACCOUNT_STATUS STATUS,
DU.PROFILE,
CREATED FECHA_CREACION
FROM USUARIOS US,
SYS.DBA_USERS DU
WHERE DU.USERNAME = US.IDUSUARIO(+)
UNION
SELECT Nvl(US.IDUSUARIO,DU.USERNAME) USUARIO,
US.DESCRIPCION NAME,
ACCOUNT_STATUS STATUS,
DU.PROFILE,
CREATED FECHA_CREACION
FROM USUARIOS US,
SYS.DBA_USERS DU
WHERE DU.USERNAME = UPPER(US.IDUSUARIO)
ORDER BY NAME;
this extract me, USER, REAL NAME, STATUS, PROFILE, CREATION_DATE
JP01 Johan Pena OPEN DEFAULT 05-07-2010
on the other hand:
select * from role_tab_privs
this extract me, ROLE, TABLE_NAME and PRIVILEGE
DBA TABLE1 SELECT
DBA TABLE1 INSERT
DBA TABLE2 DELETE
1.- i don't know how to merge the two qys to see in the same select (user, name, profile, role, table_name, privilege table)
2.-i want something like this.
USER, REAL NAME, STATUS, PROFILE, CREATION_DATE ROLE, TABLE_NAME PRIVILEGE
JP01 Johan Pena OPEN DEFAULT 05-07-2010 DBA TABLE1 SELECT
JP01 Johan Pena OPEN DEFAULT 05-07-2010 DBA TABLE1 DELETE
Ect Ect. Ect.
who can HELP ME.I have part understood your requirement and assumed the rest! Hence, I have used dba_role_privs in addition to the list of tables you used.
Also, I think your LEFT OUTER JOIN on sys.dba_users is incorrect. I think you are trying to get all users from USUARIOS table for which roles / privileges exist in the database. If that is what you want the following query should help out. If not change the LEFT keyword in the MAIN query (NOT the one in WITH clause) to RIGHT but the results might be unpredictable.
Note: Using ANSI standard keywords for JOIN allows you to use functions in the JOIN clause (such as UPPER(column name), which the Oracle propreitary notation does not allow and hence made you opt for the UNION option).
WITH OS AS
SELECT
DU.USERNAME
,DU.ACCOUNT_STATUS
,DU.PROFILE
,DU.CREATED
,DRP.GRANTED_ROLE
,RTP.TABLE_NAME
,RTP.PRIVILEGE
FROM
sys.dba_role_privs drp
LEFT OUTER JOIN
role_tab_privs rtp
ON
( drp.granted_role = rtp.role )
LEFT OUTER JOIN
sys.dba_users du
ON
( du.username = drp.grantee )
SELECT
NVL (US.IDUSUARIO, OS.USERNAME) USUARIO
,US.DESCRIPCION NAME
,OS.ACCOUNT_STATUS STATUS
,OS.PROFILE PROFILE
,OS.CREATED FECHA_CREACION
,OS.GRANTED_ROLE ROLE
,OS.TABLE_NAME TABLE_NAME
,OS.PRIVILEGE PRIVILEGE
FROM
USUARIOS US
LEFT OUTER JOIN
OS -- temporary result set created using WITH clause above
ON
UPPER (US.USERNAME) = OS.USERNAME
ORDER BY 2 ;Edited by: VishnuR on Jul 5, 2010 8:44 PM
Edited by: VishnuR on Jul 5, 2010 8:47 PM -
Hello,
is it possible to send selection variant name(from choose list) to its to prefill some fields in transaction?
thanks
Jiri Juranekis it a webrfc application ? if yes check out the following link on how to pass the variant name in the url
http://help.sap.com/saphelp_erp2005/helpdata/en/2b/d9221e4b8a11d1894c0000e8323c4f/frameset.htm
if its a webgui application check out the following weblog on how to prefill field values
/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
Regards
Raja -
Select the name of the column from sheet Excel
Hi everyone,
i use vb.net with excel
First, i have a button "browse"
which open a workbook.
Second ,i have a button "get
the names of the sheets" which give me the name of the sheet in a combobox ,then i choose the sheet.
Then i have an other button " get
the column names " which give me the name of the columns of the table in a combobox .
When i select the name of the column a new sheet add named the
name of the column and which has the data of this column
what i want is :
when i select again the same column a messagebox will
be shown "you have already select it "
And when i go back to choose another sheet then another column
will be open without getting any error
this is the code of the combobox :
Public Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
xlWorkSheet.Activate()
xlApp.Visible = True
With xlWorkSheet
Dim key As String = CStr(DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Key)
Dim value As String = DirectCast(ComboBox2.SelectedItem, KeyValuePair(Of Integer, String)).Value
Dim lastrow As Integer = xlWorkSheet.Cells.Rows.End(XlDirection.xlDown).Row
Dim colletter As String = ColumnIndexToColumnLetter(CInt(key))
exWS2 = DirectCast(xlWorkBook.Sheets.Add, Microsoft.Office.Interop.Excel.Worksheet)
exWS2.Name = value
xlWorkSheet.Range("A1:A" & lastrow.ToString).Copy(exWS2.Range("A1"))
End With
End Sub
and if you want to know the code of the button here is :
Public Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim Excols As New Dictionary(Of Integer, String)
xlWorkSheet = CType(xlWorkBook.Sheets(ComboBox1.Text), Excel.Worksheet)
xlWorkSheet.Activate()
If ComboBox2.Items.Count = Nothing Then
With xlWorkSheet
Dim LastCol As Integer = xlWorkSheet.Cells(1, xlWorkSheet.Columns.Count).End(XlDirection.xlToLeft).Column
For x As Integer = 2 To LastCol
Excols.Add(x, xlWorkSheet.Cells(1, x).value.ToString)
Next
ComboBox2.DataSource = New BindingSource(Excols, Nothing)
ComboBox2.ValueMember = "Key"
ComboBox2.DisplayMember = "Value"
AddHandler ComboBox2.SelectedIndexChanged, AddressOf ComboBox2_SelectedIndexChanged
End With
Else
MsgBox("Déja Pleine!", CType(MessageBoxIcon.Error, MsgBoxStyle))
End If
End Sub
please help meHi
>> when i select again the same column a message box will be shown "you have already select it
Each time you select a value in the comobox , you could compare
each cell’s value with the value you just selected in the first row. If it is matched, then show the message box" you have already select it "
>>And when i go back to choose another sheet then another column will be open without getting any error
I am not sure the sentence’s meaning clearly, What do you mean about another column will be open? what's the error , Can you clarify this more
clear?
Best Regards
Lan
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
JDBC Problem: "select * from NAMES for update of FIRSTNAME"
I am using Oracle 8 and JDBC thin driver. Is there any reason
why when I try to use the statement:
"select * from NAMES for update of FIRSTNAME"
it does NOT work in JDBC?
However when I do the statement in SQL-Plus it works fine.
If anyone has used this statement with success, please let me
know that it actually works, so that I know there is something
wrong with me!
Any code snippets would be very helpful.
Could it be the thin driver?
Please help! Thanks in advance.
nullThomas Gutzmann (guest) wrote:
: James,
: for this command you need transactional control, which is not
: possible with JDBC - if I'm not wrong. You can circumvent it
with
: something like:
: select x into vOld from t where id=4711;
: vNew := 0.815;
: update t set x = vNew where id = 4711 and x = vOld;
: Another option would be to write a stored PL/SQL procedure that
: runs the whole transaction.
: Cheers
: Thomas
: James Ward (guest) wrote:
: : I am using Oracle 8 and JDBC thin driver. Is there any
reason
: : why when I try to use the statement:
: : "select * from NAMES for update of FIRSTNAME"
: : it does NOT work in JDBC?
: : However when I do the statement in SQL-Plus it works fine.
: : If anyone has used this statement with success, please let me
: : know that it actually works, so that I know there is
something
: : wrong with me!
: : Any code snippets would be very helpful.
: : Could it be the thin driver?
: : Please help! Thanks in advance.
I don't think this is correct. I have used select for update
with no problems. you can send a "set transaction control"
via sql, I believe, but you shouldn't need to do so...
Maureen
null -
I have been trying since I installed Mountain Lion to get my mail to put my names from my address book into my new messages, but I must select the name and then select To: Box to transfer name, Why????
You cannot mve the songs manually from iphone to your computer.
The way you do this is exactly what you did : File>Transfer Purchases -
Change the nav item selected class name
Hi there,
In moduleTemplates > Menu > Default > container.html
The function call to set the selected nav menu iten does not have a parramater to set the class name :
// this will set the selected state
if ((null !== ulTagId) && ("" !== ulTagId)) {
catSetSelectedCSSItem(ulTagId);
So you can not pass a parramater to set the dynamicly generated class name of the "selected" li
So is the any other way to have the selected class name be "iAmSelected" for example.
I dont yet see any way to edit the system file where the function resides : CatalystScripts/Java_DynMenusSelectedCSS.js
Kind regards
GaryHi Gary,
When using
http://forums.adobe.com/docs/DOC-1903
You can delete it and add your own script.
OR the easier thing is adapt your CSS to match the class. -
Option-drag selection not working in CS6 layer panel
Thought I'd force myself to use CS6 on a new project. I want to select multiple objects using "Option-drag", in the Layer Panel, but it doesn't work as it does in CS5.
Is there a different shortcut for selecting multiple contiguous objects using the Layer Panel, in CS6? Of course, I mean "Select" not "highlight".
Thanks.Ok so it has been omitted in CS 6 and I think the reason is is because of the change to the Layers panel function.
That is because you can now rename and object directky with the Layers Panel rather than use the Layer Options.
Whether this wa intentional or by accident I do not know but that is why I think it has been changed.
I would make a feature request to either return it to Option Drag or Or Option Click to select a contigous selection of objects.
I notice that many people use names for their paths on even modest ai files so I would think being able to name the objects and layers are a really important feature but so is the feature you referring to though I think Click-Option Click would be even better on rellly large complex Illustrations. -
Crystal 2008 - Selected table names are blank or end in 1
I am creating a new report in Crystal 2008. I am connecting to a database using ODBC. The tables show up correctly in the available tables column of the Database Expert. Once I select a table the table shows up in the selected tables list as an icon only - no name or as an icon with a table name ending in 1. The table name that ends in 1 is not a duplicate.
Furthermore, in the field explorer the fields all show but I can not add any to the report.
Any ideas, this just started happening this week.Hi Russell
Which database you are reporting off?
You can try following workaround and create indirect ODBC connection.
Create a report using OLEDB connection and select Microsoft OLE DB Provider for ODBC drivers and then create a report .
This will point to your existing ODBC connection through OLEDB provider.
For the tables name that are blank do you have hyphen '-' in their names?
As advised by Jayendra you can try with Service Pack 1for Crysatl Reports 2008.
Hope this helps..
Regards
Ankeet -
Using a dialog window to select a name and directory to save the file
Hi there
I have a problem with the FILE_SAVE_DIALOG method or better with the windows that will be shown.
Before I save a file (e.g. PDF file) on the presentation server (the PC), I want to open a dialog window to have the option to give another directory and file name, under which I will save the file.
Therefore I use the method CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG. I found many information about this FILE_SAVE_DIALOG in this forum, but these tips didn't satisfy me.
The main problem is the FILE_FILTER. How to use this filter (is it a STRING?) properly, when I want to have a list in the dialog window? Nothing worked till now.
I use ERP 2005 with JAVA 1.4.1-07.
My Code:
DATA: fileName TYPE STRING,
path TYPE STRING,
workdir TYPE STRING,
user_action TYPE I,
encoding TYPE ABAP_ENCODING.
fileName = I_FILENAME.
path = I_PATH.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = 'Save Adobe PDF file'
* WITH_ENCODING = 'X'
INITIAL_DIRECTORY = workdir
* DEFAULT_EXTENSION = '*.pdf'
DEFAULT_FILE_NAME = fileName
FILE_FILTER = '*.pdf'
PROMPT_ON_OVERWRITE = 'X'
CHANGING
FILENAME = fileName
PATH = path
FULLPATH = fullpath
USER_ACTION = user_action
FILE_ENCODING = encoding
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
IF user_action <> CL_GUI_FRONTEND_SERVICES=>ACTION_OK.
EXIT.
ENDIF.
When I call this method with these parameters, I get the dialog window, but there is no filtering for PDFs.
I also tried the ideas with:
FILE_FILTER = 'Adobe files (*.pdf)|(*.pdf)'
and so on. But nothing made the dialog window work properly, even the selection list didn't show the right content to select.
Who can help with this method SAVE_FILE_DIALOG?
Thanks
FrowinHI,
check this program.
<b>
report ZTEST2.
data: file type string,
path type string,
file_path type string.
data: itab type standard table of cskt.
start-of-selection.
SELECT * FROM cskt INTO TABLE itab.
call method cl_gui_frontend_services=>file_save_dialog
exporting
FILE_FILTER = '*.PDF'
changing FILENAME = file
path = path
fullpath = file_path.
check not file_path is initial.
call method cl_gui_frontend_services=>gui_download
exporting filename = file_Path
WRITE_FIELD_SEPARATOR = 'X'
changing data_tab = itab.
</b>
REgards,
Maybe you are looking for
-
How to do branding in SharePoint 2013 foundation ?
I am working on SharePoint foundation 2013 and I want to do Branding in Foundation. In foundation we don't have design manager,Content Search web part,content query web part, design template. so how could we brand our site in foundation. However,We c
-
Can I set multiple events at the same time to repeat on iCal?
I know I can do this by manually selecting each one of them and setting it to repeat. But it's a pain and it doesn't make sense not to be able to edit more than one event at the same time. When I want to set up my weekly schedule I do it for one week
-
Customizing Photoshop Web Gallery in Dreamweaver
HOW DO I STOP WIDTH OF IMAGE FROM STRETCHING? (height is in proportion) more details: I've almost finished customizing a Photoshop web gallery in Dreamweaver, which is completely confusing for me (i'm a novice) and any head way i made in changing the
-
Can somebody help me with a user-specific (or so I assume) issue where I can't run KDE apps, but if I run them as root, I can. I'm running OpenBox. Can somebody help using the error below? [jookia@jookia-ARCH ~]$ kaffeine kaffeine(18501): Communicati
-
I just bought my MBP couple of days ago and i was shocked how lousy the WIFI is i cant join most of the networks in range and i can only join networks with 0 Security!! whats the problem?! please help me any solution for that i tried everything in th