on 04-21-2009 2:46 PM
Hi,
I create a data type, and i have an element with an attribute, and define some restrictions like minlength, maxlength in the details description of that element, but when i try to create an attribute of this element, an error message pop up "Entries in details column will be deleted. Continue?" if click yes,the attribute is created,but the restriction details are gone, if click no, then the attribute cant be created.
is there any way to solve this issue?
Thanks a lot
Jessica Ding
An attribute can be created only for those elements for whom you define only cardinality (occurence)...if you try to define any extra parameters you will get the result which you are getting now.....
So you either define attribute to an element or you define the restrictions and other stuff.
Same is the case with creating Subelements ....just try creating a subelement for an element with type, restrictions and you will see same thing happening
Regards,
Abhishek.
Edited by: abhishek salvi on Apr 21, 2009 7:21 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it is not possible to mention the minlength, maxlength for an attribute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, ravi
i am working on PI 7.0. i can create an element with minlength and maxlength too, but i cant create an attribute of this element , can you do that in XI 3.0?
Thanks a lot
Jessica Ding
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, ravi
actually even i set the element type as xsd:string, and then set the minlength, maxlength, i still met this issue.
Hi, madhav
my actually data type is really complex, so i just try a really simple one, like:
<EmpDetail>
<name></name>
<telphone></telphone>
<empid></empid>
<address zipcode=""></address>
</EmpDetail>
if i set minlength,maxlength of address element, and try to create the zipcode attribute i will get that issue.
Thanks a lot
Jessica Ding
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
actually even i set the element type as xsd:string, and then set the minlength,
maxlength, i still met this issue.
if i set minlength,maxlength of address element, and try to create the zipcode attribute
i will get that issue.
You should not (rather you cannot) do this.....you cannot set anything other than Occurence for an element if you want to define an attribute under it....there is no workaround for this.
Regards,
Abhishek.
Hi,
If you are trying to create an element of Integer type and provide Details like min length and max length, which are relevant only for xsd: string, then you lose the information provided in the details column.
Otherwise, there should not be any issue.
Regards,
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
can you please mention the exact Structure u required?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.