Making empty fields invisible

hi,
I am having a no of text views in which data is coming from data base. Now my requirement is if there is no value in text view then it should nt be visible.
plz suggest hw can i proceed.
i can nt bind every UI with attribute and control its visibility independently. because no of UI are very large.

Yes.
Maybe you can use "CL_WD_TEXT_VIEW" in the "WDMODIFYVIEW" method.
for example:
   "1st, you should add all the Text-view UI element into one internal table which has the ID of the UI element.
   data: lo_txt_view  type ref to CL_WD_TEXT_VIEW.
   loop at   lt_all_txt_views  into ls_txt_view.
        lo_txt_view ?= view->get_element(  ls_txt_view-ID  ).
        if  the context attribute value binded to the text_view   is initial.
              lo_txt_view->set_eneable( abap_false ).
       endif.
   endloop.
Best Wishes.

Similar Messages

  • How to resize JDialog after making some fields invisible?

    Hi,
    I have many fields in a JDialog box. And I am making some of them invisible (based on some logic).
    Even though I am using invisible, the dialog size is not resized automatically.
    I can see so much space and it is not good.
    Is there any way so that I can resize this dialog?
    Regards,
    Praveen

    Praveen_Kumar_Jayaram_1985 wrote:
    But I am not using any layout manager. It is free design. Is there any way to achieve my requirement without using layout manager?But this is what layout managers are made for. Why not use the correct tool for the job? Also, please do not cross-post questions in multiple forums. This will frustrate anyone who tries to help you only to find out later that the same answer was given hours ago in a cross-posted thread. For this reason, many volunteers here and at the other sites refuse to help repeat offenders.

  • Conditionally making a field invisible.....

    XMLP Gurus,
    Some of the values in a column has dots(.). Conditionally i have to make it invisible.
    I tried replacing null value for a dot using decode function, but in this case the other column values are shifting themselves up by taking place of null values thus losing sync with other columns.
    After the decode statement i want the null value to remain null in sync with the other columns instead of replacing the null value with a value below it (shifting up)
    Thanks in advance.

    Hi venkat,
    Thanks for the reply.
    Originally the problem persisted with the null values in the column and it is getting shrinked when the statement goes to the second page.
    This template is already created and I need to modify it. There are six different columns in the template and each column has its own for each and END for each (similar grouping for all say G_XYZ).
    Say in the 5th column if the first row in the second page(continuation from first page) is null then it is shiftng itself up losing sync with the other columns.
    To over come this I used decode in the 5th column field. I replaced the null value with a dot. It is working fine now(shrinking problem is nailed) but the users dont like the dot in place of null value.
    I tried to make the dot invisble using:
    <?if:AMOUNT_DUE=''?><xsl:attribute xdofo:ctx="block" name="background-color">white</xsl:attribute><?end if?>
    But it is throwing error: " XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context." .
    It does not like ctx="block" and if I replace block with line or inline, it is working as expected.
    The solution I am looking for now is to avoid shrinking of null values at first place. If not then substitute this null with some value that is invisible (say invisible dot) and avoid shrinking.
    Any help is highly appreciated.
    Thanks.......

  • Making the fields invisible or etc. at the item overview screen

    At the header data of the sales documents, there exist incoterms and payment terms. I want to make those invisible at the item overview screen (under Billing Document tab). I just want those data root from the header data, not from the item data. I don't want to enter data (about payment terms or incoterms) on the item overview screen.

    Thank you for your consideration but can you please explain step by step.
    Also to be more clear; the incoterm datas of the sales document's items come from the customer master data. Person can change or enter data about incoterms although there may exist different incoterm data at the header. That's why I want to hide or make unchangeable the incoterm field at the billing document tab of item data.
    Thanks in advance.

  • Making field invisible on screen shifts rest of the fields Up..

    Hi All,
    I am facing a problem that when i make one of my screen fields invisible the rest of the fields shifts up and fill up the space.
    Can this be avoided...
    please suggest
    thanks in advance,
    kushagra sharma

    Hi,
    Try to make that field with different block and then make them as invisible. it will solve ur problem
    Thanks
    kishore

  • Make fields invisible in SAPLBBP_MON_SC 1200

    Dear SRM-gurus,
    for making fields unvisible in Shopping Cart Detail you can go to SE51 --> SAPLBBP_SC_UI_ITS --> e.g. 100 and set fields whether "Invisible" or in Screen Painter double-click on the specific field and enter "MOR" in the 4th group field.
    This works perfectly for SAPLBBP_SC_UI_ITS.
    Now we'd like make the same restriction of fields in "Monitor Shopping Cart" transaction.
    --> SE51 --> SAPLBBP_MON_SC --> 1200
    Here when I click on Layout and set the field as "Invisible" this works alright for the description of the fields (e.g. Description) BUT for all the fields where values can be entered there is no way to make them invisible in transaction BBP_MON_SC. No matter if I set Invisible and/or the value MOR in 4th group field.
    Do you have any idea how I can also make the dropdown and value fields invisible (not available)?
    Thanks a lot for your help.Points will be given!
    Best regards,
    Henning

    Hi Henning,
    The trick cannot work in SAPLBBP_MON_SC_1200, because in the application there is no handling for the modification group. That is the difference with SAPLBBP_SC_UI_ITS / 0100. We used the trick there to avoid modifications in HTML because HTML has no modification-assistent and ABAP does.
    In your case I would suggest to modify the HTML-template (service BBP_MON_SC, template SAPLBBP_MON_SC 1200 ) to hide the unwanted fields simply by deleting or commenting the unwanted tablerows.
    Regards,
    Hendrik-Jan

  • Item field invisible

    Hi gurus,
                 Could any body give the steps for making an item field invisible in bid invitation cockpitt.
    the transaction i am using is bbp_bid_inv
    i am not able to hit that using badi bbp_ui_control_badi vth method bbp_bid_ui_ctrl vth filter bus2200
    the proposed solution is creating screen varient & transation varient by making that field invisble
    could any body provide me the steps
    i am implementing a zz of the above badi

    hi Rajanya,
            i logged into the shd0 and gave transation code bbp_bid_inv
    In transaction varient tab what i have to give
    i think i have to create transation varient how to do that
    after that is there a need to create the screen varient how to do that
    plz give the proper steps
    thanks in advance
    Edited by: sukruthi raj on Feb 5, 2008 4:11 PM
    Edited by: sukruthi raj on Feb 5, 2008 4:21 PM

  • Database - reports - suppress empty fields

    I have a fairly large database which frequently has a number of empty fields in the records. Is there a way I can suppress the empty fields when I print a report? It might reduce a nearly 60 page report to 30. A significant saving.
    Thanks for any help or ideas.

    Here is an enhanced version.
    --[SCRIPT report visible records]
    Enregistrer en tant que Script: report visible records.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:AppleWorks 6:
    Il vous faudra peut-être créer le dossier AppleWorks 6 et peut-être même le dossier Applications.
    Ouvrir votre base de données,
    rendre visible les fiches à imprimer
    menu Scripts > AppleWorks 6 > report visible records
    Le script crée un document traitement de texte à partir du contenu de ces fiches
    À droite des noms de champs, le script insère un caractère 'deux points' suivi d'un TAB ce qui permet d'aligner aisément le début des données affichées.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script: report visible records.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:AppleWorks 6:
    Maybe you would have to create the folder AppleWorks 6 and even the folder Applications by yourself.
    Open your database
    Make visibles the records to print.
    menu Scripts > AppleWorks 6 > report visible records
    The script creates a new WP document with the contents of these records.
    After the fields name, it inserts a colon and a TAB so it would be easy to align the beginning of data values
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2009/09/20
    --=====
    property myWP : "my report.cwk"
    property doWhat : 1
    1 = skip empty fields
    2 = display fieldName for empty fields
    3 = display fieldName and "unavailable" for empty fields
    property liste : {}
    property nomsChamps : {}
    property nbf : missing value
    --=====
    on run
    my nettoie()
    tell application "AppleWorks 6"
    activate
    if document kind of document 1 is not database document then error "Document 1 is not a database !"
    set myDB to name of document 1
    tell document myDB
    set my nomsChamps to name of fields
    set my liste to index of every record whose visible is true
    end tell -- document 1
    end tell -- AppleWorks
    if my liste is {} then error number -128
    set nbf to count of my nomsChamps
    tell application "AppleWorks 6"
    make new document with properties {document kind:text document, name:myWP}
    set nbr to count of my liste
    repeat with rec from 1 to nbr
    set the clipboard to my readRecord(myDB, rec)
    tell document myWP
    paste
    if rec < nbr then select menu item 12 of menu 4 (* Inserts Page break *)
    end tell -- document
    end repeat
    end tell -- AppleWorks
    my nettoie()
    end run
    --=====
    on nettoie()
    set my liste to {}
    set my nomsChamps to {}
    set nbf to missing value
    end nettoie
    --=====
    on readRecord(d, r)
    tell application "AppleWorks 6" to tell document d
    set l_fiche to {}
    repeat with f from 1 to nbf
    set valF to value of field f of record r
    if doWhat = 1 then
    if valF is not unavailable then copy (item f of my nomsChamps) & " :" & tab & valF & return to end of l_fiche
    else if doWhat = 2 then
    if valF is unavailable then set valF to ""
    copy (item f of my nomsChamps) & " :" & tab & valF & return to end of l_fiche
    else
    copy (item f of my nomsChamps) & " :" & tab & valF & return to end of l_fiche
    end if
    end repeat
    end tell
    return my recolle(l_fiche, return)
    end readRecord
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) lundi 21 septembre 2009 15:32:47

  • Short Dump while making a fields as required in BDT object screens

    Hi,
    I'm making a field as "required" by checking the required button on that field in the BDT screen.
    But am getting a short dump when I'm trying to use that screen.
    It seems like some data is getting converted to bad format due to this (am not fully sure about it.)
    Any idea on this.
    Thanks & Regards,
    Vipul.

    Hi Pinaki,
    The entire functionality is working absolutely perfect if I dont check that field as "Required" .
    I'm not sure if I'm missing some customising or is it a problem with BDT.
    Thanks & Regards,
    Vipul.

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • Contract - problem with attachements (empty field in LOIO_OBJID)

    Hi Guys,
    We are using extended classic scenario of SRM 4.0 (SRM Server 500) and our latest support package is SAPKIBKS12. We have the following problem with contracts.
    Sometimes when an attachment is added to a contract the system does not fill the following fields in tabel BBP_PDATT.
    LOIO_CLASS: Normally filled with BBP_L_DOC
    LOIO_OBJID: Normaly filled with a GUID size datastring
    Whenever this happens and later on the contract is changed and released the system will raise an abort. We tried the following notes but no good result.
    891293,919467,932602,964065. Some other notes that might be possible are 1042826/1085700/1083063 but we also don't have good experience with these ones.
    Can anyone give us advice about two things.
    1) Is there a way to fill the empty fields in BBP_PDATT so that existing contract will work properly again?
    2) Does anyone know why this problem occurs and how to fix it for new contracts?
    Hope to hear from you,
    Arie

    Thankyou for the reply. I have made following changes but still not working. I am creating the inquiry and customer material is not getting populated. Please guide in resolving the issue.
    DATA : W_ENQUIRY_ITEM_INX LIKE BAPISDITMX OCCURS 0 WITH HEADER LINE.
    W_ENQUIRY_ITEM_INX-ITM_NUMBER  = THEAD-ITEMNO.
          W_ENQUIRY_ITEM_INX-UPDATEFLAG  = 'X'.
          W_ENQUIRY_ITEM_INX-CUST_MAT22 = 'X'.
    APPEND W_ENQUIRY_ITEM_INX.
    CALL FUNCTION 'BAPI_INQUIRY_CREATEFROMDATA2'
       EXPORTING
       SALESDOCUMENTIN               =
         INQUIRY_HEADER_IN             =  W_ENQUIRY_THEAD
      IMPORTING
        SALESDOCUMENT                 = W_NUMBER
       TABLES
        RETURN                        = W_RETURN
        INQUIRY_ITEMS_IN              =  W_ENQUIRY_ITEM
        INQUIRY_ITEMS_INX             =  W_ENQUIRY_ITEM_INX
         INQUIRY_PARTNERS              = T_INQUIRY_PARTNERS

  • Making selective fields editable in adobe form [using web dynpro]

    Hi,
    I have displayed an adobe form using web dynpro application. But I have to make certain fields (not all fields) on this adobe form editable. I dont want to make this adobe form interactive because I dont have to save any data in database. The data entered in the editable fields will be saved as a pdf.
    What I did so far:
    1) The fields which I want as editable,  I have given there type as "User entered/ optional" & for rest of the fields I have given type as "Read only".
    2) In web dynpro, I have enabled the adobe
    3) This is not making the fields editable.
    4) If I write the following code in my webdynpro method WDDOMODIFYVIEW, then my data coming from adobe is not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    Any inputs regarding this??
    Thanks & Regards.

    Hi,
    Like I had mentioned using the following code in my webdynpro method WDDOMODIFYVIEW, my data coming from adobe form was not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    So I kept this code & I also kept the Interface type "ABAP Dictionary based".
    Additionally in Webdynpro, I used adobe form generated FM to get the adobe content & passed it to the "content" parameter of my adobe component in webdynpro.
    Thanks & Regards.

  • Display empty fields in between the output, urgent

    hi
    i need to display some empty fields in the output txt file, in between teh normal database fields i am displaying
    for eg if first field is f1 (1-10)
    second is f2 (11-35)
    third field is empty i need todisplay as (12-45)
    and again f4 as (13-60) so on
    such there are multiple fields in between dattabase field which just needs to be displayed as empty only and all fields should be seperated by space as showni above eg
    regards
    arora

    closed got solution

  • URGENT HELP: When some users submit, application carries empty fields from html components to plsql code

    Hi APEX users and developer, especially forum's active users, please get me rid of this problem because it is really very bad situation.
    I have a real trouble with application. It behaves unusual. Application is used by 60 users but only 3 of them have these problem and they can not use the application anymore.
    Application is
    http://apex.oracle.com/pls/apex/f?p=70547
    After fields are filled and some rows checked from tabular form in page, user submits the page. Process called newReyestr calls plsql procedure from package with inputs from page. But only same 3 users get empty fields in plsql code. I see it just after when the first line stepped in procedure.
    So, "what is the problem?"

    Hi NoGot,
    you know, I have not written big quote. The code was big. But it has no any meaning. Because problem is in first line. No need to understand it.
    There is no any difference between those users. They also tried it from different browser and even computers.
    BTW: I am not russian.

  • Validation of multiple empty fields in dynamic form

    Hi,
    I have created multiple fields dynamic form consisting of both mandatory & optional fields. Since the mandatory fields are validated by default, I want to validate the optional fields while submitting as PDF document dynamically and prompt me to continue or discard the submission. Also validating each & every field is not valid option as my form contains more than 200 fields.
    I have tried with the below script which I successfully used to lock the form but in validating the empty fields I have a problem. Although I populate all the fields in the form, still I receive the validation message. Can anybody help me out on this issue?
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    if (oFields.item(nNodeCount).isNull = 1 && oFields.item(nNodeCount).length < 0){
    xfa.host.messageBox("All the form fields are not completed, Do you want to continue","Field Validation", 2, 2);
    break
    Thanks,
    Jay

    I discovered how to accomplish this using the Manage Dynamic Form Wizard and changed the "Display as" field property from "Text field" to "Text" for the fields I wanted read only.
    Now I have another problem, the properties of one of the fields (for comments) was "Text area" when I changed it to "Text" I now have this extremely long line that streches the width of the browser.
    Is there a way to get this line to wrap? This is he line I'm working with...
    <td class="form_results"><?php echo KT_escapeAttribute($row_rssubmissions['sub_comments']); ?></td>
    Dennis
    I found the answer to this problem, Günter had answered it in another post.
    http://forums.adobe.com/message/1875032#1875032
    Dennis

Maybe you are looking for