HOW CAN I SET AN ITEM LENGHT IN CODE !!!

hi
i want to set an item lenght by code!!!! and not by using " property palette". i want to use it in the pre-insert/update trigger . i tried to use "set_item_property" but i didnt find any parameter that can solve my problem.
Please help me it is very important .
thanks .

i will try to explin myself i want to let the user to enter only 40 characters despite the fact that the text item can get up to 70 char ( the text item is based on DB column that is varchar2(70)) and i want to limit the user to 40 char because i take the item he updated or insered from the oracle DB and load it to another DB there the same column is in type varchar2(40) and i want to limit the user insted of substructing the string he is inserting.

Similar Messages

  • How can I set system date from java code?

    Hi. I need to set the system date from my application. It must works on Windows7 so the "cmd /C date" must be executed with Administrator privileges.
    I tried do it that
    Process p = rt.exec("runas /user:" + env.get("COMPUTERNAME") + "\\Administrator \"cmd /C date " + dateYYYYMMDD + "\"");
    Then process ask me for password for administrator but it terminates befor i send it. exitCode() returns 1.
    Have you some idea how can I do it?
    Regards for you.

    At the very least, you need to read this and follow the advice it gives. That may or may not solve your problem, but it's a bare minimum.
    http://www.javaworld.com/jw-12-2000/jw-1229-traps.html

  • How can i set the item properties at top level

    Dear all
    i want to set the responsiblityname and operating unit name at the top of the page
    is there any specific regions are there to set at the top level of the page(Image region)
    Regards
    Sreekanth

    FND Framework Compataibiity Mode is a Profile Option you can set the value as 11.5.10.
    And instead of creating product branding progrmatically create product branding and incontextbranding at design time.
    Also, for both of these items we have View Object and View Instance properties...
    For this you take two transient attributes in VO and then as you have grabbed the responsibility name and operating unit...
    then you can set these values on these Transient attributes and then they will be visible on Top region of page.
    Associate these transient Attributes on product branding and incontextbranding items.
    Thanks,
    Gaurav

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • How can i get my items to stay in place and not cross over each other when readjusting the browser s

    How can i get my items to stay in place and not cross over each other when readjusting the browser size.
    Basically on my site when i go from a small screen to a big screen everything doesn't adjust to the screen size. I don't know what im missing
    Here's the link to the page all the pages & they all do it
    http://theatricalworkslive.com/
    Thanks in advance

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem.  Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • How can i set a layout for MIGO screen

    Hello all,
    How can i set a layout for MIGO screen. & make that layout default. Like i want to drag Requistioner column next to quantity in MIgo screen. temporarily I can drag but is there a way to save as layout & save it.

    Hi
    First you arrange however you want and then go to table settings which is there in the right corner of the item details and create a variant and save.
    Find a button with blue yellow and white at the top end above the vertical drag bar when put the cursor it will show you as Configuration.
    After creating the variant tick the check box use as standard setting below the variant
    Hope it helps
    Edited by: Girish  Adaviswamy on Mar 3, 2010 1:27 PM

  • How can i set a song from my music library to a ringtone for my iphone 4s

    how can i set a song from my music library to a ringtone for my iphone 4s?

    The procedure is the following:-
    *right click the song on itunes and click get info.
    *under the option, check in the start time and end time- This is the exactly which part of the song you want to make your ringtone.
    *Click Ok.
    * Again right click in the same song and click the CREATE AAC VERSION
    * Now you can see the same two song. if you have made the short length in step 2, lenght will be different.and this will be in (.m4a) format. and if you dont see on itunes you can search the name on finder. you will find both files.
    * Now you try to change the format (.m4a)  to (.m4r), you just delete a and add r and press enter bottom. and conform it.
    *Now you add this files to the ringtone/tones on itunes which is located on the left side bar of itunes.
    *make sure under the preference of your itunes under the general the tones section is checked in.
    *go to your device on itunes. Under the tones check in sync tones. You can Sync all tones or the particular tones which you want.
    *Now this tone is on your iphone. You can change your ringtone through setting>sound>ringtone and choose the particular one.

  • How can I set the field ICt in component table of the Tasklist as "Input" ?

    Hi experts,
    How can I set the field ICt (BOM's Item Category (POSTP)) in component table of the Tasklist as "Input" Status (The system is in gray now).
    I can define the different Category value by IB01 or IB02,then I can select them at the Tasklist's component table.But sometimes I need batch input such as LSMW,so pls kindly tell me how to setup it,thanks!
    Yinjun

    Hi,
    BOM is created with some component and item category.
    In task list when you go to component, in normal case one selects and copies BOM over there by clicking component selection button.
    Once BOM is copied over there the BOM item category will get copied. As it is BOM item category in Task list it is greyed and it will get copied automatically from BOM.
    You specify item category required by you in IB01 or IB02 and then use that BOM in task list. Go to componenet tab and click component selection button. Once BOM is copied over there the BOM item category will get copied

  • What is line item datas,how can u check line item in Infocube?

    Hi friends,
    what is line item datas,how can u check line item in Infocube?

    hi konda,
    line item data
    i shall give u an example .
    consider a super market bill,
    the bill has 1.customer name        2. bill number   3. date of purchase
    the above line will be header.
    line item data are the items which u purchase.
    item 1 pencil  2 rubber  3. sharpner  4. cryon  5. sketch pens
    above are line item datas.  for a particular set of header data u may have many line item datas.
    reward points if helpful.
    bye.

  • How can I set Array field which reside in a Structure field?

    I use Adobe java XMP toolkit.
    There are a few methods for setting structure and array items.
    setStructField() and appendArrayItem().
    However ducu stated that member of Structure may be array or structure, moreover array items also may be arrays or structures.
    So how can I set Array field in Structure or Structure field in Array???
    Thanks
    Andrey

    OK, it worked first time (without exception) as I tried to set value of EXISTING field.
    The trick is to add array or struct BEFORE setting their values.
    This short example shows how it works:
    XMPSchemaRegistry registry = XMPMetaFactory.getSchemaRegistry();
        registry.registerNamespace(extNS, "pdfaExtension");
        registry.registerNamespace(shemaNS, "pdfaSchema");
        registry.registerNamespace(propertyNS, "pdfaProperty");
        XMPMeta m = XMPMetaFactory.create();
        m.appendArrayItem(extNS, "pdfaExtension:schemas", new PropertyOptions().setArray(true), "", new PropertyOptions().setStruct(true));
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:prefix", "dc");
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:namespaceURI", "http://purl.org/dc/elements/1.1/");
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:schema", "Dublin Core Schema");
        m.appendArrayItem(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property", new PropertyOptions().setArrayOrdered(true), null, new PropertyOptions()
            .setStruct(true));
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:name", "contributor", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:category", "external", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:description",
            "Contributors to the resource (other than the authors).", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[1]/pdfaProperty:valueType", "bag ProperName", null);
        m.appendArrayItem(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property", new PropertyOptions().setArrayOrdered(true), null, new PropertyOptions()
            .setStruct(true));
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:name", "coverage", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:category", "external", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:description", "The extent or scope of the resource.", null);
        m.setProperty(extNS, "pdfaExtension:schemas[1]/pdfaSchema:property[2]/pdfaProperty:valueType", "Text", null);
    Above code creates following XMP:
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.1.1">
      <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
        <rdf:Description rdf:about=""
            xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
            xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
            xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#">
          <pdfaExtension:schemas>
            <rdf:Bag>
              <rdf:li rdf:parseType="Resource">
                <pdfaSchema:prefix>dc</pdfaSchema:prefix>
                <pdfaSchema:namespaceURI>http://purl.org/dc/elements/1.1/</pdfaSchema:namespaceURI>
                <pdfaSchema:schema>Dublin Core Schema</pdfaSchema:schema>
                <pdfaSchema:property>
                  <rdf:Seq>
                    <rdf:li rdf:parseType="Resource">
                      <pdfaProperty:name>contributor</pdfaProperty:name>
                      <pdfaProperty:category>external</pdfaProperty:category>
                      <pdfaProperty:description>Contributors to the resource (other than the authors).</pdfaProperty:description>
                      <pdfaProperty:valueType>bag ProperName</pdfaProperty:valueType>
                    </rdf:li>
                    <rdf:li rdf:parseType="Resource">
                      <pdfaProperty:name>coverage</pdfaProperty:name>
                      <pdfaProperty:category>external</pdfaProperty:category>
                      <pdfaProperty:description>The extent or scope of the resource.</pdfaProperty:description>
                      <pdfaProperty:valueType>Text</pdfaProperty:valueType>
                    </rdf:li>
                  </rdf:Seq>
                </pdfaSchema:property>
              </rdf:li>
            </rdf:Bag>
          </pdfaExtension:schemas>
        </rdf:Description>
      </rdf:RDF>
    </x:xmpmeta>

  • I always want google classic, but sometimes i get google beta or google security (or whatever, can't remember its name) when i don't want it. why does this happen and how can i set google classic as the default?

    google is my default on the home page. But when i ask for google or simply open firefox, i sometimes get google beta or google security (or whatever its name is) instead of google classic. I just want google classic. How can i set it as my default. (I have a desk top computer, use firefox, and this never happens.)

    Why Apple can't undo its mistake?
    Whose mistake? The source of the problem:
    I was required to enter my recovery key. Now, there begins that huge flaw. I've forgotten it (I know it was my responsibility to remember it).
    If you had just taken the simple steps of storing your recovery key as Apple tells you to when you set it up, none of this would've happened.
    As it clearly states in the FAQ on 2-step verification: http://support.apple.com/kb/HT5570
    After you turn it on, there will be no way for anyone to access and manage your account at My Apple ID other than by using your password, verification codes sent your trusted devices, or your Recovery Key. You must be responsible for:
    Remembering your password.
    Keeping your trusted devices physically secure.
    Keeping your Recovery Key in a safe place.
    If you lose access to two of these three items at the same time, you could be locked out of your Apple ID account permanently.
    In addition, with two-step verification turned on, only you can reset your password, manage your trusted devices, or create a new recovery key.
    Apple Support can help you with other aspects of your service, but they will not be able to update or recover these three things on your behalf.
    If you aren't responsible enough to do that, you should not have turned the optional security feature on.
    This is your fault, not Apple's.

  • The default priority setting in Mail is set to "normal"  and is causing emails I send to be sent with red priority flag. How can I set default priority to low = no flag?

    The default priority setting in Mail is set to "normal"  and is causing emails I send to be sent with red priority flag.
    I have found the flags to reduce the priorty level manually to "low Priorty", but how can I set default priority to low = no flag?
    Thank you for advising,

    Try deleting the .plist.
    Quit the application.
    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.mail.plist. Move the .plist to your desktop.
    Open the application and test. If it works okay, delete the plist from the desktop. 
    If the application is the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • How can I delete all items on the "Done" list in Reminer-App? There are meanwhile hundreds of items (shopping, appoitments, ...) and I don't want to spend hours deleting them.

    How can I delete all items on the "Done" list in Reminer-App? There are meanwhile hundreds of items (shopping, appoitments, ...) and I don't want to spend hours deleting them.

    You can't remove the built-in root certificates, but you can remove their trust bits via the Edit button to prevent Firefox from using them as a trusted root certificate.
    Intermediate certificates that Firefox has stored when visiting websites that show as "Software Security Device" should never has trust bits set.
    Note that it is the responsibility of a server to send all required intermediate certificates to make it possible to build a certificate chain that ends with a built-in root certificate.

  • Image: How can I set the inner shadow and inner glow

    Hi
    How can I set the inner shadow and inner glow of a picture in a graphic frame? Any ideas which boss is to use?
    is there anywhere an example?
    Thanks
    Hans

    Hi<br /><br />I try to change the attributes (inner shadow and inner glow) using the following code:<br /><br />int CTest::test(UIDRef uidRefPageItem)<br />{<br />  int                                       iErr = ERR_NO;<br />  int                                       iReturn = -1;<br />  UID                                       uidColor = -1;<br />  IXPAttributeSuite::AttributeList          oAttrList;<br />  IXPAttributeSuite::AttributeTypeAndValue  oAttribute;<br /><br />  do {<br />    // Interface atrribute utils<br />    Utils<IXPAttributeUtils> ipAttributeUtils;<br />    // Set attribute list<br />    {<br />      IXPAttributeSuite::AttributeTypeAndValue  oAttribute(IXPAttributeSuite::kContentInnerShadowApply, kTrue);<br />      oAttrList.push_back(oAttribute);<br />    }<br />    {<br />      IXPAttributeSuite::AttributeTypeAndValue  oAttribute(IXPAttributeSuite::kContentInnerShadowBlendMode, kPMBlendNormal);<br />      oAttrList.push_back(oAttribute);<br />    }<br />    {<br />      IXPAttributeSuite::AttributeTypeAndValue  oAttribute(IXPAttributeSuite::kContentInnerShadowOpacity, 50.0);<br />      oAttrList.push_back(oAttribute);<br />    }<br />    UIDList uidList(uidRefPageItem);<br />    // Kommando ausführen<br />    iReturn = ipAttributeUtils->ApplyAttributesToPageItems(oAttrList, uidList);<br />    if (iReturn != kSuccess) {<br />      iErr = -1;<br />      break;<br />    }<br />  } while (kFalse);<br />  return iErr;<br />}<br /><br />iReturn is success, but this code doesn't change the attributes for an inner shadow.<br /><br />- What could be wrong?<br /><br />- Is it right to use the uid reference from the page item or is it neccessary to use the uid refernece of the image?<br /><br />Thanks for the support.<br /><br />Kind regards<br />Hans

  • HT1373 how can you set up another iTunes account but keep all your purchases and music from a previous account

    how can you set up another iTunes account but keep all your purchases and music from a previous account

    An iTunes account is something you log into online to buy music.
    An iTunes library is a collection of media and other items (including apps) on your computer.  This is what you see when you open iTunes.
    So, do you mean account or library?  You can set up a new iTunes account but all your purchases made in that account will remain in the old account and cannot be moved.  You can set up a new library by starting iTunes and immediately hold down the option key.

Maybe you are looking for

  • How to select html in the inspect window

    Can't figure out how to get inspect window to allow me to see or edit any html inside id's. Div id 'outsidewrapper' includes a bunch of classes and html inside it, but how do I get at nestd html  to make edits? I thought Edge Inspect's inspector woul

  • Why can't I log in to convert to excel?

    Why can't I log in to create an excel spreadsheet from a PDF document

  • What is the equivalent as PRINT ARTIST software?

    Hi Evrybody, I just recently bought a second hand Imac 27" . I used to work previously on PC and using Print Artist software. This software is not available for Mac Plateform unless i install Parallel. Does anyone know an equivalent or even more perf

  • Value based auditing

    Hi, what is the best way to implement value based auditing? Usually you have to use triggers, but can I also do it with data changed captue? Peter

  • Problem using inputFile when a file is not required

    I have a page that has a table component with the following fields Title - inputText (required) File - inputFile (not required) File URL - inputText (not required) The code for the input File is this: <af:inputFile id="OrigReviewAttachmentsFileDoc"