MVC BSP  hrrcf:formLayoutInputField

Hi guys
Can you help with the following trivial question:
I have a MVC bsp which holds a few inputfields.
How can I verify that the data entered by the user is valid without prsssing any
button, only when he leaves one inputfield and jumps to the second one?
Something like onChange event?
thank you
yuval

Hi
This is the code I have :
  <hrrcf:formLayoutInputField id        = "jobTitle"
                                onValueHelp ="onTitleInput"
                                label     = "<%= controller->job_title_label %>"
                                size      = "80"
                                maxLength = "80"
                                value     = "<%= controller->current_job_info-jobtitle %>" />
As far as I understand this should be an Inputfield within a form.
My question: what javascript can be written to alert the user when the entry he has
made is wrong (numbers instead of characters, for example).
Thank you
yuval

Similar Messages

  • MVC BSP  customizing hrrcf:formLayoutInputField

    Hi
    I am looking for a way to add an onBlur() event handler to the standard tag :
    hrrcf:formLayoutInputField
    so that once the user switches from one inputfield to another I will be able
    to verify his input and possibly alert him in case on an input error.
    Thank you for your help
    yuval

    Hi Tatvagna
    Congratulations! Problem solved using javascript.
    Let me explain so that others may benefit.
    In e-recruiting each page contains severals BSP.
    1) The top bsp is called main_m. This bsp holds several forms (I think that each 
        sub-bsp is a form).
    2) Now, to verify the text box input the user submits without relying on any 
        button,  we have to use javascript's onBlur method.
    3) Since main_m acts as a container for all sub-bsp's, we can put our little
        javascript there.Our concern is to react to inputfields only and not just any
        form element like 'select' or 'button'.
    4)  So here  is the code:
          <script type="text/javascript">
            var x = document.getElementsByTagName( 'form' );
           //get each sub-form or sub-bsp
            for(var j=0; j< x.length; j++)
            var form = x[ j ];
            //check each element in the form
            for (var i=0;i<form.length;i++)
                 if((form.elements<i>.tagName=='INPUT') &&
                    (form.elements<i>.type=='text')     &&
                    (form.elements<i>.ct=='InputField'))
                // call your verification method
                 form.elements<i>.onblur = SayHello;
                       FUNCTIONS
            function SayHello()
                alert('Hello');
        </script>
    regards
    yuval

  • MVC-BSP as a logical link

    Hi All,
    I have a MVC-BSP and Iu2019m looking for the information how can I link this BSP (like a logical link) in the crm2007.
    Can anybody help me?
    Thanks & Regards

    Hi,
    According to ur requirement u need to create a transaction launcher for ur BSP-MVC . Follow the bellow steps.
    1. Define URL parameters for transaction launcher for ur BSP application and pass ur main controller name and main page name like
    Application - MAIN.Do
    Page         - MAIN.HTM
    2. Create a transaction launcher of URL type and pass URL parameter id over there.
    3. After follow all steps for transaction launcher like logical link, assign logical link id to direct link group  and assign to navigation bar profile.
    4. In ur business role check the checkbox for this logical link from visible direct link.
    Now test ur transaction launcher. It will work.
    Regards
    Gaurav

  • Model Binding doesn't work (MVC - BSP)

    Hi
    My application uses Business Server Pages with MVC.
    My Model class has several Attributes and I want to use the Model Binding Concept for automatic data transfer between model an view:
    1. MODEL
    The attribute i want to use is an internal table: T_REP_TOP     Static Attribute     Private     Type
    2. VIEW
    2.1 Page Attributes (BSP)
    How do i have to declare the page attribute in order to "bind" the model attribute T_REP_TOP to my view???
    2.2 Layout: Table View
                                            <htmlb:tableView
                                                        id="topkennzahl"
                                                        selectionMode= "singleselect"
                                                        table="<%=???????????????%>"
                                                        width="80%"
                                                        onRowSelection="row_top"
                                                        footerVisible="FALSE">
                                            </htmlb:tableView>
    How do i have to fill the table tag of my table View????
    Thankx for your help!!!
    greetings
    Michael
    Edited by: Michael Hornung on May 15, 2008 8:42 AM

    Hallo Michael!
    1. MODEL
    Make the attribute T_REP_TOP as Instance Attribute Public Type
    Create an instance of the model in your controller:
    METHOD do_init.
      create_model( class_name = 'ZCL_MODEL_MIKE  model_id = 'MOD1' ).
    2. VIEW
    2.0 Create the View
    METHOD do_request.
      DATA: l_view TYPE REF TO if_bsp_page,
            l_model TYPE REF TO zcl_model_mike.
      l_model ?= get_model( 'MOD1' ).
      l_view = create_view( view_name = 'view1.htm' ).
      l_view->set_attribute( name = 'model'  value = l_model ).
      call_view( l_view ).
    2.1 Page Attributes (BSP)
    Type in a page attribute named model TYPE REF TO zcl_model_mike.
    2.2 Layout: Table View
    <htmlb:tableView
    id="topkennzahl"
    selectionMode= "singleselect"
    table="//model/t_rep_top"
    width="80%"
    Regards
    Thilo

  • InputField in the MVC BSP app

    Hi,
    I am facing a weird problem with the Inputfield values in the BSP application which is developed using MVC architecture.
    When i try to enter a value in the inputfield, the value is preceeded by a space. by default looks like the inputfield value is having a space. I tried all the possibilities to delete that but am not able to get rid of it. After reading the form fields, it shows me with a leading space.
    am using a model->structure->field in the value attribute of the Inputfield and i have the inputfield in a gridlayout cell.
    <htmlb:inputField id        = "sold_to_city"
                                        value     = " <%= model->gs_sec1-sold_to_city %>"
                                        disabled  = "<%= model->gv_disabled %>" />
    Can you please help me if am missing something in the BSP?
    Thanks!

    Hi All..
    nevermind i did solve the problem!!!
    thanks!

  • Eventing with custom MVC BSP

    Hi,
    I have created a BSP Application that is used for a registration page.  User enters information, register, an e-mail is send to the user with a confirmation link, user clicks the link, and the confirmation page loads in a new window.
    Now starts the problem.
    For some reason, eventing does not work.  I have a button on the page, which I want to execute some code in the DO_HANDLE_EVENT when clicked, but for some reason, the eventing is never triggered and the page just reloads itself.  The page does not seem to load the javascript files that all other BSP pages and applications have automatically included when loaded.  When I launch the registration page, the javascript files are included, but not when the confirmation page is loaded.
    I believe that the javascript includes come from the class interface CL_HTTP_EXT_BSP_HTMLB.
    I am using CL_HRRCF_CONTROLLER as my superclass for the class interface.
    Anyone have any ideas?  Any help would be golden!!
    Thanks and regards,
    Kevin

    Thanks Craig... that's perfect... BUT (I hate that word) I have another problem now.
    I'm trying to launch a page after I'm done executing my code in the DO_HANDLE_EVENT method.  I think that I have the wrong superclass associated with it, but I'm going to try some other ideas that I have and see what happens.
    Kevin

  • Launching BSP from url in email

    Happy New Year,
    I have a page that automatically generates an e-mail and sends it out to a user.  Inside that e-mail is a link to a page from the same BSP application where the e-mail was created.  When I click the link, it launches the correct page, but it gives me the message, "An internal error occurred. Please try again later."
    I call the .do file, in which it calls the .bsp file.
    I have tried to debug the class method Do Init(), but it's like it doesn't get to it before it crashes.  What could be causing this problem?  This is an MVC BSP.
    Is there some documentation out there on this?
    Best regards,
    Kevin

    Hi Kevin
    I am afraid this approach will not work...
    The eRecruitment 3.0 BSP pages were developed prior to the completion of the full MVC implementation by SAP. As a result they have created their own controllers which inherit from the CL_BSP_CONTROLLER2 standard controller class. These controller classes link into other HRRCF classes at runtime, it is therefore not possible to call the individual pages directly.
    You can only call the eRecruitment pages from outside a current session in two ways. The first is via a start page and the second is via an HRRCF logical application.
    The ABAP report RCF_GENRATE_URL and RCF_GENERATE_URLS will give you some idea of the possible entry points. RCF_GENERATE_URL can be called to give the required URL for either a given start page or a given logical application.
    Adding new logical applications can be achieved by configuring table T77RCF_LOG_APPL and T77RF_LOG_APPLT. The new logical application must have a stand along controller, to see an example of these look at the BSP application HRRCF_PERS_SETT where you will find the controller MAIN_SA.DO [ SA stands for stand alone ] on occasions were no separate controller is required for stand alone use you may find the the main controller [ with _M ] will be called.
    All pages will be called via the base application HRRCF_START_INT [ for users known to the system ] or HRRCF_START_EXT [ user external to the system ]. These applications will instantiate the necessary framework before calling the logical application or start application pages...
    You can see this from the URLs when browsing the system. Normally you will be pointing at /hrrcf_start_int/application.do OR /hrrcf_start_ext/application.do
    Hope that helps
    Jon Bowes

  • How to get workitem ID parameter in BSP application in UWL?

    Hello All,
    okay, it's been a long day and i stuck with this seemingly simple problem - how to get a workitem id in my BSP application when calling from UWL.
    Points are guaranteed to all who post an answer.
    i got MVC BSP iview is configured to be called for my task in SWFVISU, all re-registered and seem fine. Correct BSP is being called when i execute the workitem from UWL, but wi_id is not passed there.
    What am i missing?
    Thanks!

    Hi Serge
    How you solved it .I have same issue  please let me know.
    Thanks

  • BSP Tree View - how to create checkboxes on each node?

    Hello all,
    On my (non-MVC) BSP page I'd like to have a tree in which each node has a checkbox that the use can select, e.g. node 1.1: X, node 1.2: space; node 1.3: X
    It doesn't seem like the standard <htmlb:tree> can do this. Is there any quick way I can achieve this functionality?
    Any suggestions/code samples will be appreciated.
    Rgds,
    Louis.

    Hi Louis,
    Go through the sample program which is exactly as per your requirement,
    http://www.sapdevelopment.co.uk/webapps/bsp/bsp_orgunit.htm
    Regards,
    Azaz Ali.

  • Hierarchy popup in BSP ?

    Hi all,
    I'm looking for a easy way to create a popup of a existing hierarchy which also allows to select a node/item.
    SAP queries in BeX and Web format which use hierarchies offer a popup to select a node/item automatically.
    I would like to offer such a functionality also in a MVC BSP application.
    My questions:
    Is there already a HowTo available which describes a task like this ?
    Is it possible to use the existing hierarchy in a BSP directly (with HTMLB etc.) in a easy way to avoid greater effort  ?
    I'm looking forward to your help
    Best regards
    Pascal

    Hi,
    In BSP, you have a tree component that may fit your needs.
    Yet, I don't think you will find the numerous options that are available in BEx.
    In the past, I had to code radio-button in front of each node with a Javascript mecanism to select children recursively...
    Check this tip from Durairaj : Enhancement of BSP Tree
    Best regards,
    Guillaume

  • Changing Standard - BSP

    Hello,
    I'm work with SRM 5.0 - ROS.
    I need to create a registry in one “tabstrip” of the service “ros_prescreen” in the vision “bupa_detail.htm”. The vision I can change without problems, but I cannot change the class that works with controls “bupa_detail.do” and with class “CL_ROS_PRE_BUPA_DETAIL_C”. As I can change to the event “do_handle_event” of this class?
    Thanks a lot,
    Alexandre

    Alexandre,
    Yes and No.
    1. during SPs object comes only up in SPAU if object has been changed by SAP in that SP
    2. During Upgrades object come always up in SPAU, because all modified objects come up in SPAU during an Upgrade.
    You should always have a look at what SAP has changed, because even if you can retain your modification by simply a mouse click you should be aware if your modification still does what it should do. And sometimes SPAU says it cannot keep your modification automatically in exactly the way you did it, because SAP e.g. has completely redesigned the coding part you have modified. Then you must compare your modified version with SAP standard (in SPAU) and decide where to place your modification now.
    Nevertheless: It is always recommended to know what SAP changes in objects you have changed. If you copy instead of modify you have to investigate the changes manually and in this case you must know exactly which SAP objects you have copied and changed.
    By the way: In case of MVC BSPs you not only have to copy the BSP application but also all controller classes you want to change. These classes are NOT copied automatically if you copy a BSP application. The copy and adjustment of controller classes has to be done manually. After a BSP copy the BSP still points to the SAP original controller classes.
    Hope this helps you to make teh RIGHT decision ....
    Regards,
    Volker

  • BSP view quantity field causing error CX_BSP_CONV_ILLEGAL_REF

    Hi All,
    I have a htmlb inputfield on the view of my MVC bsp.  The field type bound to this inputfield is a quantity data type.  When I run the application i get the error:
    Following error text processed in system: 
    When I debugged into it the below exception is triggered:
    CX_BSP_CONV_ILLEGAL_REF
    Can anyone please, please tell me how to get around this?
    After further investigation, we've discovered that quantity fields display fine when they are an attribute on the model itself.  But the problem occurs when the quantity field is on a structure which is an attribute of the model.
    Many thanks,
    Liz.
    Edited by: Liz O'Leary on Nov 4, 2009 3:36 PM

    Hi Raja,
           I am getting same exception. Here i am creating input field at run time.My code is
                   CREATE OBJECT lref_inputfield.
                   lref_inputfield->disabled      = lwa_fieldcatalog-disabled.
                   lref_inputfield->id            = lwa_fieldcatalog-fieldid. 
                   lref_inputfield->submitonenter = lwa_fieldcatalog-submitonenter.
                   lref_inputfield->value         = <lv_value>.       "0.00"            
                   lref_inputfield->width         = lwa_fieldcatalog-width.
                   lref_inputfield->_value        = lwa_fieldcatalog-_value.     "//MODEL/MS_STRUCT.ZCURR"
    Getting Exception if i call below method
          CALL METHOD lref_inputfield->if_bsp_bee~render_to_string
                     EXPORTING
                       page_context = m_page_context
                     RECEIVING
                       result       = lv_element_string.

  • How to do MVC

    hi every one ,
       i just want to create a bsp application in mvc with out Model i.e application class
    i do have an controller  and two view
    the first view contains any input field and i need to dispaly any text written in first view in the second view hw can i achive it .
    this was the code written in DO_request
    method DO_REQUEST.
      data: view TYPE REF TO IF_BSP_PAGE.
       dispatch_input( ).
    if v_flag is INITIAL .
    CALL METHOD ME->CREATE_VIEW
      EXPORTING
        VIEW_NAME     = 'main.htm'
      RECEIVING
        VIEW_INSTANCE = view
    if  view is not INITIAL.
    TRY.
    CALL METHOD ME->CALL_VIEW
      EXPORTING
        VIEW_INSTANCE = view
    ENDTRY.
    ENDIF.
    else.
    CALL METHOD ME->CREATE_VIEW
      EXPORTING
        VIEW_NAME     = 'second.htm'
       KEY           =
      RECEIVING
        VIEW_INSTANCE = view
    if view is not INITIAL.
    TRY.
    CALL METHOD ME->CALL_VIEW
      EXPORTING
        VIEW_INSTANCE = view
    ENDTRY.
    ENDIF.
    endif.
    endmethod.
    i raised the flag in do_handle event in order to trigger the scenod page
    these ARE  the attributes i declare
    V_NAME     Instance Attribute     Public     Type     STRING
    V_NAME1     Instance Attribute     Public     Type     STRING
    V_FLAG     Instance Attribute     Public     Type     CHAR1
    i need to capture the value in v_name and pass the value to v_name1 and by using this i need to display in the second view by <%=controller->v_name1%>
    can any one help me.

    Hi Kiran,
    Check this link:
    [Creating simple MVC BSP using controller and view|http://www.sapdev.co.uk/webapps/bsp/mvc_example_controller.htm]
    Kindly search before posting.
    Regards,
    Anubhav

  • BSP migration from 4.0 to 7.0

    Hi All,
    We have developed a custom BSP application on the Model View Controller architecture on the CRM 4.0 system.
    We are migrating from 4.0 to 7.0 in a short while, could you please shed some light on the effect on the BSP application developed. Will it run without any modifications to it? Is the MVC BSP architecture still supported by CRM 7.0?
    Thanks,
    Rajat.

    Hi,
    Do you want to call your BSP Application from the Web UI? In that case you'd have to do some modifications to your application.
    If this is just standalone BSP Application with no linkage with the BSP Component Workbench in CRM 7.0 then you'd not have any issue.
    Do you also have a basic understanding of the BSP Component Workbench in CRM 7.0?
    Regards
    Prasenjit

  • Erec Modify Fields in Interfaces

    Hi,
    I am running e-recruitment version 3.0 and I want to make the fields Address and Telephone number mandatory in the communications tab when going through the application wizard. However these fields do not appear in the customizing settings under the node Modify Fields in Interfaces.
    Has anyone been able to add additional pages into this customizing setting?
    Thanks in advance for your help.
    Thanks
    Tom

    Hi,
    Thanks for your help again. I've looked in SE80 and the field names appear to be dynamically generated.
    <hrrcf:formLayoutInputField id       = "street1_<%= lv_index %>"
    So I tried to use the field name street1_1 for the street name of the first address subtype. However this has no effect when I log in and view this BSP.
    Have you managed to get these fields to be mandatory before? Am I missing any other steps?
    Thanks a lot for your help!!
    Tom

Maybe you are looking for

  • Online Rebuild Index Vs Shrinking With Compact Segment with Release space

    Hi All, I want to know which is the better option from these as far as availabiltiy of index is concerned I have been doing online INdex rebuild and haven't faced much problems but new to Shrinking What Grid COntrol says about shrinking is "This will

  • Ipod touch 2nd gen. glitching out like crazy, any suggestions?

    IPod won't connect to itunes even after uninstalling and reinstalling the latest version of it, freezes frequently, will turn itself off, tilt sensors won't work anymore, sometimes screen will turn white, and stay that way until it runs itself out of

  • Counting files in a Flder

    Hi all, I have to count the number of files in a folder and their respectives name in it using flash.Is it possible to do it by JSFL. can anyone give me samples regarding this.thanks in advance. Regards, S.Hidayath

  • Outlook Add-In for Acrobat Pro X

    I have Microsoft Office 2013 as well as Adobe Acrobat Pro X.  The Adobe Acrobat Add-In will not load in my Outlook.  It is not listed as disabled.  When I open up Outlook Options and go to the Add-In Manager, it is listed, but when I check it, it wil

  • Obiee 11.1.1.6 logging in without password

    We have upgraded from obiee 11.1.1.5 to 11.1.1.6. Its a linux machine. Issue is when any user tries to log in to anlaytics, it allows user to log in without password. For example suppose user id is asingh and username for that user is Ajay Singh, the