How to create sublayer of a layer programmatic-ally ?
hi,
I want to know whether we can create a sublayer of a layer programmatically or not .If it is possible then how?
I unable to find the any function regarding this in sdk. plz suggest me.
thanks.
Have you tried something like:
AILayerHandle newLayer = 0;
sLayer->InsertLayer(parentLayerHandle, kPlaceInsideOnTop, &newLayer);
They don't mention kPlaceInsideOnTop in the documentatino for InsertLayer(), but I imagine that's how you would do it. If not, I have no idea.
Similar Messages
-
How to create User Portal in OID programmatically in JSP
Hi.
I want to create User Portal programmatically in JSP (if posible) or have to use procedure.
I check with package wwsec_api, it just have 'function
add_portal_user', but it say we must have "the user must already exist in OID before this function is called."
So, i checked for 'how to create User in OID'. What i got (in metalink)just methods that 'Create manually Portal Users in to OID' by LDAP or PL/SQL coding (with list of user in flat files).
What i want to do is, How to create User POrtal in OID by JSP? What are the procedure/table/method involved?
Do anybody have any samples?..
Thanks.I had to write my own because I could not find one anywhere. Here is an addUser() method that seems to work pretty well.
import oracle.ldap.util.jndi.ConnectionUtil;
import javax.naming.directory.*;
import javax.naming.*;
public class LdapUser
public LdapUser(){}
public void addUser(String pUsername, String pPassword, String pFirstName, String pLastName, String pEmail)
try
InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx("host", "port", "orcladmin", "pwd");
BasicAttributes attrs = new BasicAttributes();
BasicAttribute oc = new BasicAttribute("objectclass");
oc.add("top");
oc.add("person");
oc.add("inetOrgPerson");
oc.add("organizationalPerson");
oc.add("orclUser");
oc.add("orclUserV2");
attrs.put(oc);
BasicAttribute gn = new BasicAttribute("givenName", pFirstName);
attrs.put(gn);
BasicAttribute sn = new BasicAttribute("sn", pLastName);
attrs.put(sn);
BasicAttribute cn = new BasicAttribute("mail", pEmail);
attrs.put(cn);
BasicAttribute pwd = new BasicAttribute("userpassword", pPassword);
attrs.put(pwd);
// Etcetera, etcetera...
ctx.createSubcontext("cn="+pUsername+",cn=users,dc=whatever,dc=com", attrs);
ctx.close();
System.out.println("Success!!");
catch (NameAlreadyBoundException nabe)
System.out.println("Username is already in use. Please choose another.");
catch (NamingException ne)
System.out.println("NamingException: " + ne);
catch (Exception e)
System.out.println("User account was not created.");
} -
How to create an array Station Globals programmatically in CVI?
Hello all,
I want to create an array Station Globals programmatically in CVI. Where can I find some examples?
Thanks,
Zhonghui NingZhonghui,
There is a KnowledgeBase on our website that describes the methods needed to do this. You can find the KnowledgeBase at http://digital.ni.com/public.nsf/websearch/C7C81F4AE5A46BB686256CDA005FA4C6?OpenDocument.
I found this by searching for "teststand create variable". You can find TestStand examples on our Developer Library by going to http://www.ni.com/devzone and clicking on the link for Developer Library. This page has example code as well as tutorials and application notes on many aspects of TestStand. There are quite a few examples there that already address this type of question: Creating Sequence File Global Variables Using the TestStand API with LabWindows/CVI
and Creating and Inserting a New Data Type into a Sequence File using LabWindows/CVI
We continually add examples to these web pages, so it is always a good place to look for examples. While they may not have the exact answer to your questions, the examples usually cover a topic that is close enough for you to be able to apply the example to your question.
Hope that helps.
Regards,
Shannon R.
Applications Engineer
National Instruments -
How to create an IIS virtual directory programmatically?
All-
Is it possible to create an IIS virtual directory
programmatically using Coldfusion? Is there some set of server
objects that could be tapped into using COM, for example?
Any guidance would be appreciated. Thanks.
-JoshYou should be able to do this (as well as all other
administrative tasks) using CFEXECUTE, Windows Scripting Host, and
IIS management object. Read IIS documentation. It contains tons of
ready-to-use scripts. -
How to create shape on same layer
since photosho adds another layer every time i create shape is there a way to create shape on same layer?
What version of PS? Depending upon the version, there should be a dropdown menu or some sort of selection in the main menu bar to either add to a shape, subtract, exclude, or intersect. Look around in the main menu bar for your version of PS.
-
How to create a via from layer 1 to 3 on a 8 layer PCB?
I'm working on a design for a 8 layer PCB with Multisim/Ultiboard v10. In Multisim under sheet properties i selected the PCB to contain 8 layers, which makes Ultiboard to create this board with 4 layer pairs and 0 top/bottom build-ups. In the PCB properties of Ultiboard i enabled micro vias and buried/blind vias but i noticed that i'm not able to allow vias between some combinations of layers.
For example i can enable vias from top to the second layer (1st inner) and from top to the fourth layer (3rd inner), but not from top to the third layer (2nd inner).
When placing a via, i can select top for the start and the 3rd layer
for the end, but it will be created as via between top and the 4th
layer, which will -of course- shorten several traces on the 4th layer.
So my questions is: Why am i not allowed to create a via, that goes from the top layer to the third layer and how to enable all possible combinations of start and ending layers for the via?
Thanks for your help
fhn
PS: sorry for my bad english :/
Message Edited by fhn on 08-22-2008 04:39 AMI am not 100% sure about this, but what I see happening here is that you can only select certain combinations of pairs. Once that selection is made it will gey out other selections as not valid. You might want to carefully look at the options in the via selection and make sure of which layers you want vias to be on. I don't know about enabling all layers in this selection. I would assume this would not be legal from a design rules standpoint, but since most of my boards are either single or double sided I do not have the necessary experience with multi-layers to give a proper answer to that.
This is the only thing I can advise as when I went through the process I was able tio select the vias for the layers you outlined in your post.
I hope this helps somewhat as this is all can tell you.
Kittmaster's Component Database
http://ni.kittmaster.com
Have a Nice Day -
How to create a New Excel File programmatically
Hi !
I am documenting acquired data continuously in an excel file, what I need to do is to create a new excel file automatically when the size of the previous file exceeds a certain limit lets say 1MB.
I have tried using the simple 'Create/Open File' function and the 'Write to Spreadsheet File' function to create the new excel file. I does create a file but when I open the file it says the format of the file is not what you have opened it with.
Also when the new file is created, three new worksheet are to be added programmatically with pre-defined worksheet name and also Column headers for each of the worksheet are to be added.
I am also using 'Labview Report Generation Toolkit for Office'.
Regards,
Reeves
Solved!
Go to Solution.@ Aldo A
Thanks for the reference to tutorial, I didn't know about them. They are useful in general but unfortunately they don't answer the problem of creating an altogether new excel file programmatically.
@ ben64
The template thing simplifies the issue of formatting the new file. But I am still working on the new excel file creation challenge.
Let me put my problem in a different way.
Certain data is being acquired continually and is being written to a certain excel file, when the size of the file exceeds lets say 1MB the program should start saving the data in a NEW FILE instead of the previous file.
I have attached the VI to explain what I am trying to achieve here.
Reeves
Attachments:
New Microsoft Office Excel Worksheet.zip 30 KB -
Is there a way how to create new Crystal Report template programmatically?
Hi all,
I would like to know if there is any way how to call .NET code using Crystal Reports for VS2010 to create Blank Crystal Report template with specific DataDefinition?
I want to save work with opening Crystal Reports application and manually adding DataDefinition fields which my application provides...
Thank you for your reply in advance,
Honza
Edited by: honzajic on Sep 20, 2011 3:53 PMHello Honza
You will have to use the InProc RAS SDK as this includes report creation APIs. A few resources to get you started:
[How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
[Samples|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples]
[Programming tutorial|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050afe0-2fa5-2b10-658d-98f214ba6a4a]
[Report Application Server .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip]
[Report Application Server .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip]
You may also find [this|http://book.soundonair.ru/sams/] website quite interesting.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
How to create LOV not based on a View Object attribute?
Hi,
I am creating a handed-made search form and I want to create an af:inputListOfValues.
I have :
- a read-only-view-object to get the LOV values from BD.
- af:inputListOfValues tag (droped from Component Palette).
How can I create the listOfValuesModel in Bindings layer? (the inputListOfValues is not based on a View Object attribute).Sorry, I think I am not very clear in my posts.
My requirement is to create a LOV but I have no ViewObject. I just want an input (not based on a view object attribute), alone, but with a LOV (where lov's datas are get from a view object).
In a "normal" LOV I would have something like this :
in jsff :
<af:inputListOfValues id="departmentIdId"
popupTitle="Search and Select: #{bindings.DepartmentId.hints.label}"
value="#{bindings.DepartmentId.inputValue}"
label="#{bindings.DepartmentId.hints.label}"
model="#{bindings.DepartmentId.listOfValuesModel}"
required="#{bindings.DepartmentId.hints.mandatory}"
columns="#{bindings.DepartmentId.hints.displayWidth}"
shortDesc="#{bindings.DepartmentId.hints.tooltip}">
<f:validator binding="#{bindings.DepartmentId.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.DepartmentId.format}"/>
</af:inputListOfValues>in pageDef :
<listOfValues StaticList="false" IterBinding="EmployeesView1Iterator"
Uses="LOV_DepartmentId" id="DepartmentId"/>in model layer : a view object (EmployeeView) with view accessor and LOV based attribute, and a read only view object (DepartmentRVO) to get datas for the LOV.
But in my case I have no ViewObject, so I don't know how to create the listOfValuesModel in fragment pageDef.
I have :
<af:inputListOfValues label="Label 1"
popupTitle="Search and Result Dialog"
id="ilov1" model="here I want to point to a listOfValuesModel but I don't know how to create it"/>in pageDef : the listOfValuesModel but I don't know how to create it.
in model layer : just a read only view object (like DepartmentRVO), to get the datas for the LOV.
Edited by: h0s on 29 févr. 2012 00:31 -
How to create custom color profile in OSX?
I started thinking about this after downloading the program "f.lux", which changes the color temperature of your screen depending on the time of day. It seems the program accomplishes this by adjusting your display calibration. Some controls for this already exist (you can tinker with them in preferences>display>color) but they can't be calibrated beyond minor changes to gamma and color tempterature. In f.lux they have a "darkroom mode", which is this amazing red-on-black high-contrast effect perfectly suited for use in a darkroom. I feel like a high-contrast monochrome display could come in handy, but I want more control over the brightness and color than what this app offers. I don't see anything like that in the usual preferences, but I do see a host of various color profiles (apple rgb, adobe rgb, PAL, Pantone, and whatever else...). How do I create a completely custom profile, or edit one that exists? Where are these files stored on my computer? Are there workarounds, or any third-party apps for changing my display settings?
All help is greatly appreciated.Hi,
To create document library, please look at the below links which may help you to resolve your problem.
Create document library programmatically in SharePoint
How to Create SharePoint List or Library Programmatically
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Hi All,
I need to create Count(*) one of the fileld from Fact Table. How to create it in presentation layer?Hi Welcom99,
You can apply the 'Count' Aggregation for any column.
right click on column from the table in BMM Layer which you want to apply 'count' and select properties. In the third tab called 'Aggregation' is available. from there you can select 'Count' from default aggregation rule.
There is another way also.
In the presentation services we can write the formula count(column name) for the column which you want make count.
Regards,
Bose -
How do I use "Trim Paths" after "Create Shapes from Vector Layer" on a strokes only layer?
Hello,
Adobe After Effects CC
2014.0.2
Version 13.0.2.3
I have imported an illustrator file that was created in Illustrator CC 18.0.0. The file contains the outline of a logo. It is the logo with the fill set to none and the stroke set to 1px.
I drag the logo_strokes.ai file onto the composition, right click, and click Create Shapes from Vector Layer.
A new layer is created and in the Contents "drop down", a Fill 1 layer is created.
When I select the Contents "drop down" and click Add / Trim Paths, a Trim Paths 1 layer is created.
When I animate Trim Paths 1, it appears to animate the Fill layer, not the stroke.
How do I get it to animate just the stroke, and not show a fill at all?
Thank you.Thanks,
I am reading and watching tutorials. Still stuck on that one point.
Here are the images of the After Effects layers. The illustrator layer is the top layer. -
How to create an IDoc programmatically at Inbound side?
Hi,
How to create an IDoc programmatically at Inbound side?
Assume that you have a file(material master details) which is enough to create master data.
Regards,
ThiyaguRead the documentation of this FM first:
FU IDOC_INBOUND_ASYNCHRONOUS
K. tekst
IDoc inbound processing via tRFC
Functionality
This function module starts inbound processing in the case of port type
"tRFC". The function module is a successor to INBOUND_IDOC_PROCESS,
which processes IDocs in the Release 4.0 record types. If you are
processing IDocs in Release 3.X record types, the function module
INBOUND_IDOC_PROCESS must still be called.
The function module checks the ID 'EDI_MES' in authorization object
B_ALE_RECV against the received message type.
The IDocs are saved by the function module IDOC_INBOUND_WRITE_TO_DB (a
COMMIT for all IDocs) and then transferred directly to the application
by the dispatcher module IDOC_START_INBOUND.
Parameter
IDOC_CONTROL_REC_40
IDOC_DATA_REC_40
Exceptions
Functiegroep
Edited by: Micky Oestreich on Jun 11, 2009 12:52 PM -
How to create button programmatically and assign trigger for it and add code
is that possible ?
How can I create item a button for example programmatically (at run time)
and create trigger (when-button-pressed) programmatically and write a code
in the trigger body as well programmatically.
thankxHello David
I used the way list and go button which is more safer than creating buttons because
you can populate the list on fly.
| dropdown list \/
| go button |
PROCEDURE populate_user_function_list IS
rg_list_id RECORDGROUP;
ret_code NUMBER;
BEGIN
rg_list_id := FIND_GROUP('RG_LIST');
IF NOT ID_NULL(rg_list_id) THEN
DELETE_GROUP(rg_list_id);
END IF;
rg_list_id := CREATE_GROUP_FROM_QUERY('RG_LIST','SELECT FUNCTION_ID, FUNCTION_ID FROM SMS_ROLE_FUNCTION WHERE SMS_ROLE_FUNCTION.DB_ROLE ='||''''||:GLOBAL.USER_ROLE||''''||' ORDER BY SEQUENCE_NO');
ret_code := POPULATE_GROUP(rg_list_id);
--Populate record group.
IF ret_code <> 0 THEN
bell;
MESSAGE('Record Group could not be populated');
RAISE FORM_TRIGGER_FAILURE;
END IF;
POPULATE_LIST('DYNAMIC_BLK.USER_FUNCTION','RG_LIST');
DELETE_GROUP(rg_list_id);
END;
--this is the button to go the user selection
begin
if :DYNAMIC_BLK.USER_FUNCTION is not null then
--go to selected form
call_form(:DYNAMIC_BLK.USER_FUNCTION,NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,NO_SHARE_LIBRARY_DATA);
else
bell;
message('Please select a function');
end if;
end; -
How to create new canvas at photoshop and apply a layer by layer name?
How to create new canvas at Photoshop and apply a layer by layer name ?
So simply what i want is
Create a new canvas certain size such as 150x40 pixels
Apply a layer to that canvas. Script will select the layer by layer name
How can i do that these 2 simple things with Photoshop scripting
CS6JJMack wrote:
Something like var doc = app.documents.add(width, height, res);
When you write Apply a layer what do you mean Script will select layer by name. A new document will have a background layer or a normal layer do you want to rename that there is onle one layer. Or do you want to add a layer by name what kind?
thanks for answer. you know like background layer. for example when you are generating web buttons you are preparing background layers. it will select a layer like that.
also can you post full script here if possible ? thank you.
example : http://img12.imageshack.us/img12/844/examplepx.png
after this i will write a text on that canvas but i will ask that after learnt this 2 steps
Maybe you are looking for
-
Maximum number of items in FI reached
Dear All; i'm facing a problem while posting Goods Receipt, error messgae for maximum number of item reached in FI document. i already configure the summarization T.Code OBCY Ref. Transaction MKPF & select the field BSEG- MATNR but still no summariza
-
Green Screen (Built in Isight)
Whenever I open a application with isight the screen is just green.
-
Rapidshare link not working with WRT110 wireless router
I am trying to download using rapidshare but after the countdown timer reaches zero and the download link button appears, i couldn't get the link for the download file. This happens when i am wireless but when i connect my laptop directly to the link
-
Inconsistent audio volumes with audio inserted via Properties panel and Audio menu
My course includes audio imported using the Audio menu (Import to Slide). On a few slides that have Captivate 6 Interactions, I had to include the audio using the Properties panel so the audio would play during the course of the entire slide and not
-
The system extension "/System/Library/Extensions/IOSCSIArchitectureModelFamily.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update. i keep getting this when i connect my ipod na