Creating calender for a field in a form

hi,
We have a date field in our form.We would like to implement it with a calendar.kindly help
tahks and regards

If you are talking of a date picker in a form, there is no ready-made solution. However, if you can generate the dates through a sql query, you can create a dynamic LOV and make the form field of type POPUP and attach the LOV to it. But the popup lov can show only 10 values at a time.
Infact, there are lot of postings on date picker in this forum. If you perform a search, I am sure you will come out with good hits. Otherwise, lot of javascript sites have ready-made date-picker codes.
If you come across such code, you can incorporate the same by generating the same code using htp.p() in a pl/sql block in the additional pl/sql section.
While building the form, you can choose to build a custom form and then you can create an image link that calls the javascript you generate in the additional pl/sql section.
Or,
If you have some code that generates the dates in a browser window, you can create a procedure and call it through the link field in the form.

Similar Messages

  • Should I create setters for static fields ?

    Hi all,
    I don't know if here is the right forum for this question, but I'd like to know if is recommended to create setters for static fields of a class or if I can directly assign a value to those fields.
    Thanks.

    No question, you can assign to static fields, it's more a question of style and thoughts about future requirements. At some point in the future maybe you'll want such setting to have side effects. Personally I think using getters and setters everywhere (even on isntance fields) can be a bit obsessive.
    On the whole, there's not that many occasions where accessing static fields that directly from outside the class makes sense. It's usually better, to my mind, to use a singleton pattern for global values. For me, static variables are more likely to either be constants, or things like instance lists more likely to be accessed through an Iterable interface.

  • Creating OVS for a field

    Hi All ,
    I am trying to add the OVS for a particular field in my web dynpro application and for this I have done the folllowing:
    1. I added the component WDR_OVS to my component interface.
    2. I then added the following to my component controller
    OVS     WDR_OVS                                 System Component for OVS Input Help
    OVS     WDR_OVS     INTERFACECONTROLLER     Generic Input Help
    3. I set the input help mode as 'Object Value Selector' and OVS Component usage as 'OVS' for the attribute 'Alternate_payee'.
    4 . I then created a even handler type method ON_OVS in the main view and inserted the following code to it:
    DATA: lifnr TYPE lfa1-lifnr,
            f4lfb1_z TYPE lfb1,
            filkd TYPE bseg-filkd,
            t_zemtab TYPE STANDARD TABLE OF izemtab,
            w_zemtab  LIKE LINE OF t_zemtab.
      DATA: lt_value_set TYPE TABLE OF wdr_context_attr_value,
                ls_value_set LIKE LINE OF lt_value_set.
      SELECT SINGLE * FROM  lfb1 INTO f4lfb1_z
                      WHERE lifnr = w_lifnr
                      AND   bukrs = '001'.
      CALL FUNCTION 'FI_VENDOR_ALTERN_PAYERS_READ'
        EXPORTING
          i_lifnr            = w_lifnr
          i_filkd            = filkd
          i_bukrs            = '001'
          i_lfb1_head_office = f4lfb1_z
        TABLES
          t_zemtab           = t_zemtab.
    data w_alt_emp_string type string.
      LOOP AT t_zemtab INTO w_zemtab.
        concatenate w_zemtab-empfb ' ' w_zemtab-name1 ' ' w_zemtab-ORT01 ' ' w_zemtab-STRAS ' ' w_zemtab-PFACH into w_alt_emp_string RESPECTING BLANKS.
        ls_value_set-text = w_alt_emp_string.
        ls_value_set-value = w_alt_emp_string.
    append ls_value_set to lt_value_set.
      ENDLOOP.
    DATA lo_nd_alt_payee_info TYPE REF TO if_wd_context_node_info.
    DATA lo_nd_alt_payee TYPE REF TO if_wd_context_node.
    lo_nd_alt_payee = wd_context->get_child_node( name = wd_this->wdctx_alt_payee ).
    lo_nd_alt_payee_info = lo_nd_alt_payee->get_node_info( ).
             lo_nd_alt_payee_info->set_attribute_value_set(
                name =  `ALERNATE_PAYEE`
                value_set = lt_value_set ).
    Now when I run the application and do F4 on the desired field I am getting the short dump as ''OVS: Methode SET_OUTPUT_TABLE Cannot Be Called "
    Can you please tell me what am I missing here?
    Edited by: rajatg on Jul 27, 2011 9:42 PM

    Hello,
    WDR_OVS->OVS event follows a phase model approach. Once you create a event handled method for the OVS, the code template will be auto generated and it will look like this
    * declare data structures for the fields to be displayed and
    * for the table columns of the selection list, if necessary
      types:
        begin of lty_stru_input,
    *   add fields for the display of your search input here
          field1 type string,
        end of lty_stru_input.
      types:
        begin of lty_stru_list,
    *   add fields for the selection list here
          column1 type string,
        end of lty_stru_list.
      data: ls_search_input  type lty_stru_input,
            lt_select_list   type standard table of lty_stru_list,
            ls_text          type wdr_name_value,
            lt_label_texts   type wdr_name_value_list,
            lt_column_texts  type wdr_name_value_list,
            lv_window_title  type string,
            lv_group_header  type string,
            lv_table_header  type string.
      field-symbols: <ls_query_params> type lty_stru_input,
                     <ls_selection>    type lty_stru_list.
      case ovs_callback_object->phase_indicator.
        when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
    *   in this phase you have the possibility to define the texts,
    *   if you do not want to use the defaults (DDIC-texts)
          ls_text-name = `FIELD1`.  "must match a field name of search
          ls_text-value = `MYTEXT`. "wd_assist->get_text( `001` ).
          insert ls_text into table lt_label_texts.
          ls_text-name = `COLUMN1`.  "must match a field in list structure
          ls_text-value = `MYTEXT2`. "wd_assist->get_text( `002` ).
          insert ls_text into table lt_column_texts.
    *      lv_window_title = wd_assist->get_text( `003` ).
    *      lv_group_header = wd_assist->get_text( `004` ).
    *      lv_table_header = wd_assist->get_text( `005` ).
          ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                    row_count    = 20 ).
        when if_wd_ovs=>co_phase_1.  "set search structure and defaults
    *   In this phase you can set the structure and default values
    *   of the search structure. If this phase is omitted, the search
    *   fields will not be displayed, but the selection table is
    *   displayed directly.
    *   Read values of the original context (not necessary, but you
    *   may set these as the defaults). A reference to the context
    *   element is available in the callback object.
          ovs_callback_object->context_element->get_static_attributes(
              importing static_attributes = ls_search_input ).
    *     pass the values to the OVS component
          ovs_callback_object->set_input_structure(
              input = ls_search_input ).
        when if_wd_ovs=>co_phase_2.
    *   If phase 1 is implemented, use the field input for the
    *   selection of the table.
    *   If phase 1 is omitted, use values from your own context.
          if ovs_callback_object->query_parameters is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->query_parameters->*
                                  to <ls_query_params>.
          if not <ls_query_params> is assigned.
    ******** TODO exception handling
          endif.
    *     call business logic for a table of possible values
    *     lt_select_list = ???
          ovs_callback_object->set_output_table( output = lt_select_list ).
        when if_wd_ovs=>co_phase_3.
    *   apply result
          if ovs_callback_object->selection is not bound.
    ******** TODO exception handling
          endif.
          assign ovs_callback_object->selection->* to <ls_selection>.
          if <ls_selection> is assigned.
    *        ovs_callback_object->context_element->set_attribute(
    *                               name  = `COLUMN1`
    *                               value = <ls_selection>-column1 ).
    *      or
    *        ovs_callback_object->context_element->set_static_attributes(
    *                               static_attributes = <ls_selection> ).
          endif.
      endcase.
    you need to adapt this code to pass the required structure and data.
    BR, Saravanan

  • Regarding finding the table name for a field in R12 forms

    Hi all,
    I need to know how to find the table name for a field in R12. I am working on extracting the employee information but i need to know how to get the table names for the fields.
    Thank you,
    raj

    Please see these threads.
    How to find table name in ebs
    How to find table name in ebs
    E-Business tables
    E-Business tables
    Thanks,
    Hussein

  • Create Rule for "Boolean" field attribute

    Hi all,
    I'm having a problem creating a Rule which references the value from a Checkbox in my User Form (hence, Boolean).
    I know how to create Rule to reference string values. But, apparently, the syntax is not the same when referencing a *"checkbox*" value.
    Here is the Rule I created :
    *<Rule name='Rule for Checkbox'>*
    *<switch>*
    *<ref>checkboxvalue</ref>*
    *<case>*
    *<isTrue>*
    *<ref>checkboxvalue</ref>*
    *</isTrue>*
    *<setvar name='MyTextField'>*
    *<s>Yes</s>*
    *</setvar>*
    *</case>*
    *<case>*
    *<isFalse>*
    *<ref>checkboxvalue</ref>*
    *</isFalse>*
    *<setvar name='MyTextField'>*
    *<s>No</s>*
    *</setvar>*
    *</case>*
    *</switch>*
    *<MemberObjectGroups>*
    *<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>*
    *</MemberObjectGroups>*
    *</Rule>*
    In other words : if the Checkbox in my User Form is ticked (meaning, if the value is TRUE), then IDM should automatically allocate a value of "*YES"* to that text field in my user form *(MyTextField)*
    If the checkbox is not ticked, then the value of *"NO"* should be displayed in the Text Field.
    Is my syntax wrong?
    Thanks

    It depends on how you're generating the email. If you use a workflow it is relatively easy.
    Change the rule to (note that I added the rule argument, it's not really necessary, it just cleans the code up):
    <Rule name='Get To Address'>
        <RuleArgument name="boxvalue"/>
         <cond>
             <isTrue>
                 <ref>boxvalue</ref>
             </isTrue>
             <s>[email protected]</s>
             <s>[email protected], [email protected]</s>
         </cond>
    <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    </Rule>Using the workflow service directly.
    <Activity>
        <Variable name="to">
            <!-- this assumes the checkboxvalue variable is already set -->
            <rule name="Get To Address">
              <argument name="boxvalue">
                  <ref>checkboxvalue</ref>
              </argument>
            </rule>
        </Variable>
      <Action id='0' application='com.waveset.provision.WorkflowServices'>
        <Argument name='op' value='notify'/>
        <Argument name='template' value='yourtemplate'/>
        <Argument name='to' value='$(to)'/>
        <Argument name="from" value="[email protected]"/>
        <Argument name="some_template_argument">
            <s>some value</s>
        </Argument>
        <Argument name='catch' value='notificationException'/>
      </Action>
    </Activity>Using the notify workflow subprocess is nearly identical. (I recommend this because retries are taken care of for you but it's up to you.)
    Finally your template is simple again. IDM should fill in the to value on based on the "to" variable you provided in the "to" argument. The "to" variable in turn was set by the rule.
    <EmailTemplate
    id="#ID#EmailTemplate:yourtemplate"
    name='yourtemplate'
    smtpHost='$(smtpHost)' 
    htmlEnabled='false'
    authEnabled='$(authEnabled)'
    userId='$(userId)'
    password='$(password)'
    ssl='$(ssl)'
    ignoreCert='$(ignoreCert)'>
    <!-- IDM provides the above values -->
      <subject>Your Subject</subject>
      <body>
    Hello.  The argument was $(some_template_argument).
    </body>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#All' name='All'/>
      </MemberObjectGroups>
    </EmailTemplate>

  • How to create table for XML schema-based Interface form

    Hi All,
    With tcode SFP to crate  a XML schema-based Interface form, how to create a defined table can be listed in "Data View"?
    Just like APAP Dictonary- Based Interface form, that we can drag  a defined table from data view to the panel.

    Hi,
    Just follow these steps:
    1. Create interactive form UI element in your view.
    2. Now provide Datasource and PDFSOURCE to it in form properties.
    3. Now give a template name prefix with 'Z' or 'Y'.
    4. Double click on it. It will prompt for interface name.
    5. Provide interface name prefixed with 'Z' or 'Y'.
    6. Click on Context button in the Pop up window and provide the node you have selected as DATASOURCE.
    7. Click ok and it will open the form designer.
    8. In this way you can create a XML Schema based Form.
    9. Activate the interface and design the form providing layout type and other details.
    Hope it will help.
    Regards,
    Vaibhav

  • How to create UI for detail table in BP-form

    Hi!
    It is necessary to store some data in the detail table for OCRD. How I can create the UI for such table (like Contact Person in BPMD form)? I can create matrix, but how to force SBO to process my table just as OCPR.
    SBO2004
    Sry for english
    Thanks

    Have a look at all the e-learning material
    e-learning material

  • Java Dictionary Project + create autonumber for KEY field?

    Hi there,
    I would like to create a Java Dictionary project that has a table with an AUTONUMBER as the key field.
    I know exactly how to do this in SQL Server using the IDENTITY field but cannot see an option when using the Java Dictionary project?
    Any ideas?
    Thanks for the help
    Lynton

    Has there been an update to this recently?  I am in need of exactly the same information.  The FAQ lists this:
    <i>Can I deploy a Java Dictionary table along with the table content?
    Yes. You can deliver the Java Dictionary table along the table content. There are two possibilities:
    Export from a reference database
    Specification of the table entries in an XML file (since SP5)
    Note that there is no modification support for table entries that are delivered in this way. Therefore, you can deliver table entries with program character or for examples, but not for templates or customizing data.</i>
    Now, I may be reading the note incorrectly, but it makes it sound like if you do populate a table with a XML file, the records cannot be modified thereafter.  Is this true?
    I'd also like to know how to develop the XML and where to put it, etc.  I've had no luck searching for this information.
    Thanks!

  • How to view field name for a field in Oracle form?

    I was told you can do this but I forgot how.
    If you want to build a report, but don't know what the field name is in Oracle, you can open up the Oracle form and find the screen with that field name and do a trick that tells you the Oracle field name. Any help?

    Try this....
    REPORT ZZDYNAMIC_FIELD.
    DATA: BEGIN OF it1 OCCURS 0,
    printer(10) TYPE c,
    paper1(20) TYPE c,
    paper2(20) TYPE c,
    paper3(20) TYPE c,
    END OF it1.
    DATA: descr_ref TYPE REF TO cl_abap_tabledescr,
          i         TYPE i.
    FIELD-SYMBOLS:
      <key_comp_wa> TYPE abap_keydescr,
      <field>       TYPE ANY.
    it1-printer = 'MUC123'.
    it1-paper1 = 'KBLOGO'.
    it1-paper2 = 'BLANK'.
    it1-paper3 = 'DINA5'.
    APPEND it1.
    it1-printer = 'MUC123'.
    it1-paper3 = 'KBLOGO'.
    it1-paper2 = 'BLANK'.
    it1-paper1 = 'DINA5'.
    APPEND it1.
    TRY.
        descr_ref ?= cl_abap_typedescr=>describe_by_data( it1[] ).
      CATCH cx_root.
    ENDTRY.
    LOOP AT it1.
      i = 0.
      WHILE 1 = 1.
        i = i + 1.
        ASSIGN COMPONENT i OF STRUCTURE it1 TO <field>.
        if <field> is not assigned.
          EXIT.
        endif..
        IF <field> IS ASSIGNED AND <field> EQ 'KBLOGO'.
          READ TABLE descr_ref->key INDEX i ASSIGNING <key_comp_wa>.
          WRITE <key_comp_wa>-name.
          exit.
        ENDIF.
      ENDWHILE.

  • Abap query: Create selections for extras field

    Hi,
    I have a custom query and Infosets where I have defined customer fields in Extras tab (infosets).
    Now I want create (into Infosets) a selections field (select-options) to filter the extras field created but I receive message AQ120 that say I can't do that !
    You know some trick to do this ?
    (I don't have any database table to join with selections)
    Thanks,
    Daniels

    Hi
    U can use the extrafield in the selection-screen of the query, why do u need to create a SELECT-OPTION in the infoset?
    Max

  • Pls Provide any example of creating DataSourceColumn for the block of form

    Hi All...
    the syntax of creating DataSourceColumn is correct????
    DataSourceColumn colmap2 = new DataSourceColumn(blk1,colmap1.getDSCName());
    please provide any sample program of creating DataSourceColumn for the block in the form.

    Hi Anjali,
    I agree with Sreenath.
    Few Suggestions:
    If these two fields are the part of Transaction Data then you need to add them in Transfer Structure and Infoprovider.
    If you want to use these objects as only Navigational Attributes then you need not add these fields to the Infoprovider, just make them as navigational attributes in the master data characteristics.
    Hope that helps.
    Regards
    Deepak

  • Hiding fields in HCM forms

    Hi Experts,
    I have following requirement for  hiding fields in my form.
    I have two screens MANAGER and HR screen.
    now i have some input fields which has to be visible in MANAGER screen and
    and should be hidden in HR screen.
    please let me know how can i achieve this using form calc or java script.
    any code will be helpful.
    Thanks,
    Santosh

    Hi sushmita,
    Thanks for ur reply.
    The solution which you have given i have  already tried but not working.
    my requirement is like MGR or HR can initiate the process.
    if only MGR intiates the process the solution which u have given will work.
    but here i have a diff scenario.i have created separate process for HR also but im not able
    to see that process on the process list.
    so i have to use only one process and resolve this.whatever im writing validation is working
    only when MGR initiates the process but fails when HR initiates.
    Hope u got my point.any suggestions will be helpful.
    Thanks,
    santosh

  • POV-After creating Tcode for a table SM30 I want F4 Help here

    Hi All,
    After creating Tcode for a table, When I am trying to give table entries thro' this Tcode, I want F4 help for those fields. Apart form assigning "Fixed values" in Domain level how can I achieve this.
    Points Assured.
    Regards,
    Suresh

    Hi,
          You need to create search helps based on this table for each filed or one for all the fields with proper import and export paramters. Or else you can give check table entries for each of the table fields for which you need the F4 help. Check table us assigned to a field using the Foriegn key assignment.
    Best Regards,
    Sesh

  • F4 help for Time field in Webdynpro Screen

    Hi Experts,
    I'm using TIMS data type for my Time field. In ECC we will have F4 function for the same data element, but in Webdynpro screen, am not getting the F4 help.
    I got some information from SCN that I need to go for some custom search help. But with which reference to the table, am I want to create it.
    Please let me know, is there any other possible way to create F4 for time field for webdynpro.
    Even I tried to use some standard search help, but am getting an error as 'Sending of dynpro ' ' not possible. No window system type specified'.
    Expecting valuable information from you experts.
    With Regards,
    RAM.

    Hi RAM,
    For time field, there is no SAP delivered search help in WDA , so we need to go for freely programmed search help.
    Please refer the below link, in which Mr. Thomas, has provided the links for search help document you can follow and create new search help component
    and also nugget of the component which can be imported using ZSAPLINK program.
    search help for time
    Regards,
    Rama

  • How to show asterisk for required fields in a table row?

    Hi Folks,
    For showing the asterisk (*) for required fields in a form, I used to give required="true" for the component and surround the component with a af:panelLabelAndMessage for which I set showRequired="true". How to do this for a component in a table row. For a component in a table, there is no label per se. The required=true flag in the component shows proper error message saying that it is required but there is no (*) for that component.
    Thanks
    Vishal

    Table does not have any required attribute.But column has showRequired property .You can used this.If column has input text then also you put required true on this component.And set your required messages there .
    It will resolve your problem
    Thanks
    Prateek

Maybe you are looking for