Set data type property

Hi all.
I'm on devsuite 10g.
Is there a way to set the data type property of an item at runtime???
Thanks all for the collaboration,
Fabrizio

You can't it's a design time only construct

Similar Messages

  • Struggling on h:inputText tag for date type property

    I am struggling to display a simple form which is attached to a bean having a Date type property.
    I get the following exception each time I try to access the form, even it does not display as a blank form for the first time access.
    Exception:
    [#|2008-01-04T14:39:13.500+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=httpWorkerThread-3031-1;_RequestID=676ba2b1-9b5e-4a96-adb5-b1a792507b40;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    javax.faces.FacesException: Error performing conversion of value ' of type class java.lang.String to type class java.util.Date for managed bean userBean.
    javax.servlet.ServletException: Error performing conversion of value ' of type class java.lang.String to type class java.util.Date for managed bean userBean.The JSP page contains the following tag for the inputText
                <h:inputText value="#{userBean.dob}" id="dob" required="true">
                    <f:convertDateTime pattern="MM/dd/yyyy" />
                </h:inputText>
                <h:message for="dob" />I want to display a blank form with all the text fields blank.
    Any help will be much appreciated.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • How to set integer type property using um:setProperty

    Using WLP 8.1 .
    Can anyone help to set integer type property programmatically.
    i tried <um:setProperty> . but it can send only string or object type
    not Integer.
    tia
    Mahesh

    Thanks
    It worked for me
    Mahesh.
    Gregory Smith <[email protected]> wrote:
    For Numeric properties, I believe you actually need to use a
    java.lang.Long object (which extends java.lang.Object so it should compile):
    <um:setProperty propertySet="..." propertyName="..."
    value="<%=new Long(10)%>" />
    Greg
    Mahesh wrote:
    Using WLP 8.1 .
    Can anyone help to set integer type property programmatically.
    i tried <um:setProperty> . but it can send only string orobject type
    not Integer.
    tia
    Mahesh

  • Bug: setting ColumnChart type property breaks the chart object.

    PLease confirm if this Is this a bug or maybe ColumnChart
    type property is only applicable as MXML tag attribute?
    Description: Setting the
    type property of
    ColumnChart object other than "
    clustered" breaks the chart object. (i.e: series dissappear)
    Resetting to "clustered" wont restore the series.

    It breaks the chart when series have effects applied,
    otherwise it works fine.

  • Setting Chart type property of iSPC chart dynamically doesn't work

    Hi all,
          I am trying to set the chart type property (XBAR, MEDIAN etc..) of iSPC chart dynamically from my html page.
    This is the code that I used.
    var chart_obj = document.iSPCChart.getChartObject();
    chart_obj.setChartType("MEDIAN");
    iSPCChart is my Applet name.
    But the code doesn't seem to work.
    The chart is always of the type that I have set in the iSPC display template.
    Can someone help me in this regard?
    Thanks a lot.
    Regards,
    M.Subathra

    M,
    Even though that method shows up in the script assistant and the docs it really doesn't work. 
    Just swap out the display template for one saved with the desired type:
    document.iSPCChart.setDisplayTemplate("Folder/MedianChart");
    document.iSPCChart.updateChart(true);
    With all of the alarm rules, colors, limits, settings, etc. it is not likely that you will have the same view (display template) that applies to every SPC chart type.
    There is also a predelivered example of an SPC Chart that uses an iframe and an irpt to dynamically pass the chart type (along with other settings) you can reference: http://<servername>/Lighthammer/Samples/SPC/Servers.irpt
    Regards,
    Jeremy Good

  • BC4j-- unable to set date type attribute in a row

    when i m set a attribute which is of date type in row of a view.
    it is giving me error " cannot create object of date type"
    i'll apreciate the answer to this problem
    thanx

    <%
    SimpleDateFormat databaseFormat = new SimpleDateFormat();
    SimpleDateFormat viewFormat = new SimpleDateFormat();
    databaseFormat.applyPattern("yyyy-MM-dd");
    viewFormat.applyPattern("MM/dd/yyyy");
    // to convert &#8220;MM/dd/yyyy&#8221; to &#8220;yyyy-MM-dd&#8221; for updating database
    String date_view=&#8221;12/31/2001&#8221;;
    String date_db=new String(databaseFormat.format(viewFormat.parse
    (date_view)));
    ...setAttribute(column_name,date_db);
    %>

  • Setting a Type property on a custom object in XAML

    I have the following converter which needs to know the Enum type to parse. 
    public class EnumToStringConverter : IValueConverter
    public Type EnumType { get; set; }
    public object Convert(object value, Type targetType, object parameter, string language)
    public object ConvertBack(object value, Type targetType, object parameter, string language)
    Then I declare the type in XAML using the same syntax used for styles.
    <UserControl x:Class="MyProject.PreferencesPage"
    xmlns="..."
    xmlns:converters="using:MyProject.Converters"
    xmlns:model="using:MyProject.Model">
    <UserControl.Resources>
    <converters:EnumToStringConverter x:Key="EnumToStringConverter" EnumType="model:ResultSize" />
    </UserControl.Resources>
    <!-- ... -->
    </UserControl>
    I don't get any squiggle lines, but I get a parse error at runtime.
    This is the error:
       An exception of type 'Windows.UI.Xaml.Markup.XamlParseException' occurred in BingImageSearch.exe but was not handled in user code
       Additional information: Failed to create a 'Windows.UI.Xaml.Interop.TypeName' from the text 'model:ResultSize'. [Line: 14 Position: 82]
    IIRC, this syntax was restricted to TargetType properties on styles and templates in WPF and Silverlight, is this still the case?

    I just came on here to look for this issue since I ran into the same thing. We absolutely should be able to set a Type-based property in XAML.  We can in WPF and SL.  Please either fix this TypeName error bug or at least provide us with the
    x:Type markup extension so that we can pass types directly to dependency properties in XAML with type checking.
    Can someone from Microsoft respond to this request?
    actiprosoftware.com - Professional WPF, WinRT, Silverlight, and WinForms UI controls and components

  • Setting data type of an object at run time

    This is something of an advanced problem, so I hope there's
    someone out there who can speak to this. I apologize for the length
    of the post, I'm just trying to be clear about a rather unclear
    conundrum. --
    We all use arrays to hold collections of things. As you know,
    an array is its self a type (Array) and so there is no way to
    declare, for instance, an array of MovieClips or an array of
    Strings. Heres what happens: lets pretend that we have 3 movie
    clips clip1_mc, clip2_mc, and clip3_mc, and an Array called
    anArray. so we can legally do this. anArray.push( clip1_mc );
    anArray.push( clip2_mc ); anArray.push( clip3_mc );. An array of
    size 3. Now the code: trace( typeof anArray[0] ); will output
    "object." This can be a problem. If you try this: var
    newClip:MovieClip = anArray[0]; you get a type mismatch from the
    compiler. "Found Object where MovieClip is required." It
    necessitates this: var newClip:MovieClip = MovieClip( anArray[0] );
    Bummer no?
    Ok. So fast forward. Lets assume a class List that uses an
    array to hold the items in the list. So the class uses the Array
    class in "composition." So you have methods like insert( ); and
    retrieve(). Retriece() returns an item from an index in the array.
    Because of the aforementioned problem, no matter what type the
    thing was going into the list it comes out with type Object because
    the retrieve function must return an item of some type, the only
    option is to declare the return type of the retrieve() function as
    Object. Lets say you know that this is a list of Strings. You could
    write the retrieve()'s code like: return String( returnItem ); And
    type the object "on the way out" .. but what if you want the list
    to work with any type object, you would have to have a variable to
    hold the desired type of objects in the list. And then as the
    objects are being returned, you'd cast them to the type stored in
    that variable. I guess that you'd pass the type to the constructor
    of the List: var aList:List = new List( "AddressCard" ); -- That
    should declare a List (Array) of AddressCards.
    Is there a way to do this? have the type specified in casting
    be dynamic?
    And the flip-side of that is detecting the name of the class
    of an object instance. The thing here would be to try to derive a
    String from the name of the constructor function. (which is always
    the class name) In actionscript 3 there is a service package--
    mx.util -- I think, that has a function to return the qualified
    class name of an object. But is there a jimmy rig for this in AS2?
    My actual project does not use an Array to implement List. (
    or Stack ) It uses a structure called a "linked list" - which is a
    whole other topic, but same problem as with Arrays is also present
    in the linked list versions and so requires the same solution. If
    one is willing to type things explicitly when assigning an item in
    the list to a variable of some type, this thing is quite excellent.
    But I don't like it. I have the package with docs, code, sample
    fla's, diagrams and everything that I would encourage people to
    download, look at, try and whatever and then come back here with
    any thoughts on it. There is a component with Flash professional
    that is a list like structure, but it's so general that it crosses
    the line into bloat. Ie: if you are using a list as a stack, you
    only need getTop() and pop() and push() not all the other (12 or
    so) methods in the class. Mine are patterned after structures from
    the C++ standard template library. And the code style is C++, but I
    think it's actually easier to read that way.
    the files:
    http://www.null.bz/ADL_Lib/ADT_Lib.zip
    Thanks in advance, for your efforts! I really appreciate all
    of it, helpful or not.

    First reactions:
    >>var newClip:MovieClip = MovieClip( anArray[0] );
    Even though you must use a cast to prevent the compile time
    error, you don't get an error on this line because the compiler
    skips typechecking for values accessed with the [] operator.
    >>Is there a way to do this? have the type specified in
    casting be dynamic?
    Nope. You must effectively type check all objects used
    through array elements yourself.
    Reading on...

  • How to change the data type property of a feild property at run time.

    i have feild varchar2(15) in database, but if want to insert alphanumric, char, number it at runtime by changing its parameters dynamically (parameter is a).
    i have write this code
    if a= 'C' then
         set_item_property('CAPTION1',DATATYPE,'Char');
    elsif a='N' then
    set_item_property('CAPTION1',DATATYPE,'Number');
    else
    set_item_property('CAPTION1',DATATYPE,'alphanumeric');
    end if;
    no compile time error but its not working at runtime, any one can help me.

    Checking for number is easy:
      Declare
        c varchar2(100) := 'hello';
        n number ;
      Begin
        n := To_Number(c);
      Exception
       When Others Then
       -- cannot convert string to number --
      End;You can do the same to check dates also
    Francois

  • How to set task type of a task in MS Project using excel vba code.

    Hello Gurus,
    I am generating MS Project files(.mpp) files form excel data. An excel macro in the excel file will read the excel data and will generate the .mpp file. It is working fine. now i want to set the task type of all the tasks to "Fixed work" from excel
    vba code.
    How to use the property PjTaskFixedType in setting the task type??
    refer below links
    http://msdn.microsoft.com/en-us/library/office/ff861713.aspx
    http://msdn.microsoft.com/en-us/library/office/ff864157.aspx
    Can someone help me in setting task type property from excel vba.
    I have attached my sample code used to generate the mpp file. It is not the complete code but you will get an idea from it.
    Set pjApp = CreateObject("MSProject.Application")
    pjApp.FileNew
    Set newproj = pjApp.ActiveProject
    newproj.Tasks.Add (task_name)
    newproj.Tasks(mpp_row_number).Start = task_start_date
    newproj.Tasks(mpp_row_number).Finish = task_end_date
    newproj.Tasks(mpp_row_number).ResourceNames = resource_name
    pjApp.FileSaveAs mpp_file_save_path & mpp_file_name & ".mpp"
    pjApp.FileClose
    pjApp.Quit
    Any help is appreciated.

    Hi Syamku,
    A simple example that sets the task type:
    ActiveProject.Tasks(2).Type = pjFixedDuration
    ActiveProject.Tasks(3).Type = pjFixedUnits
    ActiveProject.Tasks(4).Type = pjFixedWork
    http://msdn.microsoft.com/en-us/library/office/ff860469(v=office.15).aspx
    Hope this helps

  • Component-data-type

    hi,
    what is the difference between component-data-type,component-item-type and data-type

    what is the difference between component-data-type,component-item-type and data-typeSuppose Student have property hobbies then we use component-data-type="String".
    Suppose Student have property subjects of "subject" item-descriptor" type then we use component-item-type="subject".
    Suppose Student have property *firstName* of type string then we use data-type="String".
    data-type
    {code}
    Example:
    <gsa-template>
         <item-descriptor name="Student">
         ...........some properties......
         <!-- use of component-data-type -->
         <table name="user_hobbies" type="multi" id-column-names="id">
    <property name="hobbies" column-name="hobbies" data-type="set" component-data-type="string"/>
    </table>
    <!-- use of component-item-type -->
    <table name="user_hobbies" type="multi" id-column-names="id">
    <property name="hobbies" column-name="hobbies" data-type="set" component-item-type="subject"/>
    </table>
    <!-- use of data-type -->
    <property name="firstName" column-name="firstName" data-type="String"/>
         </item-descriptor>
         <item-descriptor name="subject".......>
         ...........you may have property like subjectname, subjectcode etc
         </item-descriptor>
    </gsa-template>
    {code}
    For deep study you can follow doc:
    http://docs.oracle.com/cd/E26180_01/Platform.94/RepositoryGuide/html/s0601sqlrepositorydatamodels01.html
    Hope this helps.
    -RMishra
    Edited by: RMishra on Mar 1, 2013 7:35 PM
    Edited by: RMishra on Mar 1, 2013 7:40 PM

  • BINARY data types

    Hi all,
    I have a simple question. I want to reproduce the SET data types (mysql) in Oracle. So I want assign a binary value to a column. I create a column with CHAR(1) type and I want assign for example 00000010 binary value.
    It's possible ?
    Thanks in advance

    2) RAW data type is not present in express edition. And I use it for migration testing...Why do you believe that the RAW data type isn't present in the express edition? The UTL_RAW package is included in the express edition and I'm not finding any obvious documentation indicating that RAW columns aren't supported in the express edition.
    3) In certain case, I need to store approximately 60 elements. That's why I want to use binary data type. It reduce space to 8 bytes.Unless we're talking about a table with billions of rows, is a difference of at most 52 bytes per row really going to make a difference? Particularly given the extra overhead of doing the binary comparisons? And 52 bytes is an upper limit, since trailing NULL values don't require any storage space
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/schema.htm#sthref735
    Plus, 60 separate flag columns will be a heck of a lot easier for future reporting tools to handle rather than having everyone try to decode the values. And you can use bitmap indexes, regular indexes, etc much more easily.
    Justin

  • Programatic import can't clear out a property of data-type="set"

    Our catalog repository has a item-descriptor for a "sku" that has a property named "modelProfiles" which is a data-type="set". This allow our SKUs to have a one-to-many relationship with ModelProfile components.
    We programmatically import and update these SKUs through gsa-xml files. This usually works great, but the problem I am having is that there appears to be no way to "clear out" the set that a given SKU is connected to. I can add to the set, I can reduce the members of the set, but when I try to make an individual SKU's set empty, the BCC project shows the related SKU as unchanged (meaning that it still has all of its SKUs).
    How can I clear out a property of type "set" using gsa-xml like...
    <pre>
    <update-item item-descriptor="sku" id="sku160005">
    <set-property name="modelProfiles" value="__NULL__"></set-property>
    </update-item>
    </pre>
    Our custom calalog.xml entry for this mess looks like...
    <pre>
    <item-descriptor name="sku">
    <table
    name="the_sku_modelprofile"
    type="multi"
    id-column-name="sku_id" >
    <property
    name="modelProfiles"
    data-type="set"
    column-name="model_profile_id"
    component-item-type="ModelProfile"
    display-name="Model Profile"
    category-resource="theBasics"
    required="false" >
    <attribute
    name="resourceBundle"
    value="the.commerce.ProductCatalogTemplateResources"/>
    <attribute name="propertySortPriority" value="-55"/>
    </property>
    </table>
    </item-descriptor>
    </pre>
    As always, any help is greatly appreciated.

    You just need
    <update-item item-descriptor="sku" id="sku160005">
    <set-property name="modelProfiles" value=""></set-property>
    </update-item>

  • WCF :Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property

    Hi All,
    Currently I am working in a WCF project here when I try to send data from WCF Project 1 to WCF project 2 I am getting the below error.
    The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:subscriber. The InnerException message was 'The use of type 'Integra.Business.ICC.ObjectChangeTracker'
    as a get-only collection is not supported with NetDataContractSerializer.  Consider marking the type with the CollectionDataContractAttribute attribute or the SerializableAttribute attribute or adding a setter to the property.'.  Please see InnerException
    for more details.
    I don't understand what issue this is since I am new to WCF. Please help me on this thanks in advance.

    You've posted to a forum for Microsoft Project - a project management program.  Please re-post your question to the WCF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf
    Sorry - I cannot seem to move your post for you.
    Julie

  • How to set a date type variable to null, nothing or such

    I created an User Defined Type that holds a Deadline property which is date type. Whenever there is no Deadline set yet, I would like such property to be set to Null, Nothing or such. I noticed that if I just Dim a Date Type variable its value will be
    already set to 12:00 AM, and the same value takes place if I set the variable to a blank cell value. Any ideas to get around of this problem?
    Jorge Barbi Martins ([email protected])

    A variable of type Date cannot be empty. Its default value is 0, which corresponds to Midnight on 30 December 1899.
    If you want to be able to make it empty, declare it as Variant instead of as Date. You can then set its value to Null.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

Maybe you are looking for

  • How to read XL file from FTP server

    Hi all, I have a requirement like to read file from FTP server using path ftp: 10.212......\DTR\DTR_ Accounted_Out and again save  other file in same location , to doing this RFC connection is required? give a  procedure or program to do this require

  • Why can't I open a document in pages on my iPod touch 4 that I created on my iPad 3?

    I have an iPod touch 4th generation on ios 6.1.3 and an iPad 3 on 7.0.3 and i am trying to open a document in pages that i made on my iPad on my iPod touch. When i click on the file, it says "newer version required," but when i go to update it, it sa

  • Does anyone know whether BT has a mail server that...

    Does anyone know whether BT has a mail server, other than mail.btinternet.com, that supports only POP3/SMTP and not IMAP?  For those interested, the background is as follows. I've been trying to get my iPad Mail client to connect to mail.btinternet.c

  • Excel file upload failing

    hi all, i have a webdynpro application, in which i am uploading an excel  file, and reading the same file, it is working fine. But the problem is, Some times while uploading it is taking  time for the processing. after that it is failing to upload an

  • Pages on ipad and iphone

    my documents are not moving from pages on my iphone to my ipad