Set layout property for dynamic group element
hi ,
I am creating group ui element dynamically . can any one plz tell me how to set layout property for group as gridlayout DYNAMICALY??
Kavita
Hi,
Following is the skeleton of the code you need.
IWDTransparentContainer container = view.getElement("<Your container>");
IWDGridLayout gridLayout = container.createLayout(IWDGridLayout.class);
gridLayout.setCellPadding(cellPadding);
gridLayout.setCellSpacing(cellSpacing);
IWDTransparentContainer container = null;
IWDGridData grid = container.createLayoutData(IWDGridData.class);
grid.setHAlign(hAlign);
grid.setVAlign(vAlign);
grid.setPaddingRight(paddingRight)
grid.setPaddingRight(paddingRight)
grid.setWidth(width)
Regards
Ayyapparaj
Similar Messages
-
Set valign property for dynamic attribute
hi,
i hv created an application having dynamically created ui elements.
i want to set valign property of the label i hv created.
also , i want to set the latout of the transperent container.
i hv used the foolowing code:
trans.createLayout(IWDFlowLayout.class);
but i get the elements one on top of next not one after another.
plz help.
thanks.
regards,
ankitahi,
i hv created the following appl:
http://infpw01622:50100/webdynpro/dispatcher/local/POP_UP/PopUp_Appl?SAPtestId=24
bt i want it the following way:
http://infpw01622:50100/webdynpro/dispatcher/local/DialogBox/DialogApp?SAPtestId=9
Regards,
ankita -
Is there any way to set a property for all existing Form Fields of a particular type (Che
In versions of Acrobat prior to version 9, selecting a particular form tool (Textbox, Checkbox), etc. would only display Fields of that particular type in the Acrobat Designer (not LiveCycle).
If one wanted to change a particular property of all check boxes for example, one would select the Checkbox Tool, Click Edit>Select All>Right Click one of the Checkboxes and Set the Property for all of the Form's Checkboxes.
Selecting a particular form tool in the Acrobat (not Lifecycle) Designer in version 9 appears to no longer filter the display to that particular form field type. Is there any way to display only 1 particular form field type in or set a particular property for all existing Form Fields of a particular type (Check Box, Text Box, etc.) in Acrobat 9?Thanks for the tip..Am aware of this option and have used JavaScript to batch change properties in the past...
Am looking for a way to replicate the interactive procedure available in previous versions. Also, want a way to only display certain Form Field types (use this when analyzing forms which I didn't create). -
EC CS Consolidation - How can i set up Consolidation for Corporate Group
I have a task to set up consolidation for a Corporate group that has only the corporate office running on SAP and the other 18 subsidiaries are on other systems . Within the 18 subsidiaries there are 2 companies that are assoicates.The corporate group also does limited accounting transactions approx 4 invoices per month for 3 discontinued companies but not yet divested.
The 18 subsidiaries are also broken down into sub groups by type of operations e.g. Retail, Financial services, Investments, Property etc and these also groups need to be reported in a separate report over and above the Main Group Financial reports and the report must show each group (segment) on its own. -- Is there a Standard report that helps me achieve this kind of reportring
The 2 companies that are assoicates should they be created as a group if they are to be reported as a separate subgroup.
Should i create the 3 discontinued companies as company codes or business area .
If i am to create them as company codes what are the advantages and disadvantages.
If i am to create them as Business Areas how will i incorporate them into Consolidation if I am to use Company Conslidation dimension .
How best can i set up my consolidation structures ..
Please advise
Edited by: Stanley Kasukusa on Apr 15, 2010 9:22 AM
Edited by: Stanley Kasukusa on Apr 15, 2010 9:37 AMDear Stanley,
please create two different dimensions:
one for company consolidation with cons units = company codes
one for business area consolidation with cons units = business areas
Do not forget to mark the parent cons unit and create a top cons group.
Cheers,
David -
Can you set default values for person/group picker fields? To current user?
Two-part question/issue . . .
Part 1:
In InfoPath 2013 in use with SharePoint 2013, how do you set a Default Value for Person/Group Picker fields? Other field types like Text Boxes have a Default Value section in the Data tab of Properties. There doesn't appear to be any equivalent for
the Person/Group Picker field type in Properties. I'd like to set a default person for a few fields in a form I've created. Is this possible?
Part 2:
The default user I want to set for one of those Person/Group fields is the "current user." I want a user to log into our SharePoint 2013 intranet, load a new form for edit/creation, and have one of the Person/Group fields in that form to
automatically populate this particular user. Is this possible?Hi Stephen,
You can auto populate your InfoPath farm with current user Name and all other property that you have in your User profile, you have couple of options.
First you can make a secondary connection in your InfoPath form with user profile and can use the UserProfileService.asmx and call the GetUserProfileByName method. Here is the steps you can follow.
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
Secondly you can use JQuery and SPServices ,
$().SPServices.SPGetCurrentUser function to populate the values with script to achieve the same in this case you no need to use InfoPath form just create simple text type column in SharePoint
list and auto populate it with getting the current user Name from User Profile here is the scripts
<script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../../jQuery%20Libraries/jquery.SPServices-0.5.4.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
var userCurrentName = $().SPServices.SPGetCurrentUser({
fieldName: "CurrentUser"
$("input[Title='CurrentUser']").val(userCurrentName);
var userPhone = $().SPServices.SPGetCurrentUser({
fieldName: "WorkPhone"
$("input[Title='Phone']").val(userPhone);
</script>
Krishana Kumar http://www.mosstechnet-kk.com -
Set different ringtone for different group of people
I can not set different ringtomes within iphone 4s for different group people in order to know the different rigntone from which group of people.
You can't and need to assign the ringtones to your contacts on by one.
-
206 unable to set alert only for certain group
Hi,
is it a symbian unwanted feature that user is unable to set Nokia 206
profile to alert for certain group (even though this kind of functionality is
available on this phone)?
To be more precise user is able to set profile to alert only for certain
group but this setting has no effect (phone rebooted, groups recreated, etc. no effect)
This feature has been available and workin in previous Nokia phones
since last decace - is it a software quality issue or what.
Best regards,
HezIt is the Application Pool account making the query to retrieve the groups, so you would need to establish a trust from Domain B -> A.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Setting Hidden property for a Resource Object
Hi,
I am trying to set the hidden property for a folder by this code.
// ICollection coll defined
IPropertyName propName = new PropertyName("http://sapportals.com/xmlns/cm", "hidden");
IProperty prop = coll.getProperty(propName);
IMutableProperty mutProp = prop.getMutable();
mutProp.setBooleanValue(true);
coll.setProperty(prop);
This is not working, any idea what would have gone wrong ?
Thanks,
SamHi,
I am not getting any excpetion...
i have log messages before setting the propert and after setting the property...
so if i am trying to set from false to true......it is not getting set to true but remaining as false....
i am trying this with /documents repository.
Can any body give some sample snippet for setting the hidden property / is there anything else i need to do to complete the setting.
Regards,
Satish -
Set visibility property for items depending on other items
Hello,
I want to set the visibility setting for an item that I have, the steps should be as the following,
for example
if I have an item that asked,
do you have children ?
if the answer is Yes,
the next item should be visible which let's say, number of them
if no,
the next item should be not visible
I tried to set a trigger for the item I am controlling its visibility which is
pre-text-item and wrote
if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
then
set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_true) ;
else
set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_false) ;
end if;
but it doesn't seem to be right, ,,,
thank youI can see two potential problems. The first:
if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
Does CHEQUE_TABLE.CHEQUE_RECEIVED refer to a Data Block and Item? If yes, then you are trying to tell Forms to look at the value of the string 'CHEQUE_TABLE.CHEQUE_RECEIVED' when you should be refering to the value of the Block.Item through direct reference, eg:
IF :CHEQUE_TABLE.CHEQUE_RECEIVED = 'yes'
How is the value of CHEQUE_RECIEVED set? Does the user select the YES value from a List of Value (LOV) or from a Poplist or do they enter the value by typing it in? If your code is looking at the string 'yes' and comparing it to the value of the Block Item which is in upper or mixed case, then 'yes' = 'Yes' or 'yes' = 'YES' will evaluate to FALSE instead of TRUE.
It is always a good idea to use a Poplist or a List of Values when you are expecting specific values to be entered by the user; this enables you to force the value to be entered the same by everyone. If the user CAN type the value in, then at least set the Case Restriction property to UPPER or LOWER so regardless of how the user enteres the value, it will be stored in the corrected case.
Craig... -
hi
i build a block based on storeprocedures ,if i set the
Query Data Source Arguments property in design time with a value
my form will work,
but i need to set this property programetically and in runtime,
if there is any built_in or other ways ,please help me.
thanks in advance.
shoja.Sorry, but there is no way to do this.
If you need to switch the table you're selecting from, you have to do this
inside your stored procedure. -
Help !!!set Arguments property for block based on store procedures
hi
i build a block based on storeprocedures ,if i set the
Query Data Source Arguments property in design time with a value
my form will work,
but i need to set this property programetically and in runtime,
if there is any built_in or other ways ,please help me.
thanks in advance.
shoja.Sorry, but there is no way to do this.
If you need to switch the table you're selecting from, you have to do this
inside your stored procedure. -
Set Custome pipeline for dynamic send port in orchestration
I need to assign custom pipeline for dynamic send port in an orchestration .
The option is available in the Port Configuration wizard
Thanks, Murugesan M - Please Mark as the Answer, if this answers your question. Please vote as helpful, if this post is helpful. -
How to set the read only property for dynamic ALV column
Hi All,
I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
If any one of the flag is 'X',i have to make that name column as display only and
If both flag are not set,it should be displayed as ediatable column.
I have written one method as INIT_ALV which gets called when ALV is loaded.
Code is as follows:
lr_column_settings ?= wd_this->alv_all_roles.
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN <NAMECOLUMN>. "name column which should be editable/display
Create Input Field
CREATE OBJECT lr_uie_input_field_ro
EXPORTING
value_fieldname = ls_column-id.
ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
After this,I have to set the read only property based on IS_SP and IS_CORP values,
CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
EXPORTING
*value = 'IS_SP' or 'IS_CORP'
ENDLOOP.
I dont want to use cell variants also.
Help me to achieve this.
Thanks and Regards,
DivyaDivya - I have done it in the past following these documents. Please read it and try it it will work.
Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
thanks!
Jason PV -
Error while setting input parameter for dynamic process - GP
Hi All,
I am using CAF 7.1 GP.
Here I have to start a process dynamically and it is working fine.
But, when I tried to set value for input parameter of this process by
IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
params.setAttributeValue("Val","MyValue");
( <b>Val</b> is the name of grouped input parameter ), it is giving
com.sap.caf.eu.gp.exception.api.GPInvocationException: Structure with name input and namespace http://wwww.sap.com/nw/eup/gp does not have an attribute with name Val and namespace null.
But no where I have mentioned http://wwww.sap.com/nw/eup/gp.
I dont have any structures in my input and output.
Here is my full code
try
IGPProcess process = null;
IUser tl_user =UMFactory.getUserFactory().getUserByLogonID("fahad");
IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(tl_user);//, user.getLocale());
process =GPProcessFactory.getDesigntimeManager().getActiveTemplate("F5D76840A56F11DC983B001966243CAD",userContext);
wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
int rolenum = process.getRoleInfoCount();
wdComponentAPI.getMessageManager().reportSuccess("Number is "+rolenum);
IGPProcessRoleInstance roleInstance=null;
IUser ho_User=null;
for (int i = 0; i < rolenum; i++)
wdComponentAPI.getMessageManager().reportWarning("Role Text is "process.getRoleInfo(i).getText()" Role Name is "+process.getRoleInfo(i).getRoleName());
if(i==1)
ho_User = UMFactory.getUserFactory().getUserByLogonID("poornendu");
roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
roleInstance.addRuntimeDefinedUser(ho_User);
roles.addProcessRoleInstance(roleInstance);
if(i==2)
ho_User = UMFactory.getUserFactory().getUserByLogonID("fahad");
roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
roleInstance.addUser(ho_User);
roles.addProcessRoleInstance(roleInstance);
wdComponentAPI.getMessageManager().reportSuccess(""+process.getStructure().getItemCount());
IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
wdComponentAPI.getMessageManager().reportSuccess("Title of process is "+process.getTitle());
<b>params.setAttributeValue("Val","MyValue");</b>
String pName=wdContext.currentContextElement().getProcessName();
IGPProcessInstance prInstance = rtm.startProcess(process,pName,"This process has been started using the GP public API",tl_user,roles,params,tl_user);
catch(Exception e)
wdComponentAPI.getMessageManager().reportException(""+e);
Can anyone help me on this.
Thanks,
Fahad HamsaHi Experts,
I solved it myself.
The problem was, I have to make the input parameter as exposed. Thats all
Anyway, thanks for the support.
Regards,
Fahad Hamsa -
Setting SharingCapability property for a Site Collection using CSOM in C#
Hello,
I am trying to deploy multiple site collections in a SharePoint 2013 Online tenant, using CSOM in C#.
I am currently using the SiteCreationProperties to do this, but I miss one crucial parameter : SharingCapability.
Do you guys know a way of activating external sharing for a site collection in CSOM ?I believe you can set the SharingCapability of the Site after you create it. You can use the Microsoft.Online.SharePoint.TenantAdministration.Tenant.GetSitePropertiesByUrl(siteUrl, true)
This returns SiteProperties object with a SharingCapability property you can set with the appropriate enumeration. Then call the Update method.
http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.tenant.getsitepropertiesbyurl(v=office.15).aspx
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer
Maybe you are looking for
-
How can I view just one spread at a time of my interactive PDF?
Hi, Apologies of this has been asked before. I am creating an interactive PDF of a magazine, to be viewed online. I would like to be able to 'flip' through the spreads one spread at a time. I do not want to be able to scroll down. I do not want to us
-
when I updated my mac mini to mountain lion it gave me an icon on my desktop of a hard drive, can I delete this?
-
ICloud: I can't set a check mark at calendar, contacts and mail. Why?
iCloud: I can't set a check mark at calendar, contacts and mail. Why?
-
Get the qty from the unrestricted stock
Hi, My Requirment is below Select material (MATNR), plant (WERKS), unrestricted stock (LABST) from table MARD where material (MATNR) IN S_MATNR AND plant (WERKS) IN S_WERKS. Inner join the selection above with table MAKT to retrieve the mater
-
This disk doesn't use the GUID Partition table scheme.
When I Install the Lion. It is stuck. Lion This disk doesn't use the GUID Partition table scheme.Use disk Utility to change the partition scheme.Select the disk,choose the Partition tab,select the Volume Scheme and then click Options. The last step h