Want to develop form with field not in Database table.

Hi.
I am developing one form for leave request.
Now i have created two tables..
1. Employee detail
2.Leave detail
Now i am creating form based on leave detail right now.
This table is taking reference of Employee Detail table as reference table.(employee no is foreign key in Leave detail table).
Now in form based on Leave detail table,i have taken employee name as combo field,now when i select any employee name,based on employee name other realated detail from employee detail table also i can populate in form based on Leave detail table.
Is it possible.?As i am not able to add any field or button other than which is already there in table(Leave Detail table)
I hope i have clearly mentioned my requirement,
Need help.
Thank you.

You can in fact add another field which is not connected to any column to in the Leave table. Give it any name. Make sure that the checkboxes "updatable" and "insertable" are NOT checked, otherwise the form will try and include it in its SQL statements to update/insert data.
You then have to use the "Additional PL/SQL" tab - "before form is displayed" section on the form to fill in the value of the field. Use code like
p_session.set_value(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_<your field name>',
p_value => <your value>);
p_session.save_session;
where
- p_session is available in most custom PL/SQL blocks - It refers to a portal stored session that is used to store all the internal variables.
- block_name is either DEFAULT for simple forms or MASTER or DETAIL for master/detail forms
- p_attribute_name is the name of the field you want to set BUT (very important) prefixed with A_
- p_value is the actual value - here you will use your pl/sql variable.

Similar Messages

  • Populating a html form with fields from a database

    Ok, basically ive got fields in a db, for example:
    name
    decription
    time
    weather
    mood
    Ive got a html form that also has these fields.
    When the user clicks a button the homepage of the site, it should bring up a form in a popup window that has all the fields in based on the entries in the database - lets pretend there is only 1 entry in the database, so the form will be the same for every user.
    Any ideas how i could do this?
    BTW I'm using jsp and mysql as db.
    Thx peeps

    Hi,
    Are all the fields from the same table? if so you can construct a class say Test.java with the follwing attributes.
    <code>
    public string m_strName=null;
    get and set methods
    </code>
    You can repeat for all the fields in the DB. If you have primary key for the table you can set the ID of the class as the primary key. so in your JSP you get the class with ID (whichever you wish to) and use the class in the JSP like this
    <code>
    Test test = JDBCAccess.get("ID of the table");
    <%=test.getName();%>
    </code>
    This is an example of OR(object relational mapping).
    Hope this helps.
    thanks
    shyam

  • Issue with fields of a database table

    Hi All,
    While browsing through database table T2515, i have observed that in 'fields' tab, there are only 2 fields visible ie MANDT and WWSSN.
    When we see the contents of table, there will be one more additional field called BEZTEK.
    Now my requirement is to retrieve data from both WWSSN and BEZTEK fields.
    How to define internal table and how to write select statement in such cases?
    Moreover, from where this BEZTEK will get populate, when we see the contents of table in se11?
    Regards
    Pavan

    Hi,
    BEZTEK may be coming from the Text table related to T2515.  See the text table of T2515 (SE11 -> Menu option Goto -> Text Table).
    Regards
    Vinod

  • To modify a field in a database table based record identification by primar

    hi
    i want to to modify a field in a database table based record identification by primary key filed and two more fields
    ie customer (primary key
    i want to modify record from intenal table the record existing with primary key field customer
    the status field needs to be mofied as " value rolled"
    the below code is happening
    loop at it_record into wa_Record
    wa_inv-customer (primary key) = wa_Record=custome
    wa_inv-date = wa_Record-date
    ...so one
    append wa_inv to it_invest
    clear wa_inv
    endloop.
    if not it_invest  is initial
    modify TABle1 ( this table is data base table which needs to be mofified) based on the primary key field
    and also date field and status field which is not primary key.
    regards
    arora

    Hi there.
    Your requirement is to update a Z Database table from your internal table, right? You have several options:
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable
         SET date = wa_inv-date
       WHERE prim_key = wa_inv-prim_key
         AND any_field = wa_inv-any_field.
    ENDLOOP.
    or
    LOOP AT it_invest INTO wa_inv.
      UPDATE dbtable FROM wa_inv. "if wa_inv of same type of dbtable
    ENDLOOP.
    In the first example, I wrote any field because you can update dbase table, filtering for fields that don't belong to the primary key. However, remember that you will change all records that respect the key you used (so, in your case, use the primary key).
    Regards.
    Valter Oliveira.

  • How to modify or put entry in a particular field of a database table

    i want to to modify a field in a database table record identification by primary key fileds
    the situatio is like this
    there are two primay key in database table
    customer number PK
    status PK
    date
    and third field which i want to modify is customer part number.
    based on condition that
    database table1-cuspip = wa_record-cuspip.
    database table1-status <> wa_record-status
    and database table-date = wa_record-date
    if above is true a particular field  the database table  for that record
    ie customer_part_number = 'FAiled'.
    loop at it_record into wa_Record
    endloop.
    please suggest how to modify the database table record if the avove condition is tru and please give me full working code
    regards
    Arora

    Dear Nishant,
    Use UPDATE function for updating the customer part number.
    But please do mention the database table and the keys used for update.
    if en entry already exists with the key then the Entry will fail so use MODIFY statement to modify the Consumber Part Number  with the specificed keys  and transport the modified customer part number and then do COMMIT the changed entry to database.
    Hope this helps you in some way.
    Encourage others to answer you queries by suitably rewarding them.
    Thanks
    Venugopal

  • Pdf form with fields ppl can type into

    I have a pdf form with fields that are not able to be typed in. How can I edit them so that ppl can type into the field?

    Hi courtneyp58664902,
    I would recommend you to follow the steps detailed on the page associated with this link (http://wwwimages.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-con vert-forms-into-fillable-pdf-c… ).
    I would recommend you to Save the pdf with reader rights enabled [ File -> 'Save as other' -> 'Reader extender PDF' ->  'Enable More tools ( includes form fill-in and save)' ].
    Please let me know if you face any challenges or need any further assistance.
    Regards,
    Rahul

  • I have created a PDF form with field but for some reason I cant type in them

    I have created a PDF form with field but for some reason I cant type in them

    May be that the text fields are read-only.

  • Pdf form for data from another form with data, xml or pdf, tables not expanding

    Sir,
    I am using Adobe Acrobat 9 Pro and LifeCylce to do these forms. I have made several subforms for a Risk Assessment for the mission they fly. I have also made up another form with tables that would connect with each subform data. This form also will give me and others a % of the values received from the data to help us with seeing problem area towards Safety.
    I am able to connect the data to the form from the Risk Forms but when I go and add another group of data it over writes the data that was already in the data collection form. The tables are dynamic and able to expand with the generated data but when I compile several Risk Forms, xml. data into one single data group, the receiving tables will not except this data. To compile the data I am in Acrobat and using the form-manage form data-merge data to spreadsheet than enter as a report that is xml. Still not working. I also tried to save the form, with data already in the tables, and then opened it again and add data to it, it will over write the existing data in the form. This form does work great with the generated data in LiveCycle.
    Any suggestions???

    Thanks Paul
    Did as you said and for each subform binding tab made sure I have "Repeat subform for each data item" checkbox and still no change when I add the data.
    I even tried to combine the xml data and that file just has the main page and not the data pages. just another problem that is happening.
    Any other suggestions on this expanding tables and receive single forms one at a time.
    Bill

  • The ff default theme keeps re-enabling itself after computer restart even though I enable littlefox and restart firefox, and it does the same on more than one computer. I want littlefox to start with firefox, not have to enable every time.

    I want littlefox to start with firefox, not have to enable every time the computer starts.

    @kalos
    Uninstalled everything PA, also uninstalled mangler which was the only thing that depended on PA. It didn't work anyway.
    No pulseaudio --kill command so I couldn't run.
    Checked systemd journal and there is no mention of PA this time.
    Checked top, and grepped ps aux and there is no PA there either.
    I also rebooted the machine completely just to make sure. However VLC and HTML5 have the same incompatibilities.
    _ vlc Videos/anime/fmab/01.mp4
    VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
    [0x1bc30f8] pulse audio output error: PulseAudio server connection failure: Connection refused
    [0x1af4118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7fb604001248] main vout display error: Failed to resize display
    But the video and audio did work until I ran some HTML5 video, after which the audio worked, and then I opened it again and it didn't work...
    @nomorewindows
    I see. That's too bad. At least we're not alone.
    Last edited by Greduan (2014-11-14 01:34:29)

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.

    Hi all
      In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.
    Thanks & Regards,
    Rajib.

    Isn't that just exactly what transaction CO02 does? CO01 is for creating production orders so what sense does it make to have it display mode only?
    Maybe your goal is to stop then end user changing the component assignment that is automatically  detected by the system. If so, personally I think a better starting point would be PP configuration or user authorizations rather than looking to change the screen by whatever method. As we don't know what you are trying to achieve it's hard to offer much more advice maybe all you need is to change transaction to CO02

  • Extracting Values of a Field from a Database Table in SAP ECC System

    Hi,
    I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
    senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
    "6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
    I did not find WA elemen in Output element of Repeater_0
    How can I create WA element?
    Thanks.

    Cemil,
    Set up a SAP JCo Interface action block.  Use the RFC name RFC_READ_TABLE.
    In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
    <?xml version="1.0" encoding="UTF-8"?><FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET/>
            <LENGTH/>
            <TYPE/>
            <FIELDTEXT/>
          </item>
        </FIELDS>
    Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}.  You may run into problems with two other fields and optionally they can be removed (set link type to remove xml).  I usually remove them initially for testing.  The two fields are:
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
    SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~".  I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
    Once you get this one working, we can explore how to do filtering on the dataset.  Your output should be something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <RFC_READ_TABLE>
      <INPUT>
        <DELIMITER />
        <NO_DATA />
        <QUERY_TABLE>MARA</QUERY_TABLE>
        <ROWCOUNT>20</ROWCOUNT>
        <ROWSKIPS>0</ROWSKIPS>
      </INPUT>
      <TABLES>
        <DATA>
          <item>
            <WA>000000000000000023ROH 00000000</WA>
          </item>
          <item>
            <WA>000000000000000038HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000043HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000058HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000059HIBE 00000000</WA>
          </item>
          <item>
            <WA>000000000000000068FHMI 00000000</WA>
          </item>
          <item>
            <WA>000000000000000078DIEN 00000000</WA>
          </item>
          <item>
            <WA>000000000000000088FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000089FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000098HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000170NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000178NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000188NLAG 00000000</WA>
          </item>
          <item>
            <WA>000000000000000288HALB 00000000</WA>
          </item>
          <item>
            <WA>000000000000000358HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000359HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000521HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000578FERT 00000000</WA>
          </item>
          <item>
            <WA>000000000000000597HAWA 00000000</WA>
          </item>
          <item>
            <WA>000000000000000598VERP 00000000</WA>
          </item>
        </DATA>
        <FIELDS>
          <item>
            <FIELDNAME>MATNR</FIELDNAME>
            <OFFSET>000000</OFFSET>
            <LENGTH>000018</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Number</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>MTART</FIELDNAME>
            <OFFSET>000018</OFFSET>
            <LENGTH>000004</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Material Type</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>BSTME</FIELDNAME>
            <OFFSET>000022</OFFSET>
            <LENGTH>000003</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>XCHPF</FIELDNAME>
            <OFFSET>000025</OFFSET>
            <LENGTH>000001</LENGTH>
            <TYPE>C</TYPE>
            <FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
          </item>
          <item>
            <FIELDNAME>DATAB</FIELDNAME>
            <OFFSET>000026</OFFSET>
            <LENGTH>000008</LENGTH>
            <TYPE>D</TYPE>
            <FIELDTEXT>Valid-From Date</FIELDTEXT>
          </item>
        </FIELDS>
        <OPTIONS />
      </TABLES>
    </RFC_READ_TABLE>
    Add a repeater sourced on:
    SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
    Link your repeater output to a tracer with this:
    Repeater_0.Output{/item/WA}
    What you will see in each tracer message is a single line of data with all the fields contents concatenated together.  You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc.  Then you can parse out the data you are interested in.
    Give this a try and let me know how you succeeded.
    By the way, I could not find the scenario you referred to.  Can you post a link?
    Regards,
    Mike
    Edited by: Michael Appleby on Jan 12, 2009 5:16 PM

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • Do you know of a standard tool to compare the fields of 2 database tables?

    do you know of a standard tool to compare the fields of 2 database tables? please note i dont want to compare data just the fields.
    ~Suresh

    Hi,
    I am not aware any standard tool but you can write custom report to use FM DDIF_FIELDINFO_GET to get fields information of SAP database table.
    Call the above FM twice in order to get field names for two different database tables. Then compare the results (table parameter DFIES_TAB) to find out the differences of field names.
    Hope this will help ...
    Regards,
    Ferry Lianto

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • How to Find the Data Type of the Field In a Database Table

    Hi Experts,
    I'm currently working on a program which needs to find out the data type of the given field in a database table. In addition to accessing DD03L directly, is there any other workaround such as function module to help me achieve this? It would be helpful if a demo example could be provided.
    Thanks a lot.

    Hi,
    Use this..
    DESCRIBE FIELD dobj  TYPE typ.
    write typ.
    type will contain the data type of the object.
    and check this thread also....
    Re: How to get datatype of fields in dynamic structures
    Cheers,
    Simha.
    Reward all the helpful answers..

Maybe you are looking for

  • How can I select the name I want displayed in messenger with multiple contacts?

    I have my wife's phone number in two phone book entries, one is her name, the other is under ICE which many emergency services use to contact your next of kin.  It stands for "In Case of Emergency" and since my wife has a different last name than me

  • DM1 list of problems after 1 year - bad network adapter, touchpad, and headphone jack

    I have a HP Pavilion DM1-3020 US laptop with Windows 7 64 bit Home Premium, 3 GB RAM. After completing a factory re-install, I still have the following issues, after purchasing this computer only a year ago: 1) The network adapter simply stopped work

  • Youtube audio keeps playing after I leave video page.

    Video and audio play just fine but when I backtrack or close tab the audio still plays. If i reload the tab the audio will stop but i've never had this issue before. I have the most current firefox downloaded and have even deleted and re-downloaded t

  • Import purchase order process

    hi all, wish you happy Christmas n early happy new year from my side.... i would like to know import po cycle... i am unable to find an detailed info related to this subject,so plz kindly help me out by sharing som

  • Progress indicator with currently loading images

    I want to add a progress indicator (indeterminate) that is governed by the completed loading of an image from a URL. Is there a way in JavaFX to tell whether or not an image has completed loading, which would be useful in controlling a progress indic