How to get the coordinate of any character in just a single text frame?
I am using Illustrator CS5. Better solutions in c# language.
Hi,
According to your description, my understanding is that you want to get the groups name of a specific user using Client Object Model PowerShell in SharePoint 2010.
We can loop the site group collection and the users in each group and then check if the user exists in the user collection.
ClientContext clientContext = new ClientContext("http://sp/sites/mysite");
GroupCollection collGroup = clientContext.Web.SiteGroups;
clientContext.Load(collGroup);
clientContext.ExecuteQuery();
User usr = clientContext.Web.EnsureUser(@"contoso\administrator");
clientContext.Load(usr);
clientContext.ExecuteQuery();
foreach (Group group in collGroup)
UserCollection collUser = group.Users;
clientContext.Load(collUser);
clientContext.ExecuteQuery();
foreach (User user in collUser)
if (user.LoginName==usr.LoginName)
Console.WriteLine(group.Title);
Console.ReadKey();
For PoweShell command, you can convert the code above to PowerShell Command.
Here is a detailed article for your reference:
https://msdn.microsoft.com/en-us/library/ee538244%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
Thanks
Best Regards
Jerry Guo
TechNet Community Support
Similar Messages
-
How to get the coordinate of a cell in the jtable?
How to get the coordinate of a cell in the jtable?
How to get the point of a cell in the jtable?
Thanks for help!getCellRect(...);
-
How to get the postion of any string
hi
like untitle.txt
how to get the postion of '.'.
AmitHi Amit,
Use SEARCH statement to find out a character or a string in a string.
DATA V_STRING TYPE STRING VALUE 'untitle.txt'.
SEARCH '.' FOR V_STRING.
If search is successful then it will return position of character or string into system field SY-FDPOS.
If your idea is get values of filename and extension by separating period then use simply SPLIT statement.
SPLIT V_STRING AT '.' INTO V_FILE V_EXT .
Thanks,
Vinay
Edited by: Vinaykumar G on Jul 1, 2008 8:52 PM -
SDO_ORDINATES how to get the coordinates?
Hello,
how can i get the individual x1,y1 and z1 coordinates of a box? when i use in an sql statement sdo_ordinates i just get an object sdo_ordinate_array. But how can i filter out the coordinates? To explain what i want to do here a pseudocode sql-statement:
select min(v.shape.sdo_ordinates.x1),min(v.shape.sdo_ordinates.y1),min(v.shape.sdo_ordinates.z1),max(v.shape.sdo_ordinates.x1),max(v.shape.sdo_ordinates.y1),max(v.shape.sdo_ordinates.z1) from veith.voxel v
Is there a way to get an sql-statement that gives me the min and max x1,y1 and z1 from a table and also a statement where i get the x1,y1 and z1 value from all tableentries? For any help thanks in advance.
Greetings,
Markus VeithMarkus,
If you are using 9i there are two functions: sdo_geom.max_mbr_ordinate and sdo_geom.min_mbr_ordinate which will return either the min or max ordinate values in a layer.
If you are using 8i, you will have to write a sql block or procedure to compare the x ordinates or y ordinates and retrieve the min or max values.
Hope that helps.
Dave
David R. Miller
Michael Baker Jr., Inc.
3601 Eisenhower Avenue
Alexanria, VA 22304
[email protected]
www.mbakercorp.com -
Get the Coordinates of a Character in a TextArea
Is there a way to determine what the coordinates of a given
character are in a TextArea control? One project I'm working on
presents a chunk of text cut off at some number of characters,
followed by a LinkButton control (e.g., to view "more"), and I'm
having trouble figuring where to place the LinkButton control
without knowing the coordinates of the last visible character of
the TextArea. Anyone dealt with this one before?
Thanks in advance...
ChrisHm, thanks, but that just places the LinkButton next to the
TextArea control, beside and outside of it, not "inside" (or really
over) it, as my example should've implied.
I think I've found a workable solution -- see below, where
myCanvas is some Canvas control already defined in MXML somewhere,
and myText is a Text control already defined (and populated) as
well:
var numberOfLines:int =
myText.mx_internal::getTextField().numLines;
var lineMetrics:TextLineMetrics =
myText.getLineMetrics(numberOfLines - 1);
var targetX:int = lineMetrics.width + 10;
var targetY:int = (numLines - 1) * lineMetrics.height;
var myLinkButton:LinkButton = new LinkButton();
myLinkButton.label = "More...";
myCanvas.addChild(myLinkButton);
Still testing, but TextLineMetrics seems to have done the
trick.
If anyone has a better approach, let me know! Thanks much. -
How to get the dID of any Content from SS_DATAFILE in Site Studio 10gR4?
Hi,
I am trying to get the dID of a Contributor Data File from its dDocName (SS_DATAFILE). I can do a search based on this Content ID but if I am able to get the dID using one of the Site Studio variables, it will be great.
Thanks,
JustinHi Sapan,
I am trying to customize a Dynamic List element to display the list of related content for the contributor data file. For this, I use the GET_RELATED_CONTENT service exposed by the Oracle RelatedContent component which needs the dID as a parameter. Now in a Contribution Region, I can get the the dDocName (Content ID) of the datafile from the SS_DATAFILE Site Studio variable. However, I need to get the dID from this Content ID.
Thanks for your reply.
Justin -
How to Get the min,max and original values in a single query
Hi,
I have a task where in i have to the min , max and the original values of a data set .
I have the data like below and i want the target as well as mentioned below
SOURCE
DATASOURCE
INTEGRATIONID
SLOT_DATE
SLOT1
SLOT2
SLOT3
SLOT4
SLOT5
SLOT6
SLOT7
SLOT8
SLOT9
SLOT10
1
101
201111
100
100
200
100
100
100
300
300
300
300
1
101
2011112
200
200
200
200
100
100
100
100
200
300
TARGET
DATASOURCE
INTEGRATIONID
SLOT_DATE
SLOT_VALUE
SLOT MIN
SLOT_MAX
SLOT NUMBER
1
101
201111
100
1
2
SLOT1
1
101
201111
100
1
2
SLOT2
1
101
201111
200
3
3
SLOT3
1
101
201111
100
4
6
SLOT4
1
101
201111
100
4
6
SLOT5
1
101
201111
100
4
6
SLOT6
1
101
201111
300
7
10
SLOT7
1
101
201111
300
7
10
SLOT8
1
101
201111
300
7
10
SLOT9
1
101
201111
300
7
10
SLOT10
1
101
2011112
200
1
4
SLOT1
1
101
2011112
200
1
4
SLOT2
1
101
2011112
200
1
4
SLOT3
1
101
2011112
200
1
4
SLOT4
1
101
2011112
100
5
8
SLOT5
1
101
2011112
100
5
8
SLOT6
1
101
2011112
100
5
8
SLOT7
1
101
2011112
100
5
8
SLOT8
1
101
2011112
200
9
9
SLOT9
1
101
2011112
300
10
10
SLOT10
e
so basically i would first denormalize the data using the pivot column and then use min and max to get the slot_start and slot_end.
But then i
can get the min and max ... but not the orignal values as well.
Any thoughts would be appreciated.
ThanksIf you want to end up with one row per slot per datasource etc, and you want the min and max slots that have the same value as the current slot, then you probably need to be using analytic functions, like:
with t as
(SELECT 1 datasource,101 INTEGRATIONID, 201111 slotdate, 100 SLOT1, 100 SLOT2, 200 slot3, 100 slot4, 100 slot5, 100 slot6, 300 slot7, 300 slot8, 300 slot9, 300 slot10 FROM DUAL union all
SELECT 1, 101, 2011112, 200, 200, 200, 200, 100, 100, 100, 100, 200, 300 FROM DUAL),
UNPIVOTED AS
(SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,1 SLOT,SLOT1 SLOT_VALUE
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,2 SLOT,SLOT2
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,3 SLOT,SLOT3
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,4 SLOT,SLOT4
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,5 SLOT,SLOT5
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,6 SLOT,SLOT6
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,7 SLOT,SLOT7
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,8 SLOT,SLOT8
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,9 SLOT,SLOT9
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,10 SLOT,SLOT10
FROM T)
select DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,min(slot) OVER (partition by datasource,integrationid,slotdate,rn) minslot,
max(slot) OVER (partition by datasource,integrationid,slotdate,rn) maxslot
FROM
select DATASOURCE,INTEGRATIONID,SLOTDATE,max(rn) over (partition by datasource,integrationid,slotdate order by slot) rn,slot,slot_value
FROM
(SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,
case when row_number() over (partition by datasource,integrationid,slotdate order by slot) = 1 or
lag(slot_value) over (partition by datasource,integrationid,slotdate order by slot) <> slot_value
then row_number() over (partition by datasource,integrationid,slotdate order by slot)
ELSE null
END rn
from unpivoted
order by DATASOURCE,INTEGRATIONID,SLOTDATE,slot -
How to get the number from a xml file to flash as3 Text Box "Get_Days"?
Hi,
I have to daily update the number of days finished from the specified days. Say, One work to be finished in 30 days. And the start day is today. So, tomorrow it will be 29 days left. and so on....
So, instead of reducing one number everyday from the last days number using flash, it will be easy changing in xml file.
How can I do that?
I have a simple text box "dynamic text box" and the instance name : "Days_Left". Since I am learner, I cannot make complex projects. I am learning small things with very few lines of code which can be modified using xml files.
So, Whatever I type in a xml file, it should appear in a text box called "Days_Left".
Thanks.then you can use:
var currentDate:Date = new Date();
// this is today's date
var projectDueDate:Date = new Date(2010,11,29);
// use whatever date you want for the due date.
// months are zero-based. (ie, jan is month 0, dec is month 11.)
var daysToCompleteProject:Number = (projectDueDate.getTime()-currentDate.getTime())/(1000*60*60*24);
// this is number of days between currentDate and projectDueDate. you probably want to round or use days:hours:minutes for your display -
How to get the local file system path of an image that loaded into the image component in cq5?
Hi,
I'm having hard time uploading image from filesystem where as drag and drop works.
I'm not getting a path of image selected from filesystem.
here is my code..
private String populateImage() throws Exception {
if (currentNode != null && currentNode.isNode()) {
Node ImageNode = JcrResourceUtil.createPath(currentNode, "image",
null, "nt:unstructured", true);
imageUrl = ImageNode.hasProperty("fileReference") ? ImageNode.getProperty("fileReference").getValue().getString() : "";
imageUrl = imageUrl.trim();
log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE IF IS: " + imageUrl);
} else {
imageUrl = properties.get("fileReference", "");
imageUrl = imageUrl.trim();
log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE ELSE IS: " + imageUrl);
return imageUrl;
So if I drag and drop..
ImageNode.hasProperty("fileReference") is returning a valid path
but if I upload an image it is returning Null.
So how to get the path? any suggestions around would be appreciated...When you say path you mean you want the path to print out in your HTML? Is that accurate? If so you generally need to constructe that path based on the path to the current component. So if you component is located at /content/mysite/en/about/mypage/jcr:content/parsys/image then the path to the image would generally be something like /content/mysite/en/about/mypage/jcr:content/parsys/image.img.jpg/1283829292873.jpg. The .img. selector triggers the servlet associated with the foundation parbase - /libs/foundation/components/parbase/img.GET.java. The reason you reference it this way is that there is no filesystem path to the image - it is stored in the repository not on the file system, and it requires a servlet or script to ge the binary from the repository and steam it.
Normally the way you'd construct this is to use the out of the box Image class - so look at /libs/foundation/components/image/image.jsp. Now this example assumes that your component where you loaded the image extends /libs/foundation/components/parbase. If it doesn't then you either have to change your sling:superResourceType to /libs/foundation/components/parbase or some other component that does exten /libs/foundation/components/parbase. -
How to get the size of driver[C: or D:]
Hi Friends,
I have a query regarding to java..
I want to get the name of all the drives that r connected to the System including network drives...
and how to get the size of any system drive[For example C: or D: Drive].
I want the output to be displayed like in the following format
Device type size free Usage_Space
for ex.
C: NTFS 37.5Gb 30.5gb 7gb
Output like as linux command df -h
Edited by: KituPrash on Mar 4, 2009 3:29 AMDoes this help for starters?
File[] roots= File.listRoots();
for (int i= 0; i< roots.length; i++)
System.out.println(roots[i]+": "+roots.getTotalSpace());kind regards,
Jos -
How to get the tab when is it pressed?
I have the following situation:
I have an array of JTextField inside a scroollpane. The size of my array is nine or ten depends on some rules. But my window show just four JTextField. So I would like to know how to get the event when I press "tab", just to show the others JTextField while I'm pressing "tab". Because I need this event to scrooll down or scrooll up.
I tried the keylistener, but when I press "tab" any method(keypressed, keyreleased, keytyped) is called.
I also tried the focuslistener. If this event I could scrooll down or scrooll up, but I couldn't do both!!
Can somebody help me??
Thanks anyway!!
GinJTextField implements Scrollable interface, which provides information to the enclosing container such as JScrollPane.
Hence when the tab event is fired, you can compute the Rectangle area that should be visible and then call the 'scrollRectToVisible()' method in JTextField. This will inform the JScrollPane to scroll to the rectangle that you mention.
HTH -
How to get the records which has a specified x/y coordinates
Hi,
How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
Thanks and Regards
AravindanAravinda,
If you want to find the line segments which intersect the given
set of points, you can do that with SDO_RELATE.
siva -
PhotoShop Automation PlugIn: How do I get the coordinates of a polygonal selection?
Hi.
I try to get the coordinates out of a selection, but I can't find out how to do that.
I tried to convert the selection into a path and get the coordinates from the path. That doesn't work either.
Can somebody give me a list of parameters inside the action descriptor of keyPathContent in classPath? I assume that the point infos are located there...
Thanx in advance,
Christianfound the answer myself. It might be helpfull to others.
btn.addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent e) {
Rectangle ret = btn.getBounds();
double y = ret.y + ret.getHeight();
pop.show((Component) e.getSource(), ret.x, (int)y);
} -
I've tried downloading iOS5 several times and after an hour each time I get a message that says my network connection has timed out. But I can't find any information about "timing out" or how to correct the situation. Any help?
Disable your antivirus and firewall, and try again.
-
I-photo: I used 2 cameras to take pictures on a trip --- i have put the pictures from both cameras into an album --- when i click on view and then sort by date, the pictures do not sort by date --- any ideas on how to get the pics sorted by date?
Select all the photos that you need to change, then click the "Photos" menu and choose "Adjust Date and Time".
If you add a year, it will adjust all the photos that you selected by adding a year (so if you accidentally select one of the photos that already has "2012", that will change to "2013").
Maybe you are looking for
-
Total Newbie Question ... Sorry :-(
I know it's a windows thing, and I am now converted to Mac but I gotta know this because it's doing my head in. It's a complete stupid green gilled newbie question. When installing new programs on a Mac can you create shortcuts to the programs on the
-
Printing Barcode in Dot Matrix Printer
Dear Experts, We have developed Smart form to print Barcode and it's printing fine in LaserJet printer & readable by the scanner, We need it on Dot Matrix printer for (multiple copies) and tried the same with Dot Matrix printer it use to print but n
-
ALV: Problem with toolbar event
Hi ALV-experts, I have a dynpro with a header area where I display an ALV table. Below this I have a subscreen with a tabstrip control and two tabs. In the ALV toolbar I defined an own button. This button gets deactivated after pressing this button.
-
Workaround for not having a static IP address? Just need to VPN into server
I work from home, and so do my partners. I recently bought a mac mini server, so that we will have 1 central computer where all the projects are stored. Now with me being a mobileme user, I of course have access to it no matter where I go. But for my
-
Data Center Core based on EoMPLS ?
Hi, We've currently a data center based on Layer 2 with many inter building links blocked by STP. To simplify a little bit the layer 2 topology (and improve inter-building link usage) i would like to introduce EoMPLS inside my Data Center core. Is th