Clearing text items

hi
I have some text items, user enters data into these text item and presses ok button.
After that the data is inserted into the database, but the text items are not cleared.
What should I do to clear text items after an insert?

Ricardinho wrote:
one last question:
During insert, I runinto an error message:
INSERT INTO DRV(DRIVER_NO,DRIVER_NAME,VEHICLE_REGISTER,DRIVER_CERTIFICATE,DRIVER_ABN,ADDRESS,PHONE,*DRIVER_NUMBER*,*VEHICLE*,*VOUCHER*) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10)
ORA-00904: Voucher invalid identifier
Eventhough I delete DRIVER_NUMBER,VEHICLE,VOUCHER items from the database and from the datablock, I still got this error message?
Any idea?ORA-00904 is the error code for invalid identifiers, your SQL clearly showing that the block still has the three columns as database items in your block.
make sure you don't have in any block the items set as database items.
Tony

Similar Messages

  • Clearing Text Item Field

    When navigating back and forth between forms (i.e. using “Back” and “Continue” Buttons) if I’ve entered something in one of the fields, any value that I’ve entered, regardless of whether or not it’s been saved to the database will still be there when I go back into it the second time (Text Item).
    For example, if I enter John Doe into the "Name" field and press "Back" before submitting, when I return to the "Personal Information" Form, "John Doe" will be already populated in the "Name" field.
    How do I insure the field is always blank? Is there a SET_ITEM_PROPERTY I’ve missed in the trigger?

    don't know exactly what you mean with "back" and "continue"-buttons, but if you navigate to some block shown on a different canvas and you want to clear the data there are several options:
    GO_BLOCK('MYBLOCK');
    CLEAR_BLOCK(NO_VALIDATE);clears the whole block without asking for saving.
    GO_BLOCK('MYBLOCK');
    CLEAR_RECORD;clears the current record and
    :BLOCK.ITEM:=NULL;justs clears the value of one item.

  • [CS4][JS] Accessing skewed text items

    The following code snippet successfully finds all the skewed text in a
    document and then removes the skew:
    //Clear the find/change preferences.
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeTextOptions.caseSensitive = false;
    app.findChangeTextOptions.includeFootnotes = false;
    app.findChangeTextOptions.includeHiddenLayers = false;
    app.findChangeTextOptions.includeLockedLayersForFind = false;
    app.findChangeTextOptions.includeLockedStoriesForFind = false;
    app.findChangeTextOptions.includeMasterPages = false;
    app.findChangeTextOptions.wholeWord = false;
    //Search the document for all the skewed text
    app.findTextPreferences.skew = 1;
    // now remove all skews
    app.changeTextPreferences.skew = 0;
    However, I want to access each fragment of skewed text rather than
    globally change them.
    How do I access the collection of skewed text items as the
    findTextPreferences does not seem to possess the required properties.
    TIA
    Doug Neale

    Hi Peter,
    I tried this on a single page document with some text set in italics:
    //Clear the find/change preferences.
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeTextOptions.caseSensitive = false;
    app.findChangeTextOptions.includeFootnotes = false;
    app.findChangeTextOptions.includeHiddenLayers = false;
    app.findChangeTextOptions.includeLockedLayersForFind = false;
    app.findChangeTextOptions.includeLockedStoriesForFind = false;
    app.findChangeTextOptions.includeMasterPages = false;
    app.findChangeTextOptions.wholeWord = false;
    //Search the document for all the skewed text
    app.findTextPreferences.skew = 1;
    var myFound = app.activeDocument.findText();
    if (myFound.length==0) {
    alert("No skewed text was found");
    else {
    // ok we have some skewed text, now loop through each one
    for (i =0; i < myFound.length; i++) {
    var myTextObject = myFound[i];
    var myText = myTextObject.Content;
    and it always finishes up with the alert :-(
    and debug confirmed that myFound.length was zero.
    Should I be doing something else to find italic text?
    Regards,
    Doug Neale

  • Clear/Open Item Symbol Green Check Mark

    SAP Gurus,
    I am running report FBL3N, for a clearing account, under clear/open item symbols instead of seeing a red dot or green dot, i see a check a mark. Does anyone knows what this green check mark means, and how can I clear the items?
    Your help will be greatly appreciated

    Venkat,
    Right now client has the accounts set-up as Line Item Display ( ALL OF TEH G/L ACCOUNTS), if I check open line item, when I save I get an error, saying there are errors. When I pull the long text to see the message of the error, it tells me,the message below. It apepars I have to create new accounts and then transfer the items to the new account is that true? or is there another way to fix this. I thought that by just checking the open item management option was sufficient.
    You cannot change the open item management setting; (see long text)
    Message no. FH087
    Diagnosis
    This account does not have a balance of zero.
    System Response
    You cannot switch the open item management specification on or off with this transaction.
    *Procedure*If you want to switch this function on retroactively for a certain account, you should create a new account with the correct setting and use this to make a transfer posting of existing items.
    If you want to switch off the open item management function retroactively for an account, you must first clear all the postings currently on this account. You cannot make any changes to the account management method until this is done.

  • Automatic GL account determination while creating a PO as text item

    Hello Experts,
    If we create Purchase order as a text item, means we didnt give any material details we will give the Material group only.
    Then the system will ask for the GL account details also.
    Is there any way to default a particular GL account to a particular Material group while creating a Purchase Order as text item.
    Please sugeest the possible solutions.
    Many Thanks in advance,
    Satya

    Hi
    Go to OBYC
    BSX - select valuation modifier, valuation class-----Give GL acc no. - Inventory Raw -m aterial A/C No
    WRX - select valuation modifier, valuation class - Give GL acc no.---GRIR clearing A/C No
    GBB - select general modification, valuation modifier, valuation class - Give GL acc no. - -Salaries etc. A/C No
    FS00 - select the check box - Post automatically.
    FS00 - select post with tax
    Fs00 - sort key - 014
    FS00- Field status group G0045.---GRIR
    FS00- Field status group - G003 - material consumption
    FS00- field status group - G006

  • Report Builder SQL Queries - Convert CN to clear text

    I am trying to customize a query in Report Builder to message values as they are delivered, and running into value expression errors.
    My query returns data from the AD Computer Object "managedBy" field. The problem is that this field returns data in the format of:
    CN=Security Group Name,OU=blah,OU=blah,DC=stuff,DC=com etc
    I am trying to get it to return just the "Security Group" value which is much more useful. I found this great article which almost works for me: https://social.technet.microsoft.com/forums/systemcenter/en-US/6610d238-72f2-4e75-a0cc-e1383dd8e94b/ad-system-discovery-convert-cn-to-clear-text
    However, once I try to save the report in Report Builder I get:
    System.Web.Services.Protocols.SoapException: The Value expression for the text box ‘managedBy0’ refers to the field ‘managedBy0’.  Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified
    dataset scope. Letters in the names of fields must use the correct case.
    This is the original SQL query:
    select  all SMS_R_System.Name0,SMS_R_System.managedBy0,SMS_R_System.description0,SMS_G_System_OPERATING_SYSTEM.Caption00,SMS_R_System.Resource_Domain_OR_Workgr0,SMS_R_System.whenCreated0,SMS_R_System.Last_Logon_Timestamp0 from vSMS_R_System AS SMS_R_System
    INNER JOIN Operating_System_DATA AS SMS_G_System_OPERATING_SYSTEM ON SMS_G_System_OPERATING_SYSTEM.MachineID = SMS_R_System.ItemKey  INNER JOIN _RES_COLL_CAS000A9 AS SMS_CM_RES_COLL_CAS000A9 ON SMS_CM_RES_COLL_CAS000A9.MachineID = SMS_R_System.ItemKey
    My edited query:
    select  all SMS_R_System.Name0,REPLACE(SUBSTRING(SMS_R_System.managedBy0,4,CHARINDEX(',OU',SMS_R_System.managedBy0,3)-4),'\,',','),SMS_R_System.description0,SMS_G_System_OPERATING_SYSTEM.Caption00,SMS_R_System.Resource_Domain_OR_Workgr0,SMS_R_System.whenCreated0,SMS_R_System.Last_Logon_Timestamp0
    from vSMS_R_System AS SMS_R_System INNER JOIN Operating_System_DATA AS SMS_G_System_OPERATING_SYSTEM ON SMS_G_System_OPERATING_SYSTEM.MachineID = SMS_R_System.ItemKey  INNER JOIN _RES_COLL_CAS000A9 AS SMS_CM_RES_COLL_CAS000A9 ON SMS_CM_RES_COLL_CAS000A9.MachineID
    = SMS_R_System.ItemKey
    Thoughts?

    Hey,
    Since you manipulate the original value of
    ManagedBy0 in your SELECT, the column name will change to
    (No column name). I did a test on my side and look what I get.
    Error : "The Value expression for the text box ‘managedBy0’ refers to the field ‘managedBy0’."
    He search for a variable
    ManagedBy0 in your query but don't find any because there's no name assigned.
    Try to run this query. Add
    AS ManagedBy0 after your REPLACE. 
    select all
    SMS_R_System.Name0,
    REPLACE(SUBSTRING(SMS_R_System.managedBy0,4,CHARINDEX(',OU',SMS_R_System.managedBy0,3)-4),'\,',',') AS ManagedBy0,
    SMS_R_System.description0,
    SMS_G_System_OPERATING_SYSTEM.Caption00,
    SMS_R_System.Resource_Domain_OR_Workgr0,
    SMS_R_System.whenCreated0,
    SMS_R_System.Last_Logon_Timestamp0 from vSMS_R_System AS SMS_R_System INNER JOIN Operating_System_DATA AS SMS_G_System_OPERATING_SYSTEM ON SMS_G_System_OPERATING_SYSTEM.MachineID = SMS_R_System.ItemKey INNER JOIN _RES_COLL_CAS000A9 AS SMS_CM_RES_COLL_CAS000A9 ON SMS_CM_RES_COLL_CAS000A9.MachineID = SMS_R_System.ItemKey
    Let me know.
    Nick Pilon | Blog : System Center Dudes

  • How to keep values in text items.

    Hi,
    I have created a tabular form with report.out of this form Two items are converted to LOV'S(TEAM_LOV,TYPE_LOV) i.e TEAM_LOV for P4_TEAM item and TYPE_LOV for P4_TYPE item.
    TEAM_LOV := select team d, team_id r from teams;
    TYPE_LOV := select type d , type_id r from types where team_id=:P4_TEAM;
    1. For P4_TEAM item is select list with redirect .
    2. For P4_TYPE item is select list.
    Problem:=
    When i create a new record and enter new values in the text items above the P4_TEAM item and then selects the list of values from P4_TEAM then the values from the above text items gets clears . How to prevent the clearing the item values.
    If i use select list with submit. then i have validation on two items so i gives validation errors.
    Help !
    Thanks,
    Ramesh

    Hi Ramesh,
    I had the same problems and solved it with AJAX. then only the second list is updated and no submit or redirect is needed.
    Otherwise you could set a condition for your validation, i.e. only if item is not null.
    chrissy

  • Text item with a blank space

    I am trying to save a blank space in a text item but everytime i do, the item is getting trimmed.
    if i put in " " then it trims to null.
    If i put in "P " then it rtrims to "P"
    What am i doing wrong?

    I dont think i have been clear on what we are trying to achieve. They will not always need a blank space but could need one if they choose to do so.
    The form concatenates a set of values. So we have a set of information that is exported by the form.
    i.e.
    ONE
    TWO
    THREE
    FOUR.
    on button press turns into ONETWOTHREEFOUR
    they then have a custom seperator text item to specify what seperator is used to seperate the values. So this is where i want the user to be able to specify anything they want, including a blank space or anything else they require like comma etc so if they entered ", "
    on button press turns into ONE, TWO, THREE, FOUR
    at present it trims it turning it into ONE,TWO,THREE,FOUR
    Hope this makes sense as to why i want the blank space.
    I can add it as a list item and concatenate it on save but this this is a little OTT for what is a simple task

  • What is the Table name & Field Name for Clearing text field in F-53 Transac

    Hi,
    I need prepare a functional specification for Clearing text field in Check Register.I am not able to find the Table name and Field Name for Clearing text field in F 53 transaction code.Kindly provide me the Table and filed name.so that i can proceed.Kindly help me.
    I will assign points.
    Thanks
    Sunitha

    Hi
    From the payment document you have to link to the clearing document (Number BSEG-AUGBL, same Fiscal year and Company Code) in the clearing document the text entered in the transaction can be found on item text (BSEG-TEXT).
    RF05A is a Structure name
    Ranga
    Edited by: Ranga Swamy on Dec 4, 2008 7:55 PM

  • How do you write UNDO for a text item?? examples? or a REDO??

    How do you write UNDO for a text item?? examples? or a REDO??
    I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
    Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
    How do you write UNDO for a text item?? examples? or a REDO??
    I have Oracle Forms 6i...
    Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
    Now I want to UNDO the typing and get back to the previous text.
    I'd use the initial value that was populate right? How do I access that if that is correct?
    Thanks, Bill

    You can use;
    <ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
    Or you will have to write a pre-text-item trigger;
    PRE-TEXT-ITEM:
    :CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
    MENU (PL/SQL):
    :<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
    You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again.

  • What does the "text item" mean in SD?

    what does the "text item" mean in SD?

    Is that Item Text?
    Please be clear in your questions.
    As this is your first post you should have a look at the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
    Also interview questions are not allowed here.
    Regards
    Karthik D

  • How to delete text item in delivery

    SAP Expert,
    I am facing one problem in deleting text item from the delivery. In one case our store person have inserted taxt item by mistake in delivery. In the delivery there are two schedule lines one is of Tan and another is of tatx (which is by mistake inserted by him) he prepaired bill for the delivery and System split the delivery in two invoices, later on he cancelled the invoice of Text item Which value is 0. But now the delivery is showing pending in VF04 though we have invoice the 1st schedile line. After this I tried to delete the text itm by going to vl02n but system is not alowing me to delete the schedule line. error is document can not deleted. where as system is also not allowing thtough t-code vl09n after cancelling the invoice.
    I need experts help to solve this problem. I wan to cleare the delivery from t-code VF04.
    nikhil

    Dear Thanks doe the prompt reply.
    here the delivery is only one and system have created two invoices. I have cancell the invoice of 0 value by using t-code VF11, after this I tried for vl09 to reverse the goods movement but system is not allowing me becouse for the same delivery we have created two invoices and one is cancell.
    so dear friend tell me is it possible for me to reverse the one schedule line from the delivery by using vl09n.
    nikhil

  • How to enter the data into data block text item which has an LOV associated

    Hi,
    I have a data block, one of the data block text item has an LOV assigned. when I populate this text item using the LOV and do "execute_query", it is taking the value in the text item and adding it to the search criteria, but when I enter a value manually in that text item and do "execute_query" it is showing me an alert(which I created) "Please enter a value".
    My question is, why is not taking the value that I enter manually? Looks like before executing the query, this field is getting empty
    How to avoid this problem and make sure that the value entered in the text item is added in the where clause of the query?
    Any advice?
    Thanks in advance
    R.G

    Problem solved!
    Before doing execute-query, all the text items are being cleared,so I used a global variable to store that value
    Thanks anyway
    R.G

  • Cheking all text items for null

    hi all
    we always check a text item in the trigger key-next-item as follows
    if :idumitem is null then
    message
    end if
    Now Suppose I am having 100 text items in my form
    Can I check these items for null without writing code in each item's trigger
    is there any procedure like clear_form ( which clears all the text items) or can v see the code of fucntion clear_form..or can v make some procedure which cheks each text item
    any help will b appriciated.....

    Also learn which triggers to use. You say you are using a KEY-NEXT-ITEM trigger. As far as I know that trigger only fires when you navigate to the next item with the keyboard.
    This leaves many situations unchecked. It probably won't fire if you leave the item with the mouse and it probably won't fire either if you press Commit-Form while still in the item.
    It looks like you are trying to do some sort of validation, which should be in WHEN-VALIDATE-ITEM (or WHEN-VALIDATE-RECORD to check the entire record at once).
    Also, if you're just checking for Null values, wouldn't it be easier to just set the Required property to Yes and have Forms handle it for you?

  • Clear the items

    Hi,
    for Oracle form we usually clear all items within a block. Is there a similar command for doing the same by clearing all items of the current jsf page?
    Thanks & Best Regards

    <af:commandButton text="reset"
    binding="#{pageFlowScope.managedbean_GeneralLedger.cb17}"
    id="cb17"
    actionListener="#{managedbean_GeneralLedger.cb17_actionListener}" />
    public void cb17_actionListener(ActionEvent actionEvent) {
    // Add event code here...
    t5.resetStampState();
    AdfFacesContext.getCurrentInstance().addPartialTarget(t5);
    did u try with that.
    clear //see this.
    Edited by: Erp on Oct 7, 2011 3:30 AM

Maybe you are looking for

  • Print from iPhone 4 to non-AirPrint printer?

    Is there any way to print from an iPhone 4 to a non-AirPrint compatible printer via Airport Express without buying a new printer?

  • App says it downloaded, but doesn't show up

    I went to the App Store and downloaded an app, and it showed it downloading in the App Store, but it won't display on the home screen. If I hit the open button in the App Store, it does nothing. In the usage menu, I can find its icon, but with no nam

  • PPOMW - changes in production not allowed

    Hi, We would like to assign a cic-profil to a user in transaction PPOMW in production environment. After saving the changes the error messages u201Cmandant 100 changes not allowedu201D occurs. Our consultants told us, that we have to change to status

  • Business scenarion in PM Module

    hello, Can anybody plz tell me the business scenarion in detail (including domain & SAP) for pm module. Thanks in advance.

  • Ship to party should be editable for export sales org only

    Hi,       i am copying quatation to order and that time ship to party is coming non editable. i want to make this field editable  specific for one sales organisation only so pls help me in this. Edited by: Monty garg on May 19, 2011 6:37 AM