How to restrict max children for a node containing different node types
Hi,
I have the following XML:
<categories>
<category id="hsp">
<cardUsage id="hsp.approvals">
<tabUsage id="hsp.approvals.puListing"/>
<tabUsage id="hsp.approvals.puDashboard"/>
</cardUsage>
<cardClusterUsage id="hsp.someCluster">
<cardUsage id="hsp.someCluster.approvals"/>
</cardClusterUsage>
</category>
<category id="psb">
</category>
<category id="pfp">
</category>
<category id="cx">
</category>
</categories>
I need to put a restriction that node category cannot have more than 16 children (cardUsage nodes + cardClusterUsage nodes).
The way I was thinking to achieve this is, use a new node Usage as child of category. I could set maxOccurs on Usage to 16. And then in Usage use the xs:choice to choose between cardUsage and cardClusterUsage. And setting the maxOccurs to 1.
Please let me know if there is a better way to do this. Or you see any flaws in my proposal.
Thanks for you time in advance,
Manish.
Does the order of category children matter?
If not, you can directly set maxOccurs to 16 in the xs:choice element :
<xs:element name="category">
<xs:complexType>
<xs:choice maxOccurs="16">
<xs:element name="cardUsage" type="..."/>
<xs:element name="cardClusterUsage" type="..."/>
</xs:choice>
<xs:attribute name="id" type="string"/>
</xs:complexType>
</xs:element>
Similar Messages
-
How to Restrict Max Recipient for Inbound in Exchange 2010
Hi,
I want to restrict my inbound mails which is having more than 10 recipients (it may be TO,CC & BCC) in my Exchange 2010.
I set the limit to 10 in the following area.
1.Mailbox
2.Organization
3.Connector (for Receive connectors only)
4.Transport server
But still external users send a mail to more than 10 of our users.
Accepted domain is configured as an internal relay domain.Hi,
Based on my knowledge, we can't restrict the inbound recipients number in Exchange server. What we can do is restrict the outbound recipients number. For an example, if you set the value of RecipientLimits to 10 for user1, then user1 can't send an message
with more than 10 recipients, but the setting can't have an effect on receiving messages. Your understanding will be appreciated.
Hope my clarification can be helpful to you.
Best regards,
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Amy Wang
TechNet Community Support -
How to restrict the GR for Production Order when Goods Issue is not done
Hi Gurus
How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
Pls suggest best solution.
Abhijit.Hi,
You can club together the GI nad GR at the time of confirmation..
I.e Backflush for the components and auto GR for the Product.
So that you can stream line the Process.
The best Option would be to use the User Exit:
Enhancement - MBCF0002
Functional Module - EXIT_SAPMM07M_001
Include - ZXMBCU02
Refer below link for further details..
How to stop the goods receipt before issueing the goods for production orde
Regards,
Siva -
In mdx how to get max date for all employees is it posible shall we use group by in mdx
in mdx how to get max date for all employees is it posible shall we use group by in mdx
example
empno ename date
1 hari 12-01-1982
1 hari 13-06-2000
by using above data i want to get max dataHi Hari3109,
According to your description, you want to get the max date for the employees, right?
In your scenario, do you want to get the max date for all the employees or for each employee? In MDX, we have the Max function to achieve your requirement. You can refer to Naveen's link or the link below to see the details.
http://www.sqldbpros.com/2013/08/get-the-max-date-from-a-cube-using-mdx/
If this is not what you want, please provide us more information about the structure of you cube, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
How to create Import format for building version Hirerarchy and Node
Hi
i Want to know how to create Import format for building version Hirerarchy and Nodes.Can anyone show me with example or format for version Hierarchy with few nodes for the hierarchy
i Want to Build this 1. Version1 (Version)
2.Account (Hirerarchy)
3. Balancesheet (Limb)
4. Assets (Limb)
5. Cash (Leaf)
Thanks,Please follow the DRM User Guide,
http://docs.oracle.com/cd/E17236_01/epm.1112/drm_user.pdf
Below is my preferred approach, by selecting only relation and Hierarchy sections,
The relation section contains the Node Name and Parent Name ( you can include any other properties, but as a best practice keep the Parent Node as the last column).
The Hierarchy ( Hier ) section contains the Hierarchy Name, Top Node and Hierarchy description
Follow the Import steps and provide a Name for the version.
++++++++++++++++++++++++++++++++
[relation]
AC_BalanceSheet AC_Account
AC_Asset AC_Account
AC_Cash AC_Account
[hier]
Account AC_Account AccountHier
++++++++++++++++++++++
Note: Please delete all the special characters (TAB) created at the end of [relation] and [hier] sections while you copy the content from an Excel sheet to a Notepad. -
How to restrict the user for re-submitting the same form
Hi All,
I would like to know, How to restrict a user for re-submitting the same page.
I have a jsp page with submit button... and should not allow the user to save the same data again ..
AnilTry the followings. If user disable cookies, this will not work. You need to modify to detect such situation!
String processed = "mycooke";
Cookie[] cookies = request.getCookies();
Cookie c = null;
if (cookies!=null) {
for (int i=0; i < cookies.length; i++) {
if (cookies.getName.equals(processed)) {
c = cookies[i];
break;
if (c!=null) {
// already processed.
// send error message and exit.
// set cookie;
c = new Cookie(processed , "yourdata");
c.setMaxAge(-1);
response.addCookie(c);
// process as it is the first; -
How to get the children for a selected tree node?
Hi,
I want to get the number of child nodes for any selected node in JTree.
How can i do this?
Any help, greatly appreciated!!if you have a node already where aNode is a DefaultMutableTreeNode for example, then you can use that object's API method to get the child count.
int childCount = aNode.getChildCount();
If you want to loop through all of a node's children and do something at each node, the following may help:
java.util.Enumeration e = aNode.children();
while ( e.hasMoreElements() ) {
DefaultMutableTreeNode n = (DefaultMutableTreeNode)e.nextElement();
//Do something with n
Hope this helps,
Claire -
How to restrict changing password for user ?
Hi All experts ,
We have created users . Users should not change their password without permission of Administrator . How to restrict them by setting Permissions / Authorizations ?
Thanks.
KISHORE SATPUTEHi,
In "USER MAINTENANCE- SU01" --> in the "logon tab" there are 5 different "user type"
1. dialog
2. system
3. communication
4. service
5. reference
Kindly mention the function and role of all the above mentioned user types specifically and hows is one user type different from another.
These are as follows:-
1. Dialogue:-
For this kind of users:-
GUI login is possible.
Initial password and expiration of passowrd are checked.
Multi GUI logins are checked.
Usage:- These are used for GUI logins.
2. System
For this kind of users:-
GUI login is not possible.
Initial password and expiration of passowrd are not checked.
Usage:- These are used for internal use in system like background jobs.
3. Communication
For this kind of users:-
GUI login is not possible.
Users are allowed to change password through some software in middle tier.
Usage:- These are used for login to system through external systems like web application
4. Service
For this kind of users:-
GUI login is possible.
Initial password and expiration of passowrd are not checked.
Multiple logins are allowed.
Users are not allowed to change the password. Only admin can change the password
Usage:- These are used for anonymous users. This type of users should be given minimum authorization.
5. Reference
For this kind of users:-
GUI login is not ible.
Initial password and expiration of passowrd are not checked.
Usage:- These are special kind of users which are used to give authorization to other users.
Rewads point if helpful
Thanks
Pankaj Kumar -
How to restrict Option values for a particular metadata in profile checkin
How to restrict Option values (drop down) for a particular metadata in profile checkin-
Metadata field Color is having options dropdown values (stored in table/views)-
Display name - Blue, Value=1
Display name - Red, Value=2
Display name - Yellow, Value=3
Display name - Green, Value=4
Display name - Black, Value=5
For a particular profile checkin form, for the metadata field Color I want the dropdown value consist of only top three options
Display name - Blue, Value=1
Display name - Red, Value=2
Display name - Yellow, Value=3
But this should be done on profile level only, should not impact the standrad checkin form and other profile checkin forms.
Please help me if any one having any suggestion to implement the above secnario
Thanks,
SumitHi,
Into the rule containing the Color metadata, you can restrict the values of the list.
In "Has restricted list and pane", list the values 1, 2 and 3 (new line for each value) :
1
2
3
Romain. -
How to set max length for TextField ?
how do i go about setting a max length for a TextField in jdk1.1.8 ?
a while back there was a topic on this but it was for jdk1.0
please helpwell if it works in 1.0 it will most likely also work in 1.1.8 if it is depricated you can use the -deprication option during compilation to see what is derpricated and what method i advised to use now.
there may however be an easyer way in 1.1.8 but i don't know that.
hope this helps you,
Robert -
How to restrict PR Changes for DMS?
SAP Query:
1. When PO is released for a particular item its PR automatically gets locked i.e. you can not change the PR.
But it is possible to change the documents attached to it or to add or link other documents to it. Iu2019ve checked it for one PR.
There is no any system message or warning as the said PR is locked or blocked.
2. Same is true for quality notifications. Even if you clear it, it is possible to link the documents to the notification.
If you want to change PR or notification thereby linking new version of document to it, it is not possible via ME52n or QM02, instead there is a gateway thr. DMS system.
How we can Restrict PR changes for DMS..
Rgds,
NavinHi,
I do not know which support package do you have, but there´s a note to avoid this changes. Please apply the note 928590 if it suits your package level.
Best Regards,
Arminda Jack -
How to define document protocol for Custom/Generic message of ASCII types
We need define for B2B document protocol for Custom over Generic message type to receive/process ASCII message (either fixed or indefinite length) from Trading Partner, can anybody tell us if you have done it with detailed example and instruction:
1) In creating protocol revision/document definitions, do I need an Edifecs .ecs file? if yes, how to create the format for indefinite string? if not what I should put in document
definition for 'IDoc ecs File' ? (we actually we may have two different types
of ASCII message, not sure how to differentiate them)
2) Does Identifying expression need message/document translated into XML first ? since it's for
'Identifying XPath Expression' which implied existence of XSD
3) Please provide detailed example you accomplished this in B2B
Thanks in advance for any help!Yes its something on the similar lines but looks like this comparator needs to be at some specific place.
I tried to implement comparator interface in the custom domain data type class but it still throws the same exception.
Looks like RowComparator needs to be defined somewhere. any idea where?
The complete exception is below:
Caused by: oracle.jbo.JboException: Cannot find compare routines for test.MyString
at oracle.jbo.RowComparator.compareValues(RowComparator.java:108)
at oracle.jbo.RowComparator.compareRows(RowComparator.java:146)
at oracle.jbo.RowComparator.compare(RowComparator.java:158)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.mergeSort(Arrays.java:1281)
at java.util.Arrays.mergeSort(Arrays.java:1281)
at java.util.Arrays.sort(Arrays.java:1210)
at oracle.jbo.server.ViewObjectImpl.sortRows(ViewObjectImpl.java:6752)
at oracle.jbo.server.QueryCollection.sortRows(QueryCollection.java:995)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1177)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1331)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1249)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1243)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6715)
at org.calwin.view.bean.Table.tableSorting(Table.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) -
How to set max size for varchar?
Hi, all.
I want to set a type like Varchar(max) in SQL Server.
How to do that in MAXDB?
Thanks.Hi,
sorry, I am not familiar with this feature in SQL Server.
For MaxDB the maximum length for CHAR (n) ASCII is 8000, for CHAR (n) UNICODE is 4000,
for CLOB is 2GB.
There is not chance to restrict these maxima.
If you want to define your 'own' datatype, maybe the concept of DOMAIN (see reference manual --> Data Definition --> CREATE DOMAIN) may help.
If this does not answer your question, please help us by describing this SQL Server-feature.
Elke -
How to restrict a user for the other plant orders In CATS
Hi
We are using CATS for entering labour hours in PM orders. While entering the time in CAT2 first we will select the personal number of the employee and the order number in which he has worked .
My question is while entering the order number if we worgly entered the other plant order number it should give error message saying that order number not belong to other plant.
How can we restrict this .At present it is accepting the other palnt orders
Thanks in advance
GangadharHi,
You have to add some more fields in CAT2 this will serve your purpose.
Text for Plant etc .
Regards,
Kapil Kaushal -
How to restrict lot numbers for customers
We have customers who will not accept products from certain suppliers.
Is there any solution that impose restriction and modifies the order fulfillment logic enforcing customer/supplier restrictions.
eg., We receive the parts against PO/receipt, while receiving user enters LOT Number.
After intermediate process product comes out as Finished good and it will be ready for ship.
Requirement is at picking level for few customers restrict items from lots supplied by specific suppliers, not be picked.
Anyone have any idea how to implement this. Thanks.Hi,
This sounds good, but this makes INV over restrictive and conflicts with our custom processes.
And if any customer specific INV (where we cannot include this lot restriction) exists then it may also interfere.
Can you think of any alternate solution.
Thanks
Gadudasu
Maybe you are looking for
-
Is there a way to get rid of Album Artwork?
I know people like having the album artwork on their iPod, but I actually don't want it on mine at all. There used to be an option to tell iTunes to not load it at all, but now it seems they want me to have it whether I want it or not. Is there a way
-
Copying some files using the Finder results in a dialogue box error message: "The Finder cannot complete the opeeration because some data in +(file name)+ could not be read or written. (Error code -36). The same files copy without error when using Si
-
HT201262 screen on the TV flickering purple when connecting mini mac to TV through HDMI
anybody come across a problem with the TV connected to Mini mac, when i connect my HDMI cable to my TV and open up safari click onto Apple.com watch a video on their home page in full screen the screen flickers purple any ideas what could be the prob
-
Problem in Calling a smartform in a driver program(SE38)
Hi, I created a report in SE38 and i have a 5 CHECK Boxes. i called a smartformsin that program. My problem is if i check the 5 check boxes the layout should show 5 copies. if i check 3 check boxes the layout should show 3 copies. e.t.c. Edited
-
Reg: Simulate the system i/0 and user i/o
Hi all, Currently am in the process of testing the database perfomance. As per , want to simulate the system i/o and user i/o upto 30ms. Please let me know the ways. your early will be highly appreciated. Thank you Regards Krishnan