Display form view title dynamically..

Hi Experts,
I have a requirement could u plz give me some inputs..
i am fetching account details based on account name. it is displaying both business partner and contact person details.
when i select CP on the result then CP details is displayed in the top of form view along with contact person number on the top of the title like Identify Account (ID: 20000907). i want to change that contact person no into there corresponding BP number dynamically..
plz refer the below image.
thanks & regards,
Srinivas

Hi Fabian Mayerhofer,
thanks a lot i full fill my requirement..
this is the code i wrote in IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION of view BuPaMainVS
in component CRMCMP_BPIDENT.
CONSTANTS:lc_bp_role1 TYPE bu_partnerrole VALUE 'BUP001'.
   DATA lv_bp_number      TYPE bu_partner.
   DATA: lr_cucobupa    TYPE REF TO cl_crmcmp_b_cucobupa_impl.
   DATA: lv_bp_role       TYPE bu_partnerrole,
         lv_bp_number2        TYPE bu_partner,
        lv_customer       TYPE string,
        lv_bp_partner TYPE bu_partner.
   TYPES : BEGIN OF ty_but100,
            partner TYPE but100-partner,
            rltyp TYPE but100-rltyp,
          END OF ty_but100.
   TYPES : BEGIN OF ty_but050,
           partner1 TYPE but050-partner1,
           partner2 TYPE but050-partner2,
           END OF ty_but050.
   DATA : lt_but100 TYPE STANDARD TABLE OF ty_but100,
          lt_but050 TYPE STANDARD TABLE OF ty_but050,
          ls_but100 TYPE ty_but100,
          ls_but050 TYPE ty_but050.
   TRY .
       lr_cucobupa ?= get_custom_controller( if_iccmp_global_controller_con=>cucobp ).
     CATCH cx_sy_move_cast_error.
       RETURN.
   ENDTRY.
   description = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_IC_APPL/IDENTIFY_CUSTOMER' ).
   IF lr_cucobupa->is_bp_search_done( ) EQ abap_true.
     lv_bp_number = lr_cucobupa->typed_context->customers->get_s_struct( attribute_path = 'STRUCT.BP_NUMBER' component = 'BP_NUMBER') .
ENDIF.
     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         input  = lv_bp_number
       IMPORTING
         output = lv_bp_number.
     SELECT partner rltyp FROM but100 INTO TABLE lt_but100 WHERE partner = lv_bp_number and rltyp = lc_bp_role1.
*    READ TABLE lt_but100 INTO ls_but100 WITH KEY rltyp = lc_bp_role1 BINARY SEARCH.
     IF sy-subrc = 0.
       SELECT partner1 partner2 FROM but050 INTO TABLE lt_but050 WHERE partner2 = lv_bp_number.
       IF sy-subrc = 0.
         READ TABLE lt_but050 INTO ls_but050 INDEX 1.
         IF sy-subrc = 0.
           lv_bp_partner = ls_but050-partner1.
           IF lv_bp_partner IS NOT INITIAL.
             CONCATENATE lv_bp_partner ')' INTO lv_bp_partner.
             CONCATENATE description '(ID:' lv_bp_partner INTO description SEPARATED BY space.
           ENDIF.
         ENDIF.
       ENDIF.
ELSE.
       CONCATENATE lv_bp_number ')' INTO lv_bp_number.
       CONCATENATE description '(ID:' lv_bp_number INTO description SEPARATED BY space.
endif.
thanks & Regards,
Srinivas

Similar Messages

  • How to hide a form view field dynamically based on condition?

    Actually I have two dropdowns. First dropdown has two entries( Yes and No). If I select YES in the first dropdown then second dropdown will get hide as well as if I select NO in first dropdown then the second dropdown will be show as mandatory(*) and populate with some entries.
    Kindly help me out with the code.
    Regards
    Munna.

    Hi Munna,
    You can control the dynamic field hiding by using the form iterator class.
    Please follow the below step to hide the field,
    First create custom class with interface IF_CHTMLB_FORM_ITERATOR, then add the code in RENDER_CELL_START and constructor methods.
    You need to add the below code in your .htm page
    lr_form_iterator type ref to "new class name.
    create object lr_form_iterator
      exporting iv_context_node = BTCUSTOMERH iv_opport_h = BTOPPORTH.( these are context nodes you need to pass which are having your fields, so that you can access the fields inside the render_cell_start method)
      cl_chtmlb_config=>set_iterator( lr_form_iterator ).
    You need to write the code in Render_cell_start method of the new class. You need to access the context nodes to the new class and then use them to get the field1 value. If the field1 value is YES you can set empty instance to the EV_REPLACEMENT_BEE for the field2.
    lv_current = gv_context_node->collection_wrapper->get_current( ). " you can set the gv_context_node in constructure method.
        IF lv_current IS BOUND.
          lv_current->get_property_as_value(
                                  EXPORTING
                                    iv_attr_name = 'Field1'
                                  IMPORTING
                                      ev_result = lv_trailclass ).
        ENDIF.
    data: lv_bee TYPE REF TO cl_bsp_bee_table.
    if field1 = YES.
    Case iv_bidnding_string
    when 'Field2'.
    create object lv_bee.
    EV_REPLACEMENT_BEE = lv_bee.
    endcase.
    You can use the below link for more details
    Change Property of the Label and Input field in UI for Form View - Part 2
    For the second issue, you can achieve it by modifying the get p and Get V method of the second attribute.
    let me know if you need more clarification on this.
    Best Regards,
    kasi.

  • How to display a view which contain interactive form in an external window

    Anyone know how to display a view which contain interactive form in an external window?
    I managed to display the view in an internal window with the following code:
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PdfReportWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow( windowInfo, true);
    For external window, I tried this method : wdComponentAPI.getWindowManager().createExternalWindow(String URL, String title, boolean modal) but there are no parameter for view name?
    Maybe this is not the correct way, really appreaciate if anyone can help.

    Hi,
                U need to the following
               1.Create another window
               2.Create a view in it tat contains Interacive form element.
               3. call this window dynamically thru the first window by creating a context element of IWDWindow  type
    The code may help:
      IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("SearchEmpwind");
          IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
          window.setWindowPosition(WDWindowPos.CENTER);
          window.setWindowSize(400, 250);
          window.open();
          wdContext.currentContextElement().setEmpSearchWind(window);
    Regards
    Ishita

  • Link Title field to custom display form in SharePoint 2013 blog site

    Hi,
    I have blog site in sharepoint 2013.
    I want to display the item in read only view of the selected item.So I have created one custom display form.
    Now I want to link this display form with the Title Field.
    So that when user click on the title field, the display form should show to view only the item and if the user is approver, can approve also.
    Please help me to achieve this.
    waiting for your quick response.
    Thank you!

    Hi  ,
    According to your description, my understanding is that you want to display custom display form when users click on the title field.
    For achieving your demand, you need to implement an ihttpmodule and intercept the request. For more information, you can refer to the code as below:
    private void context_BeginRequest(object sender, EventArgs e)
    HttpApplication application = sender as HttpApplication;
    if (application != null && application.Context != null && application.Request != null)
    HttpRequest request = application.Request;
    HttpResponse response = application.Response;
    if (request.Url.ToString().ToLower().Contains(http://yoursite/libraryname))
    response.Redirect(newlocationurl);
    Reference:
    http://sharepointgotchas.wordpress.com/tag/httpmodule/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to dynamically hide the Field Label in the overview page's form view?

    Hi Experts,
    How to dynamically hide, for certain condition, the Field Label in the overview page's form view?
    Please reply me.
    Regards,
    Vishal

    Hi Vishal,
    It is not possible to dynamically hide/display fields if the UI is build using configurations.
    The work around is to have multiple configurations, and based on the condition, load the
    corresponding configuration at runtime.
    The other approach is to code the complete htm view(htm coding) without using the configuration provided by the framework.
    Regards,
    Leon

  • Displaying  Window Title Dynamically

    Hi Gurus,
    I have to display window title which is coming from T100 table. Based on the entered message number from t100 table i need to display the respective messagetext from  respective messageno from T100 table.Please let me know how to display window title dynamically from table T100.
    Points will be rewarded
    Thanks,
    Kishor

    Rather than reading from T001, you can just use the "message" verb to get the content and variable substitution done for you... so this may help:
    report zlocal_jc_sdn_titlebar1.
    data:
      g_title                 type sy-ucomm.
    parameter:
      p_gday                  type sy-datum.
    * Events:
    initialization.
      perform initialization.
    at selection-screen output.
      set titlebar 'MY_TITLE' with g_title. "MY_TITLE just contains &
    *&      Form  initialization
    form initialization.
      message e398(00) with 'Hello' sy-uname 'today is' sy-datum
        into g_title.
    endform.                    "initialization
    Jonathan

  • Display a text conditionally in a form view

    Hi Experts,
        I have a BAPI being used as a data service in my model.
    It returns a table.
    If that table is empty, i need to diplay a plain text message "Success".
    If the table has atleast one entry, I should display a text message "Not Success".
    How can this be achieved in Visual Composer?
    Regards,
    Ravi Kanth Talagana

    Drag a line from the output port of the bapi and select "Aggregate Data". 
    Select the new sigma operator that was added to the storyboard and in the configure element task panel select the field that you want to count and in the sigma field select 'count'.
    Drag a line from the out port of the Sigma operator and select form view.
    In the "Select Display Fields" box - select the field that the was counted by the sigma.
    Add a plain text control to the form. Select the control properties and in the Label field at the Display tab write the formula - "IF((@ - select the field from the form>0),'Succeess','Not Success')"
    Good-Luck,
    Dafna

  • Create Separate Views for New,Edit and Display forms in Infopath

    Hi,
    I need to create a separate views for New, Edit and Display forms in infopath.
    For ex : I need a Submit Button on Display form and not in New/Edit forms.
    I tried, but i amnot able to get the changes.
    Regards, Shreyas R S

    I just validated my approach in a 2013 farm, this is precisely how it's done!
    Step 1) List > Display Form
    Step 2) Change the View within the Web Part Properties. In your screenshot it looks like you simply went to View Item on the single item, which is not the direction I gave =P.
    **Assuming you've already created the multiple views within InfoPath, this allows you to set them up as distinct defaults for New, Edit and Display, let's make that clear. If you are not even to the point of having separate views, that is just in InfoPath,
    Page Design tab, far left, New View button

  • Display forms title as a part of IE window title

    Hi,
    Does anyone know how to display forms title as a part of IE window title in Webforms 10g?
    For example: if I am on the Order Entry form, the IE title would be Order Entry - Microsoft Internet Explorer.
    Thanks all,
    L

    Thanks Terrible :-)
    Yes, I did change the pageTitle in the formsweb.cfg to have the Application name. And you are right that is the one time only...
    I would like to somehow passing a forms title as a variable that is appended to the Application title at runtime.
    Gerd, you mention about the java applet which can interact back to the IE-engine. Have you done one before? I am new to this concept.
    Thanks all for your help :-)
    L

  • Interactive form With a dynamic table inside that

    Hi Experts,
                   i have an  Adobe interactive form With a dynamic table inside that. Add/ Delete button is there inside the form to add and delete rows from the table. This is working fine when iam viewing the form in the preview of adobe designer. when i deploy and run the application, the dynamic table is not working, internally the rable rows are creating, but the rows are not displaying in the form.. iam getting messages(which i set) when the row is created or deleted, but its not updating on the form ..
    iam using wdj
    please suggest asap.
    Regards
    Sarath

    Hi Sarath,
    Seems to be an issue with ACF. Please intall the ACF from the below link:
    https://sapmats-de.sap-ag.de/download/download.cgi?id=F9RUZ3Q7TERUBSMHSXWT3UMEM59IJYIPA931VQD32A1UNAKZ6B
    And also refer to the SAP note no. 1104060 and do the needful configuration.
    Regards,
    Arafat

  • Displaying struts html tags dynamically

    hello..
    i am displaying the table row dynamically, row contain html elements on clicking the addRowbuutton. with in each row i want to display <html:hidden > element.but
    when i am wrote like ..
    form.innerHTMl="<html:hidden property='channels class' value='"+grouop+"'/>"+group;
    here group is javascript variable
    it throwing some javascriipt .
    please help ..
    thanking u,

    JSP is entirely serverside and Javascript is entirely clientside. Those two languages have nothing, nothing to do with each other.
    The html: taglib can only be parsed serverside. It prints HTML to the output (do a view source in the webpage, you won't see any JSP tags). Javascript can only intercept on the HTML of the output (that source which you've viewed), not on the JSP code. So, passing JSP tags through element.innerHTML is ultimately pointless. Pass plain vanilla HTML through it, not JSP tags.

  • What is tthe Best practice for Variant List, Add, Edit and Display Forms?

    Requirement:
    I have single list.  The list has a large number of columns and a large number of items (lets say 20,000).
    I want to show users a different view of the list based on clicking on a different left-hand navigation option.
    Lets say I have four types of users:  Sales, Manufacturing, Shipping and Finance. I would like to have four options in the left-hand navigation.
    All of them would be pointing at the same list, BUT, I want each of them to have a customer list form.  The only difference between the custom list forms would be:
    Each would have its own set of views, and hence its own default view.
    Each would have its own New, Edit and Display Forms.  The only difference between the forms in one variant list and another would be: The order of the columns and which columns are modifiable.
    I would like to achieve this in SharePoint Designer in such a way that the "users" could still add/modify views and could even modify the forms from the SharePoint Menu.  BTW, I don't want to use InfoPath for obvious reasons.
    What is the best approach to meeting this requirement?  I have at least 20 sites and 70 lists overall that need variant forms made.
    HELP!!
    Savin
    BTW We are using SharePoint 2013 and I selected the wrong forum *sigh*.  But I think its probably the same answer.
    Cheers, Savin Smith

    Hi,
    I understand that you want to have different forms based on different view.
    Per my knowledge, there are no out of box method to achieve it.
    As a workaround, you can add the JavaScript code to the different view page.
    For example, to open different new form based on different view, you can get the windows.location, and then judge the view, then change the onclick event of the "New item" button.
    For more information, you can refer to:
    http://css-tricks.com/snippets/javascript/get-url-and-url-parts-in-javascript/
    http://samsharepoint.wordpress.com/2013/05/01/change-the-default-sharepoint-ok-and-cancel-button/
    Thanks,
     Linda
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • "Display Form" button not visible in UWL preview

    Hi Friends,
    We are implementing Travel module. The standard Workflow WS20000050 has a single level of approval. However, we wanted 2 level approval and so accordingly this was implemened.
    Now we want a 3rd level of decision step to be approved by the traveldesk on recept of tickets.
    Even the pdf form, which contains the travel details, needs to be visible. In the standard task TS20000118, the "Display Form" button is automatically visible in the UWL preview apart from the usual 
    "Approve" and "Reject" buttons.
    However the content that needs to be shown to the traveldesk is different. To achieve this, i copied the standard task TS20000118 and changed only the task description. Rest everything including the parameters and binding remains same.
    But for this task, the "Display Form" button is not visible.
    1. Please advice on the possible reasons why this is happening ?
    2. Is there any setting or any SPRO configuration wherin we need to 
        specify the tasks for whom the button needs to be displayed ?? or
        Is it some portal side configuration ?
    Thanks,
    Shashank

    Hi Vijay,
    Goto:
    Universal Worklist Content Configuration -> Click to Administrate Item Types and View Definitions
    In the table under the "Current Configurations" tab, select the standard travel configuration provided by SAP -> "com.sap.pct.erp.mss.tra".
    Here, search for the code of the task for which everything is working fine; in our case it was TS20000118. Copy this piece of code.
    Now download the currently active XML configuration. In the saved XML file, search for the task code which is not working as expected. Replace this piece of code with the code copied in the above step. Save with a different name.
    Upload this new configuration with HIgh priority.
    Reregister the connector and clear the cache.
    These steps solved my problem. Probably it should work for you too.
    Regards,
    Shashank

  • The size of a form viewer

    Hi, friends,
    For some reasons, I would like to develop an off-line tool say a form viewer using Java Swing. The data will be stored in xml files. The form viewer will display the data as electronic form. A user can edit the form and store the updated form in another xml file. The tool should also allow to compare the data stored in two seperated xml files. The tool should also allow to merge the data in two seperated xml files and store the result in a new xml file.
    Do you have any idea of the size of this application?
    I would like to know if this tool can be sent by flopy diskette.
    Thanks in advance.
    Youbin

    Well, this question is objective... but based on how Java compiles code, it's hard to get applications up to 1.4 MB in size.
    The great thing about java is that it compiles only the classes that get used in your application. By comparision, C++ programs will compile all the files included in your application whether you use all the classes or not. This adds a lot of bulk to C++ programs.
    In general, you applications my reach up to a couple hundred KB if they are very complex. I would assume your xml application my be about 100 KB if it has a lot of classes involved. Plus you can compress the files into one Jar file to make it smaller and easier to distribute.
    Just from experience I would say you final application will be under 100 KB. Just my opinion.
    Also, remember the user of your application needs the Java runtime environment intalled...

  • Problems displaying CR Viewer when using VS2010

    When I try to display a form containing reference to a CR Viewer I get the following error message:
    *An error occurred creating the form. See Exception.InnerException for details.  The error is: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.*
    Other info: Win7 Pro 64 is operating system.  Installed Beta 2 of CR last August and was able to upgrade old CR (Ver 8.5) reports and to display reports albeit by a rather convoluted process.  I created a seperate form for each report, added the viewer, showed the form which then displayed the report.  To display form showing report  the code line = "frm_cr_rpt01.show"
    RECENTLY installed CR13 and this is when the problems started.  I can no longer call up the previously running 'report' forms as I get the same error as above.  I have tried adding the CR viewer directly to the 'calling' form and displaying the report with code line= "me.cr_rpt01.printreport" (similar to the process used in VB6) and get the same error.
    I can open the CRreport.rpt in solution explorer and data and all report formatting displays just fine.
    Suggestions anyone?

    Moved to .NET SDK forum
    Make sure all your references are version 13 now, clean up your app.config file. Search this forum on how to "clean up" your PC if it's the same as the beta PC and then reinstall.
    Make sure you are using the 4.0 frame and not the client version.
    Thank you
    Don

Maybe you are looking for

  • Nokia 808 Pure View Feature Pack 1

    Will Nokia 603 Belle Feature Pack One Increase Processor Speed 1 GHz to 1.3 GHz. Yesterday in nokia conversation say that only 700 and 701 get increase processor speed 1 GHz to 1.3 GHz. Finally what about 603, the Nokia 603 will increase speed, 1 GHz

  • Illustrator coursework...

    Hey all, first time poster. I've taken an extra module at uni in Adobe Illustrator, but I've never really used Illustrator before lol. I'm very familiar with Photoshop and Dreamweaver. I've been given an assignment and was hoping to find a few tutori

  • Output strings from loop into one string

    im trying my best to explain my problem so ber in mind:) hey having a bit of trouble with outputing strings from loop example i typed ab into the textbox the output should be 12 but since it is in a loop it would only output the last string and in th

  • Slide show with "reflections" under the images

    Just tried iWeb to post image pages created in iPhoto. Things went quite well until I used the slide show feature in the finished page on the web. All images appear on a black background (even though I used a white background templare) and have a str

  • How do I Create a LightScribe Label ?

    I found burning a LightScribe label after burning with iTunes directions. It says that iTunes works with Sonic Express Labeler. After burning the CD, a Create LightScribe Label window is supposed to appear. It does not. Why? Help!! HP Pavilion a1220n