Getting a value in a field through sequence

Hi,
I have created a sequence in db
Now for a field on UI i need to get the sequence number automatically
For this what do i need to do
Thanks,
Akash

ENTITYIMPL.JAVA
package model.entity;
import oracle.jbo.AttributeList;
import oracle.jbo.Key;
import oracle.jbo.domain.BlobDomain;
import oracle.jbo.domain.Date;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.EntityDefImpl;
import oracle.jbo.server.EntityImpl;
import oracle.jbo.server.TransactionEvent;
import oracle.jbo.server.SequenceImpl;
// --- File generated by Oracle ADF Business Components Design Time.
// --- Thu Mar 03 16:12:53 IST 2011
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
public class VleCustChaakriAddlInfoEOImpl extends EntityImpl {
private static VleCustChaakriAddlInfoEODefImpl mDefinitionObject;
* AttributesEnum: generated enum for identifying attributes and accessors. Do not modify.
public enum AttributesEnum {
VleCustomerId {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getVleCustomerId();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setVleCustomerId((Number)value);
VleCustChaakriAddlInfoId {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getVleCustChaakriAddlInfoId();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setVleCustChaakriAddlInfoId((Number)value);
BplFlag {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getBplFlag();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setBplFlag((String)value);
BplNo {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getBplNo();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setBplNo((Number)value);
SahajCourseCompletedFlag {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getSahajCourseCompletedFlag();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setSahajCourseCompletedFlag((String)value);
SahajCourseDtls {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getSahajCourseDtls();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setSahajCourseDtls((String)value);
OtherCertifications {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getOtherCertifications();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setOtherCertifications((String)value);
Experience {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getExperience();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setExperience((Number)value);
Languages {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getLanguages();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setLanguages((String)value);
WillingToRelocate {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getWillingToRelocate();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setWillingToRelocate((String)value);
PostAppliedFor {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getPostAppliedFor();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setPostAppliedFor((String)value);
Height {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getHeight();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setHeight((String)value);
Weight {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getWeight();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setWeight((String)value);
OtherPost {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getOtherPost();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setOtherPost((String)value);
Resume {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getResume();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setResume((BlobDomain)value);
CreatedBy {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getCreatedBy();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
CreatedDate {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getCreatedDate();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
LastModifiedBy {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getLastModifiedBy();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
LastModifiedDate {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getLastModifiedDate();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
VleCustAcctProfileEO {
public Object get(VleCustChaakriAddlInfoEOImpl obj) {
return obj.getVleCustAcctProfileEO();
public void put(VleCustChaakriAddlInfoEOImpl obj, Object value) {
obj.setVleCustAcctProfileEO((EntityImpl)value);
private static AttributesEnum[] vals = null;
private static int firstIndex = 0;
public abstract Object get(VleCustChaakriAddlInfoEOImpl object);
public abstract void put(VleCustChaakriAddlInfoEOImpl object,
Object value);
public int index() {
return AttributesEnum.firstIndex() + ordinal();
public static int firstIndex() {
return firstIndex;
public static int count() {
return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
public static AttributesEnum[] staticValues() {
if (vals == null) {
vals = AttributesEnum.values();
return vals;
public static final int VLECUSTOMERID = AttributesEnum.VleCustomerId.index();
public static final int VLECUSTCHAAKRIADDLINFOID = AttributesEnum.VleCustChaakriAddlInfoId.index();
public static final int BPLFLAG = AttributesEnum.BplFlag.index();
public static final int BPLNO = AttributesEnum.BplNo.index();
public static final int SAHAJCOURSECOMPLETEDFLAG = AttributesEnum.SahajCourseCompletedFlag.index();
public static final int SAHAJCOURSEDTLS = AttributesEnum.SahajCourseDtls.index();
public static final int OTHERCERTIFICATIONS = AttributesEnum.OtherCertifications.index();
public static final int EXPERIENCE = AttributesEnum.Experience.index();
public static final int LANGUAGES = AttributesEnum.Languages.index();
public static final int WILLINGTORELOCATE = AttributesEnum.WillingToRelocate.index();
public static final int POSTAPPLIEDFOR = AttributesEnum.PostAppliedFor.index();
public static final int HEIGHT = AttributesEnum.Height.index();
public static final int WEIGHT = AttributesEnum.Weight.index();
public static final int OTHERPOST = AttributesEnum.OtherPost.index();
public static final int RESUME = AttributesEnum.Resume.index();
public static final int CREATEDBY = AttributesEnum.CreatedBy.index();
public static final int CREATEDDATE = AttributesEnum.CreatedDate.index();
public static final int LASTMODIFIEDBY = AttributesEnum.LastModifiedBy.index();
public static final int LASTMODIFIEDDATE = AttributesEnum.LastModifiedDate.index();
public static final int VLECUSTACCTPROFILEEO = AttributesEnum.VleCustAcctProfileEO.index();
* This is the default constructor (do not remove).
public VleCustChaakriAddlInfoEOImpl() {
* @return the definition object for this instance class.
public static synchronized EntityDefImpl getDefinitionObject() {
if (mDefinitionObject == null) {
mDefinitionObject = (VleCustChaakriAddlInfoEODefImpl)EntityDefImpl.findDefObject("model.entity.VleCustChaakriAddlInfoEO");
return mDefinitionObject;
* Gets the attribute value for VleCustomerId, using the alias name VleCustomerId.
* @return the VleCustomerId
public Number getVleCustomerId() {
return (Number)getAttributeInternal(VLECUSTOMERID);
* Sets <code>value</code> as the attribute value for VleCustomerId.
* @param value value to set the VleCustomerId
public void setVleCustomerId(Number value) {
setAttributeInternal(VLECUSTOMERID, value);
* Gets the attribute value for VleCustChaakriAddlInfoId, using the alias name VleCustChaakriAddlInfoId.
* @return the VleCustChaakriAddlInfoId
public Number getVleCustChaakriAddlInfoId() {
return (Number)getAttributeInternal(VLECUSTCHAAKRIADDLINFOID);
* Sets <code>value</code> as the attribute value for VleCustChaakriAddlInfoId.
* @param value value to set the VleCustChaakriAddlInfoId
public void setVleCustChaakriAddlInfoId(Number value) {
setAttributeInternal(VLECUSTCHAAKRIADDLINFOID, value);
* Gets the attribute value for BplFlag, using the alias name BplFlag.
* @return the BplFlag
public String getBplFlag() {
return (String)getAttributeInternal(BPLFLAG);
* Sets <code>value</code> as the attribute value for BplFlag.
* @param value value to set the BplFlag
public void setBplFlag(String value) {
setAttributeInternal(BPLFLAG, value);
* Gets the attribute value for BplNo, using the alias name BplNo.
* @return the BplNo
public Number getBplNo() {
return (Number)getAttributeInternal(BPLNO);
* Sets <code>value</code> as the attribute value for BplNo.
* @param value value to set the BplNo
public void setBplNo(Number value) {
setAttributeInternal(BPLNO, value);
* Gets the attribute value for SahajCourseCompletedFlag, using the alias name SahajCourseCompletedFlag.
* @return the SahajCourseCompletedFlag
public String getSahajCourseCompletedFlag() {
return (String)getAttributeInternal(SAHAJCOURSECOMPLETEDFLAG);
* Sets <code>value</code> as the attribute value for SahajCourseCompletedFlag.
* @param value value to set the SahajCourseCompletedFlag
public void setSahajCourseCompletedFlag(String value) {
setAttributeInternal(SAHAJCOURSECOMPLETEDFLAG, value);
* Gets the attribute value for SahajCourseDtls, using the alias name SahajCourseDtls.
* @return the SahajCourseDtls
public String getSahajCourseDtls() {
return (String)getAttributeInternal(SAHAJCOURSEDTLS);
* Sets <code>value</code> as the attribute value for SahajCourseDtls.
* @param value value to set the SahajCourseDtls
public void setSahajCourseDtls(String value) {
setAttributeInternal(SAHAJCOURSEDTLS, value);
* Gets the attribute value for OtherCertifications, using the alias name OtherCertifications.
* @return the OtherCertifications
public String getOtherCertifications() {
return (String)getAttributeInternal(OTHERCERTIFICATIONS);
* Sets <code>value</code> as the attribute value for OtherCertifications.
* @param value value to set the OtherCertifications
public void setOtherCertifications(String value) {
setAttributeInternal(OTHERCERTIFICATIONS, value);
* Gets the attribute value for Experience, using the alias name Experience.
* @return the Experience
public Number getExperience() {
return (Number)getAttributeInternal(EXPERIENCE);
* Sets <code>value</code> as the attribute value for Experience.
* @param value value to set the Experience
public void setExperience(Number value) {
setAttributeInternal(EXPERIENCE, value);
* Gets the attribute value for Languages, using the alias name Languages.
* @return the Languages
public String getLanguages() {
return (String)getAttributeInternal(LANGUAGES);
* Sets <code>value</code> as the attribute value for Languages.
* @param value value to set the Languages
public void setLanguages(String value) {
setAttributeInternal(LANGUAGES, value);
* Gets the attribute value for WillingToRelocate, using the alias name WillingToRelocate.
* @return the WillingToRelocate
public String getWillingToRelocate() {
return (String)getAttributeInternal(WILLINGTORELOCATE);
* Sets <code>value</code> as the attribute value for WillingToRelocate.
* @param value value to set the WillingToRelocate
public void setWillingToRelocate(String value) {
setAttributeInternal(WILLINGTORELOCATE, value);
* Gets the attribute value for PostAppliedFor, using the alias name PostAppliedFor.
* @return the PostAppliedFor
public String getPostAppliedFor() {
return (String)getAttributeInternal(POSTAPPLIEDFOR);
* Sets <code>value</code> as the attribute value for PostAppliedFor.
* @param value value to set the PostAppliedFor
public void setPostAppliedFor(String value) {
setAttributeInternal(POSTAPPLIEDFOR, value);
* Gets the attribute value for Height, using the alias name Height.
* @return the Height
public String getHeight() {
return (String)getAttributeInternal(HEIGHT);
* Sets <code>value</code> as the attribute value for Height.
* @param value value to set the Height
public void setHeight(String value) {
setAttributeInternal(HEIGHT, value);
* Gets the attribute value for Weight, using the alias name Weight.
* @return the Weight
public String getWeight() {
return (String)getAttributeInternal(WEIGHT);
* Sets <code>value</code> as the attribute value for Weight.
* @param value value to set the Weight
public void setWeight(String value) {
setAttributeInternal(WEIGHT, value);
* Gets the attribute value for OtherPost, using the alias name OtherPost.
* @return the OtherPost
public String getOtherPost() {
return (String)getAttributeInternal(OTHERPOST);
* Sets <code>value</code> as the attribute value for OtherPost.
* @param value value to set the OtherPost
public void setOtherPost(String value) {
setAttributeInternal(OTHERPOST, value);
* Gets the attribute value for Resume, using the alias name Resume.
* @return the Resume
public BlobDomain getResume() {
return (BlobDomain)getAttributeInternal(RESUME);
* Sets <code>value</code> as the attribute value for Resume.
* @param value value to set the Resume
public void setResume(BlobDomain value) {
setAttributeInternal(RESUME, value);
* Gets the attribute value for CreatedBy, using the alias name CreatedBy.
* @return the CreatedBy
public String getCreatedBy() {
return (String)getAttributeInternal(CREATEDBY);
* Gets the attribute value for CreatedDate, using the alias name CreatedDate.
* @return the CreatedDate
public Date getCreatedDate() {
return (Date)getAttributeInternal(CREATEDDATE);
* Gets the attribute value for LastModifiedBy, using the alias name LastModifiedBy.
* @return the LastModifiedBy
public String getLastModifiedBy() {
return (String)getAttributeInternal(LASTMODIFIEDBY);
* Gets the attribute value for LastModifiedDate, using the alias name LastModifiedDate.
* @return the LastModifiedDate
public Date getLastModifiedDate() {
return (Date)getAttributeInternal(LASTMODIFIEDDATE);
* getAttrInvokeAccessor: generated method. Do not modify.
* @param index the index identifying the attribute
* @param attrDef the attribute
* @return the attribute value
* @throws Exception
protected Object getAttrInvokeAccessor(int index,
AttributeDefImpl attrDef) throws Exception {
if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
return super.getAttrInvokeAccessor(index, attrDef);
* setAttrInvokeAccessor: generated method. Do not modify.
* @param index the index identifying the attribute
* @param value the value to assign to the attribute
* @param attrDef the attribute
* @throws Exception
protected void setAttrInvokeAccessor(int index, Object value,
AttributeDefImpl attrDef) throws Exception {
if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
return;
super.setAttrInvokeAccessor(index, value, attrDef);
*protected Number nextVal(String s1) {*
SequenceImpl s = new SequenceImpl(s1, getDBTransaction());
return s.getSequenceNumber();
* @return the associated entity oracle.jbo.server.EntityImpl.
public EntityImpl getVleCustAcctProfileEO() {
return (EntityImpl)getAttributeInternal(VLECUSTACCTPROFILEEO);
* Sets <code>value</code> as the associated entity oracle.jbo.server.EntityImpl.
public void setVleCustAcctProfileEO(EntityImpl value) {
setAttributeInternal(VLECUSTACCTPROFILEEO, value);
* @param vleCustChaakriAddlInfoId key constituent
* @return a Key object based on given key constituents.
public static Key createPrimaryKey(Number vleCustChaakriAddlInfoId) {
return new Key(new Object[]{vleCustChaakriAddlInfoId});
* Add attribute defaulting logic in this method.
* @param attributeList list of attribute names/values to initialize the row
protected void create(AttributeList attributeList) {
super.create(attributeList);
* Add entity remove logic in this method.
public void remove() {
super.remove();
* Add locking logic here.
public void lock() {
super.lock();
* Custom DML update/insert/delete logic here.
* @param operation the operation type
* @param e the transaction event
protected void doDML(int operation, TransactionEvent e) {
super.doDML(operation, e);
}

Similar Messages

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • How to get the value of the field 'KOMP-NETWR' in Pur.

    Hello everyone,
    how do i get the value of the field 'KOMP-NETWR' in the purchase order.
    thanks
    Arnaud

    Hi,
    Try this code similarly for komp
    REFRESH i_komv.
    CLEAR i_komv.
    CALL FUNCTION 'PRICING_REFRESH_TX'.
    CALL FUNCTION 'REFRESH_TAX_TABLES'
    EXPORTING
      LIVERY        =
    LOOP AT i_ekpo INTO wa_ekpo.
      wa_taxcom-bukrs = wa_ekko-bukrs.
      wa_taxcom-budat = wa_ekko-bedat.
      wa_taxcom-bldat = wa_ekko-bedat.
      wa_taxcom-waers = wa_ekko-waers.
      wa_taxcom-hwaer = wa_ekko-waers.
      wa_taxcom-kposn = wa_ekpo-ebelp.
      wa_taxcom-mwskz = wa_ekpo-mwskz.
      wa_taxcom-wrbtr = wa_ekpo-netwr.
      wa_taxcom-xmwst = 'X'.
      wa_taxcom-lifnr = wa_ekko-lifnr.
      wa_taxcom-ekorg = wa_ekko-ekorg.
      wa_taxcom-matnr = wa_ekpo-matnr.
      wa_taxcom-werks = wa_ekpo-werks.
      wa_taxcom-matkl = wa_ekpo-matkl.
      wa_taxcom-meins = wa_ekpo-meins.
      wa_taxcom-mglme = wa_ekpo-menge.
      wa_taxcom-mtart = wa_ekpo-mtart.
      wa_taxcom-land1 = wa_ekko-lands.
      wa_taxcom-ebeln = wa_ekpo-ebeln.
      wa_taxcom-ebelp = wa_ekpo-ebelp.
      CALL FUNCTION 'CALCULATE_TAX_ITEM'
        EXPORTING
          i_taxcom                  = wa_taxcom
        IMPORTING
          e_taxcom                  = wa_taxcom
        TABLES
          t_xkomv                   = i_komv
        EXCEPTIONS
         mwskz_not_defined         = 1
         mwskz_not_found           = 2
         mwskz_not_valid           = 3
         steuerbetrag_falsch       = 4
         country_not_found         = 5
         OTHERS                    = 6
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    clear wa_taxcom.
    ENDLOOP.
    LOOP AT i_komv INTO wa_komv.
      CASE wa_komv-kschl.
    *EXCISE DUTY
        WHEN 'JMOP'.
          v_jmop = v_jmop + wa_komv-kwert.
    endcase.
    endloop.
    Hope this might be of some use.
    Regards,
    sirisha

  • How do i get the value  of that field

    in JSP i have a field like below..
    <input type="hidden" id="grpId<%=Index%>" value="<bean:write name='GrpList' property='groupId'/>"/>
    In Action class , how do i get the value of that field (i.e id) ?
    String value =reques.getparameter (//what ??);

    i dont want to change the jsp.
    concern is , as the name of the id is dynamic .....so can i get the value in the Action class ?
    is there any trick exists ?
    I will try not to change any jsp code but will do changes in Action class
    Message was edited by:
    Unknown_Citizen

  • How do I get the value of a field object programatically after loading a report

    I'm using CR 11.5 and VS2005 in a console application, there is no GUI. I have a report with a page header that has 3 field objects. These field objects, their values change for every record and I want to be able to capture the value of these field objects in code for further processing outside of CR. Is this possible?
    Thanks in advance!
    I should explain a little more, the information I'm trying to obtain is in the Page Header section of the main report. There are subreports. Basically what I'm trying to put together is a list of how many pages are part of each record, the number of pages fluctuates per records so I need to be able to cycle through. Any other suggestions?

    When accessing the fields on the report through the SDK you will only get what database field they are using for data.  The internal data collection that is used by the report can be gathered using the rowsetcontroller from the ReportClientDocument.

  • How to get a value of attribute/field From another Component/bol

    Hello
    I have to write some code in Component GS_CM/DocList.
    From 'GS_CM' I have to get a value of field attribute-STATUS_CURRENT
    From BT115QH_SLSQ/Details
    Context Node = BTSTATUSH
    Attributes = STATUS_CURRENT
    In order to check and enable some other functions.
    I know how to do it when I'm in the BT115QH_SLSQ/Details
    lr_status ?= typed_context->btstatush->collection_wrapper->get_current( ).
    lv_statush = lr_status->get_property_as_string( iv_attr_name = 'STATUS_CURRENT' ).
    But, in my Componenet GS_CM/DocList  the field  "BTSTATUSH->COLLECTION_WRAPPER->GET_CURRENT" is unknown. It is not contained in one of the specified tables nor is it defined .
    would be very grateful if you could help to solve this issue.
    Thanks In Advance
    Sima

    Hi Sima,
    then another short hint to the WD_USAGE_INITIALIZE.
    Go to the component workbench, open the component BT115QH_SLSQ. Go now to the component controller class, go to it's methods. You will see that in the coding of the Method WD_USAGE_INITIALIZE, on the class CL_BT115QH__BSPWDCOMPONEN_IMPL:
    WHEN 'CUGSCM' OR 'CUGSCM_DET'.
          CALL METHOD iv_usage->bind_context_node
            EXPORTING
              iv_controller_type  = cl_bsp_wd_controller=>co_type_custom
    "          iv_name             = 'ContentManagementCuCo'     "Custom Controller Name
              iv_name             = 'BT115QH_SLSQ/CUGSCMGenCuCo'     "Custom Controller Name
              iv_target_node_name = 'CMBO'      "Name of Node in this Custom Controller
              iv_node_2_bind      = 'CMBUSOBJ'. "Name of Node in used component GS_CM
          CALL METHOD iv_usage->bind_context_node
            EXPORTING
              iv_controller_type  = cl_bsp_wd_controller=>co_type_custom
              iv_name             = 'BT115QH_SLSQ/CUGSCMGenCuCo'"#EC NOTEXT
              iv_target_node_name = 'ATTRIBUTES'                "#EC NOTEXT
              iv_node_2_bind      = 'ATTRIBUTES'.               "#EC NOTEXT
    Now I checked the context on the component controller and it contains the statusH, the node which you want to use in the component GS_CM. So make sure to prepare the GS_CM component by adding the Status context, and afterwards just add the binding in the code I pointed out above.
    Best regards,
    Erika

  • Not able to get the values from screen field?

    hello
    i am using MIRO and there is a screen name withholding tax and from there i want to retreive the withholding tax code before saving so that i can do some validations on it but how can i retrieve the values.
    when i press f1 there it shows structure not the table and structure contains no value so please help me in this so that i can retreive that value during run time
    thank you

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • How to get the values of the fields inside pageFragment

    Hi All,
    I am working on Jdeveloper 11.1.1.5.
    I have a fragment "home.jsff", in that fragment i have two textboxes(txt1,txt2);
    Then i have created a bounded taskflow "myTF"and dragged the home.jsff inside it and used as a default activity.
    Now finally i have "final.jspx" , in which i have dragged and dropped the bounded taskflow "myTF" as a region.
    Scenario : - I have a button on final.jspx , and on click of that button i need to get the value of those two textboxes using bindings which is present in fragment .
    On Click of button,I am using this method of pageDef and i am able to get the values :-
    jsfUtils.resolveExpression("#{data.abc_homePageDef.txt1.inputValue}");
    but somehow it gives me null in some conditions.I don't know why it sometimes gives the value and why it doesn't.
    I have seen this video in which Frank has told about the API Mistakes : -
    http://download.oracle.com/otn_hosted_doc/classic_api_mistakes_part1/classic_api_mistakes_part1.html
    and i did the same mistake but what is the another approach .
    If i need to get the current value of txt1, then how can i get it??
    What is the best approach to get the values of the pageFragment attributes and how to use it ?
    Please suggest!!!
    Regards,
    Shah

    Hi Tulasi,
    As i have said that i am trying to get the values on the click of button(*not on page load*) situated on final.jspx page.
    On click of button i am using this code to get the values :-
    public String getValueTextBox()
    Object valueTXT= getBoundAttributeValue("txt1");
    logger.info("value is"+ valueTXT); *// It shows the value as null.*
    return null;
    public Object getBoundAttributeValue( String attributeName) {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindingContainer = bctx.findBindingContainer("abc_homePageDef");
    if (bindingContainer != null) {
    ControlBinding ctrlBinding = bindingContainer.getControlBinding(attributeName);
    if (ctrlBinding instanceof AttributeBinding) {
    return (AttributeBinding)ctrlBinding;
    return null;
    Please suggest!!!
    Regards,
    Shah

  • Urgent: How to get the Value of Search Field

    Hello All,
    I want to get the value of <b>'Search Fiel</b>d' in my HTML file.
    Please help with this.
    Regards
    Vaib

    Hi Vaibav,
    It should be under the Script tag.
    You can refer this link for details.
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/55074155bcf26fe10000000a1550b0/frameset.htm
    Please reward points if my suggestion helped you.
    Thanks and regards
    Deepa

  • Getting the value of a String through reflection

    I have a class with a member variable that is of type String. How can I retrieve this value through reflection?
    I have tried the following
    String x = (String) myclass.getClass().getField("myvar").get(new String());
    If I try this I get IllegalArguemtnException can not set java.lang.String field pkg.myclass to java.lang.String

    ajavauser wrote:
    I have a class with a member variable that is of type String. How can I retrieve this value through reflection?
    I have tried the following
    String x = (String) myclass.getClass().getField("myvar").get(new String());
    If I try this I get IllegalArguemtnException can not set java.lang.String field pkg.myclass to java.lang.StringThat error message probably comes from another piece of code?
    (Since it says "set" and you are calling "get")
    The argument to the get method is however wrong. The String class does not have an attribute named "myvar". The argument to get should be the instance that you want to read the "myvar" value from.
    kaj

  • Get the value in a field

    Hi,
    I have a variable in which some value will be there and that will change. I.e it cannot be fixed.
    For Ex g_var has 20 or 30 etc.
    I need to display my output starting that that value.
    How do I get his. I am sure I need to use field symbols.But am very poor in using field symbols. can some one help me please.
    Thanks,
    Kiran

    Hi Rob,
    Let me explain the complete scenario..
    Am using AFTER_LINE_OUTPUT & BEFORE_LINE_OUTPUT to handle my subtotals. So one of my write statements in after_line_output is the grand totals.
          WRITE: AT /    sy-vline,
                     2   text-092,
                     70  g_total_pr,
                     100 sy-vline.
    System automatically puts a ULINE as per the List/line size(which will varry some times) So, if I display sy-vline at 100th place, it doesn't complete the box completely. I get extra horizontal line. So I want to capture the line size and then display the sy-vline at that place.
    This is my req. Hope am clear in explaining now.
    Please suggest me any clues.
    Thanks,
    Kiran

  • Get maximum value in a field using SQL query

    Hi,
    I want to retrieve the row containing the maximum value for a particular field.
    select max(fieldname) from tablename
    How do I do this using database connectivity toolkit.
    Shiva

    Hello,
    I figured out the answer. It was sql syntax.
    Thanks for coming in here to help.
    I created another post earlier because I had a little different question that pertained to fetch.vi.  How do you get an array out from fetch.vi without creating error. I also made type an array also but it does not allow an array.
    Thanks for your help.
    By the way, how do I as the original poster get rid of a whole thread I created, especially if its a duplicate.

  • How to get selected-value of dropdown-field in alv ?

    Hello experts,
    I have a alv-table with dropdown-field.
    When I open the dropdown I am able to select another value.
    Now I use method ON_CLICK with  ON_CELL_ACTION, and when
    I change value in my alv, system jumps into this mehtod.
    But how do I get now the selected dropdown value in this method ?
    I use following code in comp-wdini in order to declare the dropdown:
    Dropdownfield
      DATA: lr_dp TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      DATA: lr_node TYPE REF TO if_wd_context_node_info.
      DATA: lt_valueset TYPE wdr_context_attr_value_list.
      DATA: ls_valueset TYPE wdr_context_attr_value.
      DATA : lr_nodeinfo TYPE REF TO if_wd_context_node_info.
      DATA  wa TYPE cdbc_tj30t.
      DATA: lr_drdn_by_index TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
      SELECT *   FROM cdbc_tj30t INTO wa WHERE stsma = 'CRMOPPOR' AND
        spras = 'DE'.
        ls_valueset-value = wa-estat. " actual values
        ls_valueset-text = wa-txt30. " text displaying on the dropdown
        APPEND ls_valueset TO lt_valueset.
      ENDSELECT.
      LOOP AT lt_columns INTO ls_column.
        CASE ls_column-id.
          WHEN 'CONCATSTATUSER'.
            CREATE OBJECT lr_drdn_by_index
              EXPORTING
                selected_key_fieldname = ls_column-id.
            lr_drdn_by_index->set_valueset_fieldname( 'VALUESET' ).
            lr_drdn_by_index->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
            ls_column-r_column->set_cell_editor( lr_drdn_by_index ).
         ENDCASE.
      ENDLOOP.
    In view-ini I fill the table which is bound to my alv-table:
    LOOP AT lt_list_opportunities INTO lstru_list_opportunities
          WHERE status = ls_opportunity_status-estat AND
         valid_to <= ls_input-bdate AND valid_from >= ls_input-vdate.
        ls_opportunities-valueset = lt_valueset.
        MOVE-CORRESPONDING lstru_list_opportunities TO ls_opportunities.
        APPEND   ls_opportunities TO ltt_list_opportunities.
      ENDLOOP.
      lo_nd_opportunities = wd_context->get_child_node( name =
      wd_this->wdctx_opportunities ).
      lo_nd_opportunities->bind_table( new_items = ltt_list_opportunities ).
    HOW can I now get the slected dropdown values in ON_CLICK with  ON_CELL_ACTION method ?
    Thanks for answers !!
    Gerd

    Hello Abap,
    when I have selected the value in the dropdown-box, then the event should start, and then I should have the
    selected values of the dropdown box.
    Hope you can help me !
    Gerd

  • Updating/setting multiple values in lookup field through powershell

    I'm trying to set multiple values to lookup column. I can get it to set one value but multiple values don't work
    see below
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
    $lookupvalue.LookupId = 1
    $lookupvalue.LookupId = 2
    $itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues
    $CMRSItems.Update()
    I was expecting the LookupID 1 and 2 to update but it doesn't. When i specify LookupId = 1 it works
    What am i doing wrong.
    Thanks in Advance

    Hi Patrick, 
    In your script above you're using the same object to set both ID's on. Setting the ID of $lookupvalue, then adding it to the lookupvaluecollection, before changing the ID value to 2, then adding that to the collection. 
    I wrote an article on setting fields using PowerShell, but it doesn't include multiple lookup values. It does contain multiple choice and taxonomy values though, which is a similar concept. It's here if you want to take a look: http://social.technet.microsoft.com/wiki/contents/articles/20831.sharepoint-a-complete-guide-to-getting-and-setting-fields-using-powershell.aspx
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • To get the value in a field based on lov selection of another field.......

    Hi all,
    I have a requirement where
    i need to select a LOV value
    and based on that value the field next to it should be generated......
    in brief suppose i have a field name EMPLOYEE NO as lov........
    as i select the employee number the field next to it assume EMPLOYEE NAME should be retrieved based on the employee number selected..
    hope i am clear
    waiting for ur responce.....
    DEV......

    Hi,
    Assuming you are having two fields on the page. One LOV for empID (ID: empIDV) and messageTextInput for emp Name (ID: empNameV)
    1) Create a VO for your LOV having a query like SELECT emp_num, emp_name FROM employees;
    2) Create region for LOV using table using wizard based on the VO created above (choose emp_num as messageStyledText and emp_name as formValue). Also make search allowed true for emp_num.
    3) Create a LOV map1:
    LOV region item: empId
    Return item: empIDV
    Criteria item: empIDV
    4) Create lovMap2:
    LOV region item: empName
    Return item: empNameV
    Also try to implement dependent LOVs : http://sushantsharmaa.blogspot.in/2012/12/10-dependent-lov-in-oaf.html
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • New System Can't Get Gnome3 Working

    I've been following the Wiki Beginers Guide for installing Gnome3 on a new system and for some reason now this is the 2nd time it's failed: I've installed: - xorg-server - xorg-xinit - xorg-utils - xorg-server-utils - dbus - ttf-dejavu - gnome - gdm

  • How do i open a VERY big file?

    I hope someone can help. I did some testing using a LeCroy LT342 in segment mode. Using the Labview driver i downloaded the data over GPIB and saved it to a spreadsheet file. Unfortunately it created very big files (ranging from 200MB to 600MB). I no

  • Nokia 2690 vs Nokia C2-03

    Well I have bought nokia c2-03 but after using it for few hours I was really get disappointed as when it is compared to nokia 2690 it lacks : There is no streaming support Text in the text field can't be either marked or cut, copy, paste there is no

  • Mac acting weird after download.

    I recently installed a plugin from a somewhat sketchy site and my mac has since been acting odd. On startup the finder bar did not appear for a few minutes (this has never happened before) and my Safari is running slower than usual. In addition, it's

  • Dashboard is messed up

    My Dashboard is messed up. All of the widgets I currently have on there are frozen. I can move them, but I can't use them. When I click "Manage Widgets" nothing shows up.