How to ungroup the grouped art items using VB Scripting?
Hi,
I need to ungroup the grouped items in Illustrator 10 using VB Script.
Im able to get the count of group items. How to ungroup those items using VB Script.
@Vimala Lakshmanan – to access tables inside text frames of grouped objects, you need not to ungroup.
You could use the Group objects and iterate through all page items of the group, single out the text frames and access their Texts object and their Tables object within.
By starting with a Group object (in the following snippet the group is selected):
var myGroup = app.selection[0];
var allPageItemsOfGroup = myGroup.allPageItems;
for(var n=0;n<allPageItemsOfGroup.length;n++){
var myObject = allPageItemsOfGroup[n].getElements()[0];
if(myObject.constructor.name === "TextFrame" && myObject.texts[0].tables.length > 0){
var myTables = myObject.texts[0].tables;
for(var t=0;t<myTables.length;t++){
//Do your stuff here:
//Just an example line, that fills all cells in a table to "Yellow"
myTables[t].cells.everyItem().fillColor = "Yellow";
This snippet also considers nested groups, anchored text frames and nested text frames.
It does not consider objects in not active states of MultiStateObjects.
Uwe
Similar Messages
-
How to create the groups in OID Using Java API.
Hi,
I need to create the group in OID Using Java API's only(i.e., javax.naming.* only).
I need to achieve it without using any oracle specific jars.
Is there any way to achieve it?.If there's a option to achieve it,do let me know.
I also need to create the users in that group ,after creating it.
If you share any useful link or ideas for the same would be great.
Thanks
Balajibobws wrote:
Hi,
I want to find the installed JREs in windows using java. I couldn't fine any java API. So I am using the below code to fetch the JRE list from windows registries & parse the returned collection to know the installed JRE.Why? If you are running java you already have a JRE. So why not just use it?
>
String key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Runtime Environment";
Runtime.getRuntime().exec(
"reg query " + "\"" + key + "\"");
Is it legal to retrieve the installed JREs in this way? Legal? It is OS specific, and to a certain extent dependent on vendor and what the vendor wants to do. Could also be impacted by permissions. Other than that it is ok.
I am feeling like its a type of hacking. So I couldn't decide whether this is legal (recommended) way of using. Does anybody can answer me. I can see the similar posts in google. Somebody suggests this way & somebody suggests to use preference API which is similar to this. Appreciate your help.Preferences won't work. It doesn't allow access to the registry in general, only a part of it. There are discussions in the JNI forum about retrieving VM versions. Prior to actually using the VM though. -
How to count how many times the caller calls by using UCCX script?
Hi there,
My customer wants to do a few changes for their script as below:
At the beginning of the script they are planning to add a new menu item, it will announce their new privacy policies and to continue the user must press the number one to continue to the Welcome. If they do not press 1 then the message should repeat itself and if they again do not press 1 they should be transferred over to a live operator who will explain things and then be able to transfer them back to the message so that they can press 1 and continue.
I modified their script as attached file, but i don't know how to count how many times the caller calls in "Get Reporting Statistic".
Any helps would be appreciated.
Thanks.Hi Aaron,
At beginning, i want to use a variable to get number of mistake for the same caller, then we will send the call to right place to fulfill the customers' needs.
Do you have any suggestion for the new posted script?
Thanks. -
How to set value of application item using Java script.
I have created a textbox on page 0, on chnage of textbox i want to set the value of application item.
How to write the code to set & get value of application item.
Thanks,
-AmitHello Amit
This would be a great place to start...
JavaScript
Alternatively, APEX 4.0 will make this sort of task declarative.
Kind regards
Simon Gadd -
How to cancel the event in Item Adding without going to the SharePoint Error Page?
Prevent duplicate item in a SharePoint List
The following Event Handler code will prevent users from creating duplicate value in "Title" field.
ItemAdding Event Handler
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
if (properties.ListTitle.Equals("My List"))
try
using(SPSite thisSite = new SPSite(properties.WebUrl))
SPWeb thisWeb = thisSite.OpenWeb();
SPList list = thisWeb.Lists[properties.ListId];
SPQuery query = new SPQuery();
query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
SPListItemCollection listItem = list.GetItems(query);
if (listItem.Count > 0)
properties.Cancel = true;
properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
catch (Exception ex)
PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
Feature.xml
<?xml version="1.0" encoding="utf-8"?>
<Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
Title="Prevents Duplicate Item"
Description="Prevents duplicate Name in the "My List" List"
Version="12.0.0.0"
Hidden="FALSE"
Scope="Web"
DefaultResourceFile="core"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml"/>
</ElementManifests>
</Feature>
Element.xml
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListTemplateId="100">
<Receiver>
<Name>AddingEventHandler</Name>
<Type>ItemAdding</Type>
<SequenceNumber>10000</SequenceNumber>
<Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
<Class>AAA.BBB.PreventDuplicateItem</Class>
<Data></Data>
<Filter></Filter>
</Receiver>
</Receivers>
</Elements>
Below link explains adding the list events.
http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
Reference link:
http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
Amalaraja Fernando,
SharePoint Architect
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.Recommended way for binding the list event handler to the list instance is through feature receivers.
You need to create a feature file like the below sample
<?xmlversion="1.0"encoding="utf-8"?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
Title="Installs MyFeatureReceiver"
Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
ReceiverClass="ClassLibrary1.MyFeatureReceiver"
ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=6c5894e55cb0f391">
</Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
using Microsoft.SharePoint;
namespace ClassLibrary1
public class MyFeatureReceiver: SPFeatureReceiver
public override void FeatureActivated(SPFeatureReceiverProperties properties)
SPSite siteCollection = properties.Feature.Parent as SPSite;
SPWeb site = siteCollection.AllWebs["Docs"];
SPList list = site.Lists["MyList"];
SPEventReceiverDefinition rd = list.EventReceivers.Add();
rd.Name = "My Event Receiver";
rd.Class = "ClassLibrary1.MyListEventReceiver1";
rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=6c5894e55cb0f391";
rd.Data = "My Event Receiver data";
rd.Type = SPEventReceiverType.FieldAdding;
rd.Update();
public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
SPSite sitecollection = properties.Feature.Parent as SPSite;
SPWeb site = sitecollection.AllWebs["Docs"];
SPList list = site.Lists["MyList"];
foreach (SPEventReceiverDefinition rd in list.EventReceivers)
if (rd.Name == "My Event Receiver")
rd.Delete();
public override void FeatureInstalled(SPFeatureReceiverProperties properties)
public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
}Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
Amalaraja Fernando,
SharePoint Architect
Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights. -
How to limit the number of items that a list control can hold?
Hi,
I am using a Flex3 List control for one of my projects.
I add drag & drop functionality to it, so that i can drag & drop elements from one control to another.
How to limit the number of items that a list control can hold / can be dropped in a list control ?
- Sen.1. Listen for the dragdrop event on the control you are dragging onto.
2. check the length of the items in the dataprovider - if it exceeds your maximum override the default drop action with e.preventDefault(); (assuming you used e for the event on the handler).
Regards,
Mark. -
How to edit the list box items in labwindow/​CVI?
how to edit the list box items in labwindow/CVI?
Listbox items cannot be edited directly in the control: what you can do is to select a line an, transfer its content to a textbox control, edit text there and move text back to the listbox control. Available interactions with the listbox control are listed in the help.
An alternative to it is to use a tree customized to appear like a listbox: tree item labels can be edited directly in the control, at least those in the base column of the tree. You can look at the example \samples\userint\treelist.cws that shows how a tree can be customized this way. I haven't opened it, but this old example too should show the ability to edit tree cells.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to get the group totals in report
HI,
Iam generating a report to display Storage Location, and Unit of Measures and Material group and also group totals.
how to display the group totals on the report.
thank q
rushi.Hi,
This following report clearly explains how to display the subtotal and grand total of
the particular field in alv.
REPORT YMS_ALVSUBTOTAL.
*REPORT z_alv_sub_totals .
TYPE-POOLS: slis.
DATA: BEGIN OF it_output OCCURS 0,
var1(8) TYPE n,
var2(10),
var3 TYPE I,
END OF it_output.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
t_fieldcat TYPE slis_fieldcat_alv,
it_sort TYPE slis_t_sortinfo_alv,
t_sort TYPE slis_sortinfo_alv,
v_repid LIKE sy-repid.
INITIALIZATION.
v_repid = sy-repid.
START-OF-SELECTION.
PERFORM get_data.
PERFORM sort_fields.
PERFORM fill_fieldcat.
PERFORM list_display.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
FORM get_data.
it_output-var1 = 1000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
it_output-key = 'X'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'siddhu'.
it_output-var3 = '20000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'chinni'.
it_output-var3 = '100000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 2000.
it_output-var2 = 'chicchu'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 2000.
it_output-var2 = 'candy'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 4000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
ENDFORM. " GET_DATA
*& Form fill_fieldcat
text
--> p1 text
<-- p2 text
FORM fill_fieldcat.
PERFORM fill_fields USING: 'IT_OUTPUT' 'VAR1' 'Variable 1' ' ',
'IT_OUTPUT' 'VAR2' 'Variable 2' ' ',
'IT_OUTPUT' 'VAR3' 'Variable 3' 'X'.
ENDFORM. " fill_fieldcat
*& Form fill_fields
text
-->P_0146 text
-->P_0147 text
-->P_0148 text
-->P_0149 text
FORM fill_fields USING value(tabname) TYPE slis_tabname
value(fieldname) TYPE slis_fieldname
value(seltext_m) LIKE dd03p-scrtext_m
value(do_sum) TYPE c.
t_fieldcat-tabname = tabname.
t_fieldcat-fieldname = fieldname.
t_fieldcat-seltext_m = seltext_m.
IF do_sum = 'X'.
t_fieldcat-datatype = 'CURR'.
ENDIF.
t_fieldcat-do_sum = do_sum.
APPEND t_fieldcat TO it_fieldcat.
CLEAR t_fieldcat.
ENDFORM. " fill_fields
*& Form list_display
text
--> p1 text
<-- p2 text
FORM list_display.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = it_fieldcat
it_sort = it_sort[]
TABLES
t_outtab = it_output
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " list_display
*& Form sort_fields
text
--> p1 text
<-- p2 text
FORM sort_fields.
t_sort-fieldname = 'VAR1'.
t_sort-tabname = 'IT_OUTPUT'.
t_sort-spos = 1.
t_sort-up = 'X'.
t_sort-subtot = 'X'.
APPEND t_sort TO it_sort.
CLEAR t_sort.
t_sort-fieldname = 'VAR3'.
t_sort-tabname = 'IT_OUTPUT'.
t_sort-spos = 2.
t_sort-up = 'X'.
APPEND t_sort TO it_sort.
CLEAR t_sort.
ENDFORM. " sort_fields
Thanks,
Sankar M -
How to find the header and item level status of a CRM contract ?
Hi,
Few questions
A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
B. How to get the BPs associated with a contract ?
Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
Note:
1. It doesnt store the Business Partner
responsible for the transaction. To
get the Partner No, link it with
CRM_ORDER_INDEX.
2. This table can be used for search
based on the Object Id(Business
Transaction No).
CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
CRMD_LINK Transaction GUID set for all the Business Transactions
CRMD_ORDER_INDEX Contains Header as well as Item details for a Business Transaction.
Note:
1. It doesnt store the Business
Transaction No (Object ID).
To get the Business Transaction No
link the table with
CRMD_ORDERADM_H
2. This table can be used for search
based on the Partner No
CRMD_ORDERADM_I Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
E.g. Service Contracts
CRMD_CUSTOMER_I Additional Site Details at the Item Level of a Service Contract
Pl.reward points....... -
How to Extend the count of item code in IC_ITEM_MST table
Hi Friends.
Recently we used 10 count of IC_ITEM_MST table . But we want to extend the count 15. How to define pls help me.
Regards
Babu.JDuplicate post -- How to Extend the count of item code in IC_ITEM_MST table
-
How to limit the number of items in a KPI Status list web part?
How to limit the number of items in a KPI Status list web part? There is no paging option for Business Category Status list or any limit can be made by changing the Item limit in default view unlike other SharePoint List web parts. So How to achieve it?
Kindly help.
Regards,
ZA
zzzSharePointHi,
According your post, I know you would like to set the item display limit in Status List web part.
In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
of items in the Status list web part.
It could be a potential issue in SharePoint 2010.
We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
Appreciate your time and efforts.
Thanks.
Tracy Cai
TechNet Community Support -
On a new imac how much of the HDD is already used with the OS,iLife,apps..
Looking to buy my 1st ever iMac, the one Im going to get is the base one, with 250Gb HDD (I may upgrade to 320Gb for UK £29 though)
My question is how much of the HDD is already used by OS X and everything on it? I understand there is some free trial stuff onthat can be installed eg MS Office, iWork etc I would want these removed as wouldnt want them so how much is left before you start adding your own stuff
I also want to install Win XP on it so need to know what to do, 250Gb in todays computing is very stingy I think, so I need an idea
cheersHere's are some disk usage information from my 20" white C2D. The numbers
are running totals that include periodic software updates and some of my own
stuff -- but that would be less than 0.5 GB of the final total.
OS-X with "no optional packages" is a very usable system; it includes 'core'
applications such as Safari, iTunes, Quicktime. It does not include any of the
iLife apps or the iWork/MS_Office test-drive bloatwares.
The large increase in disk usage for a minimum Leopard system is partly due
to the inclusion of more apps in the 'core' OS package. Some things that were
optional in Tiger have become part of the "minimum" Leopard install.
The Xcode software development tools are a standard part of every OS-X
distribution, but since most customers have no use for them, they're not
included in the factory-installed disk image. If you don't plan to install
them, subtract 3.4 GB from the final tally.
Factory pre-installed Tiger 10.4.8 & bundled software .................. 16.4 GB
Erase & Install Tiger 10.4.8 with NO optional packages .................. 2.9 GB
SoftwareUpdate to 10.4.10, with NO optional packages .................. 3.1 GB
Erase & Install Leopard 10.5.0 with NO optional packages ............... 6.6 GB
SoftwareUpdate (11/11, immediately after Leopard install) ............. 6.7 GB
Install Xcode SW development tools from Leopard DVD ................. 10.1 GB
Install & SoftwareUpdate iLife'08 (except iWeb & GarageBand) ....... 12.3 GB
SoftwareUpdate to Leopard 10.5.1.................................................. 12.5 GB
IMO, 250 GB is FAR more than you'll ever need for installable software plus
a sizeable collection of music/photos. OTOH, no amount of disk space will
ever be enough for an avid music/photo/video junkie, and everyone should
have an external backup drive. So, stick with the standard internal drive and
buy more external storage.
...a billion here, a billion there -- and pretty soon you're talkin' 'bout alot of money,
Looby -
No question, I just wanna say thanks to the person who discovered how to change the correct dns to use FaceTime. The 8.8.8.8. Really work. Genius. Thanks again.
solved
-
How to handle the multiple line items in the Inbound idoc FM
Hi ,
Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
Thanks in Advance,,,,
Regards,
BharaniHi ,
Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
Thanks in Advance,,,,
Regards,
Bharani -
If any one could help me with this. i'd be enternally grateful as i'm getting nowhere on my own!
I have an apple emac powerpc G4 which is running 10.3.9 software. I downloaded the 10.5 leopard software. Does anyone know how to install the 10.5 without using the dvd installer? In dummy terms pleaseThe only way to get 10.5 is to purchase it on CD. Such as http://www.amazon.com/Mac-OS-Leopard-10-5-10-51/dp/B0012RAVRC where is being sold for $179.99.
If your optical drive is broken, you will either need to replace it or get an external. There is no other way.
Why do wish to upgrade? As you can see it is going to be expensive, probably more the Mac is worth.
Allan
Maybe you are looking for
-
5.0.1 update won't let my iphone restore
I installed the iphone update and all went well until I came to the part where it asked me to restore my iphone. I have tried to restore my iphone 9 times now. here is what I have tried: 1. disable antivirus software 2. restart pc - numerous times 3
-
The only way to open a new tab is to click a link like in an email, or right click to tell it to open a new tab. When I click the + or Ctrl T nothing happens.
-
Hello, We have some long runnig queries, One query in example have around 150 chars(49 in Default layout and 101in free chars) and 65 keyfigures- this query executes in RSRT within 3 minutes.. but if you try to execute in BEX (7.0) it gets Time out e
-
Mobileme is broken and not opening ical when I am signed in. mac and iphone and macbook can't sync ical with each other. the round disc just runs and runs until it times out with error message. This is on discussion boards and wide spread. When w
-
Dear Suport, when I upgraded to IOS 6,1,3 it gives me an error message "your iphone could not be activated because the activation server is temp....." Try Again Regard Iyus