How to find top level object on a given layer?
I need to assign it to a var...
var topLevelObj = app.activeDocument.layers.name("foo")... whatever is on top of that stack...
...this is probably not correct but you know what I mean
Jump_Over wrote:
Hi,
top level object is the first in a collection:
var fooLayerTopObj = app.activeDocument.layers.item("foo").pageItems[0]
Jarek
I'm not very good in ID-scripting, but I think this isn't good enough to find topmost item of a layer.
Why?
- create a new document
create a polygon
create a rectangle
create an ellipse
create a line
Run this script snippet:
var pI = app.activeDocument.layers.item(0).pageItems;
for (i=0; i<=pI.length-1; i++) {
pI[i].select();
alert (i);
pI[i].locked = true;
Do you see, which element pageItems[0] is?
Similar Messages
-
"Top level objects not released" warning when accessing LabVIEW adapter through API
I'm having a problem when using the TestStand API in LabVIEW: I'm trying to get the VI path for a TestStand test step, but I'm getting the "Top level objects not released properly" warning. It doesn't look like I'm forgetting to close something, but obviously I am. Snippet is below, and warning text follows. Anyone have any ideas?
I'm using LabVIEW 2010 and TestStand 2010.
This forum has been a huge help. Thanks to everyone!
-Joe
References to PropertyObjects were not released properly. Total number of objects: 418 Number of top-level objects: 7
Note: Some top-level objects may be included if they are referenced by an incorrectly released top-level object. For example, an unreleased SequenceContext object references a SequenceFile object.
The following top-level objects were not released:
Type Definitions [6 object(s) not released] Type Definition #1: Name: FlexGStepAdditions
Type Definition #2: Name: VIParameter
Type Definition #3: Name: VIParameterElement
Type Definition #4: Name: NI_LabVIEWParameterResult
Type Definition #5: Name: Expression
Type Definition #6: Name: Path
And the following uncategoried objects: LabVIEWModule (FlexGStepAdditions) Name: SData
Solved!
Go to Solution.Yep, that worked. I thought that Variant To Data was just converting the module reference to the LabVIEWModule data type, but apparently I was wrong... This TS leak checker is sure making me learn about how to properly close references... I've been programming memory leaks for years!
I was also having problems with LabVIEW crashing after the VI ran, and fixing the order of the close references fixed that, too.
Working code is below.
Thanks a lot (again) Doug.
-Joe -
How to find out which objects are at the end of the datafiles
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.>
My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
For that how to find out which objects are at the end of the datafiles.
>
You may want to copy this and add it to your toolkit
See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/ -
How to find the level of each child table in a relational model?
Earthlings,
I need your help and I know that, 'yes, we can change'. Change this thread to a answered question.
So: How to find the level of each child table in a relational model?
I have a relacional database (9.2), all right?!
O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
/↑\ Fks
O"O O" <-- level 2 for first table (circle)
/↑\ Fks
"o"o"o" <-- level 1 for middle table (circle)
↑ Fk
"º"Tips:
- each circle represents a table;
- red tables no have foreign key
- the table in first line of tree, for example, has level 3, but when 3 becomes N? How much is N? This's the question.
I started thinking about the following:
First I have to know how to take the children:
select distinct child.table_name child
from all_cons_columns father
join all_cons_columns child
using (owner, position)
join (select child.owner,
child.constraint_name fk,
child.table_name child,
child.r_constraint_name pk,
father.table_name father
from all_constraints father, all_constraints child
where child.r_owner = father.owner
and child.r_constraint_name = father.constraint_name
and father.constraint_type in ('P', 'U')
and child.constraint_type = 'R'
and child.owner = 'OWNER') aux
using (owner)
where child.constraint_name = aux.fk
and child.table_name = aux.child
and father.constraint_name = aux.pk
and father.table_name = aux.father;Thinking...
Let's Share!
My thanks in advance,
Philips
Edited by: BluShadow on 01-Apr-2011 15:08
formatted the code and the hierarchy for readbilityJustin,
Understood.
Nocycle not work in 9.2 and, even that would work, would not be appropriate.
With your help, I decided a much simpler way (but there is still a small problem, <font color=red>IN RED</font>):
-- 1
declare
type udt_roles is table of varchar2(30) index by pls_integer;
cRoles udt_roles;
begin
execute immediate 'create user philips
identified by philips';
select granted_role bulk collect
into cRoles
from user_role_privs
where username = user;
for i in cRoles.first .. cRoles.count loop
execute immediate 'grant ' || cRoles(i) || ' to philips';
end loop;
end;
-- 2
create table philips.root1(root1_id number,
constraint root1_id_pk primary key(root1_id)
enable);
grant all on philips.root1 to philips;
create or replace trigger philips.tgr_root1
before delete or insert or update on philips.root1
begin
null;
end;
create table philips.root2(root2_id number,
constraint root2_id_pk primary key(root2_id)
enable);
grant all on philips.root2 to philips;
create or replace trigger philips.tgr_root2
before delete or insert or update on philips.root2
begin
null;
end;
create table philips.node1(node1_id number,
root1_id number,
node2_id number,
node4_id number,
constraint node1_id_pk primary key(node1_id)
enable,
constraint n1_r1_id_fk foreign key(root1_id)
references philips.root1(root1_id) enable,
constraint n1_n2_id_fk foreign key(node2_id)
references philips.node2(node2_id) enable,
constraint n1_n4_id_fk foreign key(node4_id)
references philips.node4(node4_id) enable);
grant all on philips.node1 to philips;
create or replace trigger philips.tgr_node1
before delete or insert or update on philips.node1
begin
null;
end;
create table philips.node2(node2_id number,
root1_id number,
node3_id number,
constraint node2_id_pk primary key(node2_id)
enable,
constraint n2_r1_id_fk foreign key(root1_id)
references philips.root1(root1_id) enable,
constraint n2_n3_id_fk foreign key(node3_id)
references philips.node3(node3_id) enable);
grant all on philips.node2 to philips;
create or replace trigger philips.tgr_node2
before delete or insert or update on philips.node2
begin
null;
end;
create table philips.node3(node3_id number,
root2_id number,
constraint node3_id_pk primary key(node3_id)
enable,
constraint n3_r2_id_fk foreign key(root2_id)
references philips.root2(root2_id) enable);
grant all on philips.node3 to philips;
create or replace trigger philips.tgr_node3
before delete or insert or update on philips.node3
begin
null;
end;
create table philips.node4(node4_id number,
node2_id number,
constraint node4_id_pk primary key(node4_id)
enable,
constraint n4_n2_id_fk foreign key(node2_id)
references philips.node2(node2_id) enable);
grant all on philips.node4 to philips;
create or replace trigger philips.tgr_node4
before delete or insert or update on philips.node4
begin
null;
end;
-- out of the relational model
create table philips.node5(node5_id number,
constraint node5_id_pk primary key(node5_id)
enable);
grant all on philips.node5 to philips;
create or replace trigger philips.tgr_node5
before delete or insert or update on philips.node5
begin
null;
end;
-- 3
create table philips.dictionary(table_name varchar2(30));
insert into philips.dictionary values ('ROOT1');
insert into philips.dictionary values ('ROOT2');
insert into philips.dictionary values ('NODE1');
insert into philips.dictionary values ('NODE2');
insert into philips.dictionary values ('NODE3');
insert into philips.dictionary values ('NODE4');
insert into philips.dictionary values ('NODE5');
--4
create or replace package body philips.pck_restore_philips as
procedure sp_select_tables is
aExportTablesPhilips utl_file.file_type := null; -- file to write DDL of tables
aExportReferencesPhilips utl_file.file_type := null; -- file to write DDL of references
aExportIndexesPhilips utl_file.file_type := null; -- file to write DDL of indexes
aExportGrantsPhilips utl_file.file_type := null; -- file to write DDL of grants
aExportTriggersPhilips utl_file.file_type := null; -- file to write DDL of triggers
sDirectory varchar2(100) := '/app/oracle/admin/tace/utlfile'; -- directory \\bmduhom01or02
cTables udt_tables; -- collection to store table names for the relational depth
begin
-- omits all referential constraints:
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'REF_CONSTRAINTS', false);
-- omits segment attributes (physical attributes, storage attributes, tablespace, logging):
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SEGMENT_ATTRIBUTES', false);
-- append a SQL terminator (; or /) to each DDL statement:
dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'SQLTERMINATOR', true);
-- create/open files for export DDL:
aExportTablesPhilips := utl_file.fopen(sDirectory, 'DDLTablesPhilips.pdc', 'w', 32767);
aExportReferencesPhilips := utl_file.fopen(sDirectory, 'DDLReferencesPhilips.pdc', 'w', 32767);
aExportIndexesPhilips := utl_file.fopen(sDirectory, 'DDLIndexesPhilips.pdc', 'w', 32767);
aExportGrantsPhilips := utl_file.fopen(sDirectory, 'DDLGrantsPhilips.pdc', 'w', 32767);
aExportTriggersPhilips := utl_file.fopen(sDirectory, 'DDLTriggersPhilips.pdc', 'w', 32767);
select d.table_name bulk collect
into cTables -- collection with the names of tables in the schema philips
from all_tables t, philips.dictionary d
where owner = 'PHILIPS'
and t.table_name = d.table_name;
-- execution
sp_seeks_ddl(aExportTablesPhilips,
aExportReferencesPhilips,
aExportIndexesPhilips,
aExportGrantsPhilips,
aExportTriggersPhilips,
cTables);
-- closes all files
utl_file.fclose_all;
end sp_select_tables;
procedure sp_seeks_ddl(aExportTablesPhilips in utl_file.file_type,
aExportReferencesPhilips in utl_file.file_type,
aExportIndexesPhilips in utl_file.file_type,
aExportGrantsPhilips in utl_file.file_type,
aExportTriggersPhilips in utl_file.file_type,
cTables in out nocopy udt_tables) is
cDDL clob := null; -- colletion to save DDL
plIndex pls_integer := null;
sTableName varchar(30) := null;
begin
for i in cTables.first .. cTables.count loop
plIndex := i;
sTableName := cTables(plIndex);
* Retrieves the DDL and the dependent DDL into cDDL clob *
* for the selected table in the collection, and writes to file.*
begin
cDDL := dbms_metadata.get_ddl('TABLE', sTableName, 'PHILIPS');
sp_writes_ddl(aExportTablesPHILIPS, cDDL);
exception
when dbms_metadata.object_not_found then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('REF_CONSTRAINT', sTableName, 'PHILIPS');
sp_writes_ddl(aExportReferencesPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('INDEX', sTableName, 'PHILIPS');
sp_writes_ddl(aExportIndexesPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('OBJECT_GRANT', sTableName, 'PHILIPS');
sp_writes_ddl(aExportGrantsPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
begin
cDDL := dbms_metadata.get_dependent_ddl('TRIGGER', sTableName, 'PHILIPS');
sp_writes_ddl(aExportTriggersPhilips, cDDL);
exception
when dbms_metadata.object_not_found2 then
null;
end;
end loop;
end sp_seeks_ddl;
procedure sp_writes_ddl(aExport in utl_file.file_type,
cDDL in out nocopy clob) is
pLengthDDL pls_integer := length(cDDL);
plQuotient pls_integer := null;
plRemainder pls_integer := null;
begin
* Register variables to control the amount of lines needed *
* for each DDL and the remaining characters to the last row. *
select trunc(pLengthDDL / 32766), mod(pLengthDDL, 32766)
into plQuotient, plRemainder
from dual;
* Join DDL in the export file. *
* ps. 32766 characters + 1 character for each line break. *
-- if the size of the DDL is greater than or equal to limit the line ...
if plQuotient >= 1 then
-- loops for substring (lines of 32766 characters + 1 break character):
for i in 1 .. plQuotient loop
utl_file.put_line(aExport, substr(cDDL, 1, 32766));
-- removes the last line, of clob, recorded in the buffer:
cDDL := substr(cDDL, 32767, length(cDDL) - 32766);
end loop;
end if;
* If any remains or the number of characters is less than the threshold (quotient = 0), *
* no need to substring. *
if plRemainder > 0 then
utl_file.put_line(aExport, cDDL);
end if;
-- record DDL buffered in the export file:
utl_file.fflush(aExport);
end sp_writes_ddl;
begin
-- executes main procedure:
sp_select_tables;
end pck_restore_philips;<font color="red">The problem is that I still have ...
When creating the primary key index is created and this is repeated in the file indexes.
How to avoid?</font> -
How to enable "top level navigation " in portal
Hi all,
I am unable to see the "top level Navigation" once I logged on to portal
Previously I was able to see that
I performed the following steps thats the reason why I am unable to see "top level navigation"
1 Logged on to portal
2 Content administration
3 Expanded Poratl Content
4 Expanded Content Provided by SAP
5 Expanded End User Content
6 Expanded Standard Poratl Users
7 Selected "Default Frame work Page"
8 In that selected Top Level navigation Iview and the iveiw properties I changed the property "Number of Display Levels " to "0" and choose save
As I have set "Number of Display Levels" to "0" I am unable to see "top level Navigation" Now,I want to change it to 2 for that I need to see the Content Administration role in the "Top Level navigation" Can anyone help me out how to enable "Top level Navigation"
Thanks in advanceundo the changes what you have done.
after you logon to the portal try the url below...this should take you to content admin directly from there modify the framework page and reset the property of TLN
http://yourserver:port/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id=pcd%3Aportal_content%2Fadministrator%2Fsuper_admin%2Fsuper_admin_role%2Fcom.sap.portal.content_administration%2Fcom.sap.portal.content_admin_ws%2Fcom.sap.portal.portal_content&iview_mode=default
Thanks
GLM -
How to find top 10 SQL statments which are consuming more cpu time.
hi all,
Is there any command or script to monitor the top 10 sql statments which are consuming more cpu time.
I know by using AWR REPORT we can find it, i want the command or script to find the top cpu utilization sql statments.
Regards
Subhash.Subhash,
A quick and dirty Google search could have get you started with the following:
Thread: how to get top CPU consuming sql oracle 10g
Re: how to get top CPU consuming sql oracle 10g
Oracle SQL top sessions
http://www.dba-oracle.com/oracle10g_tuning/t_sql_top_sessions.htm
"How to Find top 10 expensive sql's", version 9.2.0
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:73325450402303
HTH,
Thierry -
Can you please tell me how to find top 10 wait events
Hi
Can you please tell me how to find top 10 wait events and what actions need to be taken when there is a wait?
Thanks
Regards,
RJ.hi,
suggest you to use statspack !!!!!!! for the all tuning..else use the views
* v$session_event
* v$session_wait
* v$system_event
go through this for tuning tips
http://www.dba-oracle.com/art_dbazine_waits.htm
Thanks
--Raman -
How to find this Search object relavant to which root object?
Hi All,
how to find this Search object relavant to which root object?
As I am having search object 'BTQuery1O', so which is root object for this?
how to find this?Hi Carl,
Search object BTQuery1O and the attribute structure associated with it is CRMST_QUERY1O_BTIL,
even if we enhance this structure with zfield, as it is search object, then it should queried on some main database
table, so it is 'CRMD_ORDERADM_H', here we need to add our zfield first to it, so that after added to search object then
only search query work, so that's the reason I am asking is it possible to find 'CRMD_ORDERADM_H' relevant from
GENIL_MODEL_BROWSER, or any way also? -
How to find High level water mark
Hi all,
How to find high level water mark of a table.
Thanks,
Bhanu Chander.Probably you mean High Water Mark.
select blocks from user_segments where segment_name='YOUR TABLE';
exec dbms_stats.gather_table_stats('YOU','YOUR TABLE')
select blocks from user_tables where table_name='YOUR TABLE';
subtract the last number from the first number. That is where your High Water Mark stands.
Kind regards
Uwe
http://uhesse.wordpress.com
Correction: The last number is where your HWM stands. The difference between the two numbers is the amount of blocks where no row has been yet :-)
Edited by: Uwe Hesse on 26.06.2009 21:00 -
Unable to find top level site associated with project site
Hello!
SP and PS 2013. I faced the problem with one project and its site synchronization.
When user published this project at 1st time, the site wasn’t created (there were some errors), but user didn’t notice that. So, after few days when he couldn’t open
the site, he ask me for help.
I did my usual operations in such cases – I open “Connected sites” and create the site myself.
Earlier there was not any problem with that. But now this project experiences some troubles with permissions sync for
it’s site – there is no synchronization.
I connected this problem with November CU, which has been installed couple of weeks ago.
I have read about the same problems after upgrade, so I want to emphasize that site was created on the root site collection (Project Web App) and it is not a subsite
of another project site.
If there is no solution until next update, maybe there is some way to turn off permission synchronization only for this site?
Any help will be appriciated!!!
Kate
Queue error:
GeneralQueueJobFailed
(26000) - PreparePSProjectPermissionSynchronization.PreparePSProjectPermissionSynchronizationMessage.
Подробные
сведения: id='26000' name='GeneralQueueJobFailed'
uid='231b2c2c-fc8b-e411-942d-0050569d3fac' JobUID='79031b2c-fc8b-e411-942d-0050569d3fac' ComputerName='7d8a1473-f6a8-4a8e-b7fb-1bdd868c7e20' GroupType='PreparePSProjectPermissionSynchronization' MessageType='PreparePSProjectPermissionSynchronizationMessage'
MessageId='1' Stage='' CorrelationUID='a923d99c-8e88-c0e8-c7e2-08a980da8c96'.
Для получения дополнительных сведений проверьте журналы ULS на компьютере
7d8a1473-f6a8-4a8e-b7fb-1bdd868c7e20 для записей с JobUID
79031b2c-fc8b-e411-942d-0050569d3fac
In logs:
12/25/2014 12:42:45.85 Microsoft.Office.Project.Server (0x07E4) 0x5E10
Project Server Sharepoint Integration
amed3 Exception Unable to find top level site associated with project site Site1 System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>Нет
веб-сайта
с
именем "/Site1". at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String
bstrUrl, Guid& pguidID, DateTime& pdtTimeCreated, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl,
String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl,
String& pbstrSi... 2a29d99c-9ecc-c0e8-c7e2-037970debfdfHi Kate_S,
since you are already aware that its a known issue caused Sep 2014 CU i believe, and an official fix has yet to release.
but i would like to clarify here that this issue doesn't have anything to do with project site creation, because sync queue job while creating project site fails but does not block other queues activities. so your project site should be created in a normal
way.
and until official fix will arrive, 1 of the option is to change your project sites to provision under root site collection instead of PWA site collection. But be aware that this will fix sync issue only for new project sites.
Go to Central Administratio -> PWA settings -> open site provision settings menu and made changes.
2nd option is, since Project Owner always get access to Project site, to teach your project owners to include project team members manually to project site permission group to allow them to have access. this option can help you with both new and existing
project sites, and i personally prefer this and did the same for my affected customers.
Hope these 2 options will help you.
Khurram Jamshed - MBA, PMP, MCTS, MCITP (
Blog, Twitter, Linkedin )
If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. -
How to find the hidden objects in Webi Rich client report 4.0 sp 04 ?
Hi,
How to find the hidden objects in Webi Rich client report at BI 4.0 sp 04 ?
Best Regards,
ASRHi Sai,
Go to Report Element Tab-->There you have a Tab Cell Behaviors.
When you flip between 'With Data' and 'Structure Only' under 'Design' Tab,you can see the some cells will be hide/Un hide behavior,if hiding of cells applied.
Select that cell and then Under 'Cell Behaviors'-->'Hide' Tab-->and choose Show Option.
Regards,
Venkat P -
How to find top utilized query for last two months in oem
how to find top utilized query for last two months in oracle enterprise manager?
Can you mark the thread as Helpful and once marked the information can be reviewed by other customer for similar queries
Regards
Krishnan -
How to find a autorization object and roles for paricuu00F6llar documetytpe(DMS
Hello,
I have a question,Its urgent ..#
For a particular document type (for example PPN)..
How to find a authorization object and roles...Please let me know.
In the DIS which autority object and roles they use it for this.
<b><REMOVED BY MODERATOR></b>
Regards
preethi
Message was edited by:
Alvaro Tejada GalindoThis issue seems to be resolved since jDeveloper/ADF 11.1.1.3.
Am I true? -
How to find a autorization object and roles for paricuöllar documetytpe(DMS
Hello,
I have a question,Its urgent ..#
For a particular document type (for example PPN)..
How to find a authorization object and roles...Please let me know.
In the DIS which autority object and roles they use it for this.
Reward with full points
Regards
preethiThis issue seems to be resolved since jDeveloper/ADF 11.1.1.3.
Am I true? -
How to find top items in alv similar to MC.5
hi abapers
can u plz tell me how to find top items in alv grid program as we find similarly in MC.5 top material...etc as top items.
Thanks in advanceNagrenda -> http://sap.ittoolbox.com/groups/technical-functional/sap-abap/how-to-display-an-alv-grid-using-abap-oo-2016165
I suggest you read the rules of this forum.
Maybe you are looking for
-
Creative Cloud pricing heads-up
I've just received an email telling me that until 29 August, the new UK price of the Photography (Lightroom and Photoshop CC) plan is only £7.49 a month. Just thought I'd put it out there in case anyone was interested.
-
After transfering songs from ipad to cpu reference was lost in ipad, the song appears but reproduces the next one of the list in songs How can i regenerate database of songs?
-
I don't know how to use the find my ipad
-
Help? iMac has no access to files. Only grey Screen. Boots up to Browser.
I need help! My iMac either has been attacked by Virus or Worm. I can boot up to a Firefox Browser but that is all. The iMac has no files accessable and the Desktop is just a grey screen. I tried inserting the Mountain Lion Disk but could not access
-
WRT54GC cannot see network computers
Hi all, I've been trying to setup my home network having one wired PC and another one wireless. After numerous attempts I haven't managed. I use DHCP and both computers have valid access to internet, belong to the same workgroup - but don't see eac