Code assist for custom tags

Hi everybody,
I'm working with Facelets and have just defined some custon tags (using
com.sun.facelets.tag.AbstractTagLibrary) which works just fine.
But how do I get content assist for those???
Do I have to create some tld-file?
Thanks in advance :-)
Tory

ok, now I'm confused.... I don't have a TLD file at all. I use the
com.sun.facelets.tag.AbstractTagLibrary
to define the new tags. (and that works fine). I thought I'll need a TLD file to get content assist...
So, any idea how I can get it for my custom tags (or is it impossible)
Or does anyone know how content assist works on standard tags?
Thanks in advance,
Tory
Edited by: tory77 on Aug 19, 2008 6:48 AM

Similar Messages

  • Cannot find CFML template for custom tag

    Why am I getting this error when my code looks like this?
    Cannot find CFML template for custom tag UPSPrice.
    ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name. If you are using per-applica
    <Cfif NOT form.shipzip IS "">
    <CF_UPSPrice SERVICE="#form.upsshiptype#" FROM="#shopshipzip#" TO="#FORM.shipzip#" WEIGHT="#getshipweight.totwei#">
    <cfelse>
    <CF_UPSPrice SERVICE="#form.upsshiptype#" FROM="#shopshipzip#" TO="#FORM.zip#" WEIGHT="#getshipweight.totwei#">
    </cfif>

    UPSPrice.cfm file:
    <!---
    NAME:
    CF_UPSPrice
    DESCRIPTION:
    Cold Fusion custom tag obtain UPS shipping costs from ups.com.
    ATTRIBUTES:
    CALLTAG   - (optional) Electronic or basic call tag issued, valid options
                           are NONE BASIC or ELECTRONIC, defaults to NONE.
    COD       - (optional) Package is being sent C.O.D., valid options are YES
                           and NO, defaults to NO.
    FROM      - (required) Source (ship from) postal code.
    HANDLING  - (optional) Requires special handling (eg. - any article that
                           is not fully encased in an outside shipping container,
                           or any package that exceeds 60 inches in length).
    HAZARD    - (optional) Package contains hazardous material, valid options are YES
                           and NO, defaults to NO.
    HEIGHT    - (optional) Height (in inches) of oversized package.
    LENGTH    - (optional) Length (in inches) of oversized package.
    OVERSIZED - (optional) Package is oversized, valid options are YES and NO,
                           defaults to NO.
    RESPONSE  - (optional) Delivery confirmation service, valid options are
                           NONE BASIC SIGNATURE ALTERNATE or ALL, defaults to
                           NONE.
    SATDELIV  - (optional) Saturday delivery, valid options are YES and NO,
                           defaults to NO.
    SATPICKUP - (optional) Saturday pickup, valid options are YES and NO,
                           defaults to NO.
    SERVICE   - (required) UPS Service ID, valid service IDs are:
                           1DM    - Next Day Air Early AM
                           1DML   - Next Day Air Early AM Letter
                           1DA    - Next Day Air
                           1DAL   - Next Day Air Letter
                           1DP    - Next Day Air Saver
                           1DPL   - Next Day Air Saver Letter
                           2DM    - 2nd Day Air A.M.
                           2DA    - 2nd Day Air
                           2DML   - 2nd Day Air A.M. Letter
                           2DAL   - 2nd Day Air Letter
                           3DS    - 3 Day Select
                           GNDCOM - Ground Commercial
                           GNDRES - Ground Residential
    SHIPNOT1  - (optional) First ship notification, valid options are NONE
                           DOMESTIC or INTERNATIONAL, defaults to NONE.
    SHIPNOT2  - (optional) Second ship notification, valid options are NONE
                           DOMESTIC or INTERNATIONAL, defaults to NONE.
    TOCOUNTRY - (optional) Destination country code, defaults to US if not
                           specified. Visit the UPS site for a complete list of
                           valid two letter country codes.
    TO        - (required) Destination (ship to) postal code.
    VALUE     - (optional) Declared value for carrier liability, carrier assumes
                           $100 by default.
    VERBCONF  - (optional) Verbal confirmation of delivery, valid options are YES
                           and NO, defaults to NO.
    WEIGHT    - (required) Weight (in pounds) of package, fractions may be used.
    WIDTH     - (optional) Width (in inches) of oversized package.
    NOTES:
    This tag submits a shipping cost request to UPS for processing, and returns
    price and shipping information. CF_UPSPrice sets the following variables that
    you may use within your template after the call to CF_UPSPrice:
    UPS_BaseCharge     - Base shipping charge.
    UPS_Charge         - Total charge.
    UPS_Error          - Error message, if there was one.
    UPS_ErrorCode      - Error code, if there was one.
    UPS_FromCountry    - Source country code.
    UPS_FromPostal     - Source postal code.
    UPS_GuaranteedBy   - Guranteed delivery time.
    UPS_OptionalCharge - Total of optional charges.
    UPS_Service        - UPS service ID.
    UPS_Success        - YES if request was successful, NO if not.
    UPS_ToCountry      - Destination country code.
    UPS_ToPostal       - Destination postal code.
    UPS_ToZone         - Destination zone.
    UPS_Weight         - Billed weight.
    USAGE:
    To use just call <CF_UPSPrice> from within your Cold Fusion template,
    passing at least the required attributes TO FROM SERVICE and WEIGHT.
    EXAMPLES:
    Obtain price for next day package from NY to CA:
      <CF_UPSPrice SERVICE="1DA" FROM="11213" TO="90046" WEIGHT="1.5">
      <CFOUTPUT>Cost is #DollarFormat(UPS_Charge)#</CFOUTPUT>
    Sending a oversized package C.O.D. via second day air:
      <CF_UPSPrice SERVICE="2DA" FROM="11213" TO="90046"
       WEIGHT="1.5" HEIGHT="13" WIDTH="12" LENGTH="20" COD="Yes">
    Using form fields:
      <CF_UPSPrice SERVICE="#service#" FROM="#from#" TO="#to#" WEIGHT="#weight#">
    AUTHOR:
    Ben Forta ([email protected]) 10/14/97
    With help from Dave Beckstrom ([email protected])
    --->
    <!--- Initialize variables --->
    <CFSET proceed = "Yes">
    <CFSET error_message = "">
    <!--- Get UPS service --->
    <CFIF proceed>
    <CFIF IsDefined("ATTRIBUTES.service")>
      <CFSET product = ATTRIBUTES.service>
    <CFELSE>
      <CFSET proceed = "No">
      <CFSET error_message = "SERVICE must be specified!">
    </CFIF>
    </CFIF>
    <!--- Get destination postal code --->
    <CFIF proceed>
    <CFIF IsDefined("ATTRIBUTES.to")>
      <CFSET destPostal = ATTRIBUTES.to>
    <CFELSE>
      <CFSET proceed = "No">
      <CFSET error_message = "TO postal code must be specified!">
    </CFIF>
    </CFIF>
    <!--- Get source postal code --->
    <CFIF proceed>
    <CFIF IsDefined("ATTRIBUTES.from")>
      <CFSET origPostal = ATTRIBUTES.from>
    <CFELSE>
      <CFSET proceed = "No">
      <CFSET error_message = "FROM postal code must be specified!">
    </CFIF>
    </CFIF>
    <!--- Get weight --->
    <CFIF proceed>
    <CFIF IsDefined("ATTRIBUTES.weight")>
      <CFSET weight = ATTRIBUTES.weight>
    <CFELSE>
      <CFSET proceed = "No">
      <CFSET error_message = "WEIGHT postal code must be specified!">
    </CFIF>
    </CFIF>
    <!--- If all okay, process other options --->
    <CFIF proceed>
    <!--- Get destination country --->
    <CFSET destCountry = "US">
    <CFIF IsDefined("ATTRIBUTES.tocountry")>
      <CFSET destCountry = ATTRIBUTES.tocountry>
    </CFIF>
    <!--- Get oversized --->
    <CFSET oversized = "0">
    <CFIF IsDefined("ATTRIBUTES.oversized")>
      <CFIF ATTRIBUTES.oversized>
       <CFSET oversized = "1">
      </CFIF>
    </CFIF>
    <!--- Get COD --->
    <CFSET cod = "0">
    <CFIF IsDefined("ATTRIBUTES.cod")>
      <CFIF ATTRIBUTES.cod>
       <CFSET cod = "1">
      </CFIF>
    </CFIF>
    <!--- Get hazard --->
    <CFSET hazard = "0">
    <CFIF IsDefined("ATTRIBUTES.hazard")>
      <CFIF ATTRIBUTES.hazard>
       <CFSET hazard = "1">
      </CFIF>
    </CFIF>
    <!--- Get handling --->
    <CFSET handling = "0">
    <CFIF IsDefined("ATTRIBUTES.handling")>
      <CFIF ATTRIBUTES.handling>
       <CFSET handling = "1">
      </CFIF>
    </CFIF>
    <!--- Get calltag --->
    <CFSET calltag = "0">
    <CFIF IsDefined("ATTRIBUTES.calltag")>
      <CFIF ATTRIBUTES.calltag IS "BASIC">
       <CFSET calltag = "1">
      <CFELSEIF ATTRIBUTES.calltag IS "ELECTRONIC">
       <CFSET calltag = "2">
      </CFIF>
    </CFIF>
    <!--- Get Saturday delivery --->
    <CFSET saturdaydelivery = "0">
    <CFIF IsDefined("ATTRIBUTES.satdeliv")>
      <CFIF ATTRIBUTES.satdeliv>
       <CFSET saturdaydelivery = "1">
      </CFIF>
    </CFIF>
    <!--- Get Saturday pickup --->
    <CFSET saturdaypickup = "0">
    <CFIF IsDefined("ATTRIBUTES.satpickup")>
      <CFIF ATTRIBUTES.satpickup>
       <CFSET saturdaypickup = "1">
      </CFIF>
    </CFIF>
    <!--- Get response --->
    <CFSET response = "0">
    <CFIF IsDefined("ATTRIBUTES.response")>
      <CFIF ATTRIBUTES.response IS "BASIC">
       <CFSET response = "1">
      <CFELSEIF ATTRIBUTES.response IS "SIGNATURE">
       <CFSET response = "2">
      <CFELSEIF ATTRIBUTES.response IS "ALTERNATE">
       <CFSET response = "3">
      <CFELSEIF ATTRIBUTES.response IS "ALL">
       <CFSET response = "4">
      </CFIF>
    </CFIF>
    <!--- Get vcd --->
    <CFSET vcd = "0">
    <CFIF IsDefined("ATTRIBUTES.verbconf")>
      <CFIF ATTRIBUTES.verbconf>
       <CFSET vcd = "1">
      </CFIF>
    </CFIF>
    <!--- Get first ship notify --->
    <CFSET firstshipnotify = "0">
    <CFIF IsDefined("ATTRIBUTES.shipnot1")>
      <CFIF ATTRIBUTES.shipnot1 IS "DOMESTIC">
       <CFSET firstshipnotify = "1">
      <CFELSEIF ATTRIBUTES.shipnot1 IS "INTERNATIONAL">
       <CFSET firstshipnotify = "2">
      </CFIF>
    </CFIF>
    <!--- Get second ship notify --->
    <CFSET secondshipnotify = "0">
    <CFIF IsDefined("ATTRIBUTES.shipnot2")>
      <CFIF ATTRIBUTES.shipnot2 IS "DOMESTIC">
       <CFSET secondshipnotify = "1">
      <CFELSEIF ATTRIBUTES.shipnot2 IS "INTERNATIONAL">
       <CFSET secondshipnotify = "2">
      </CFIF>
    </CFIF>
    </CFIF> <!--- End process params --->
    <!--- If have all params, process request --->
    <CFIF proceed>
    <CFHTTP
      URL="http://www.ups.com/using/services/rave/qcostcgi.cgi"
      METHOD="POST"
    >
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="accept_UPS_license_agreement" VALUE="yes">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="10_action" VALUE="3">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="13_product" VALUE="#product#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="15_origPostal" VALUE="#origPostal#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="19_destPostal" VALUE="#destPostal#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="22_destCountry" VALUE="#destCountry#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="23_weight" VALUE="#weight#">
      <CFIF IsDefined("ATTRIBUTES.value")><CFHTTPPARAM TYPE="FORMFIELD" NAME="24_value" VALUE="#ATTRIBUTES.value#"></CFIF>
      <CFIF IsDefined("ATTRIBUTES.length")><CFHTTPPARAM TYPE="FORMFIELD" NAME="25_length" VALUE="#ATTRIBUTES.length#"></CFIF>
      <CFIF IsDefined("ATTRIBUTES.width")><CFHTTPPARAM TYPE="FORMFIELD" NAME="26_width" VALUE="#ATTRIBUTES.width#"></CFIF>
      <CFIF IsDefined("ATTRIBUTES.height")><CFHTTPPARAM TYPE="FORMFIELD" NAME="27_height" VALUE="#ATTRIBUTES.height#"></CFIF>
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="29_oversized" VALUE="#oversized#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="30_cod" VALUE="#cod#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="33_hazard" VALUE="#hazard#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="34_handling" VALUE="#handling#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="35_calltag" VALUE="#calltag#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="37_saturdaydelivery" VALUE="#saturdaydelivery#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="38_saturdaypickup" VALUE="#saturdaypickup#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="39_response" VALUE="#response#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="43_vcd" VALUE="#vcd#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="44_firstshipnotify" VALUE="#firstshipnotify#">
      <CFHTTPPARAM TYPE="FORMFIELD" NAME="45_secondshipnotify" VALUE="#firstshipnotify#">
    </CFHTTP>
    <!--- Check if succeeded --->
    <CFIF ListFirst(CFHTTP.FileContent, "%") IS "UPSOnLine3">
      <!--- Success, set variables --->
      <CFSET CALLER.UPS_Success = "Yes">
      <CFSET CALLER.UPS_Service = ListGetAt(CFHTTP.FileContent, 2, "%")>
      <CFSET CALLER.UPS_FromPostal = ListGetAt(CFHTTP.FileContent, 3, "%")>
      <CFSET CALLER.UPS_FromCountry = ListGetAt(CFHTTP.FileContent, 4, "%")>
      <CFSET CALLER.UPS_ToPostal = ListGetAt(CFHTTP.FileContent, 5, "%")>
      <CFSET CALLER.UPS_ToCountry = ListGetAt(CFHTTP.FileContent, 6, "%")>
      <CFSET CALLER.UPS_ToZone = ListGetAt(CFHTTP.FileContent, 7, "%")>
      <CFSET CALLER.UPS_Weight = ListGetAt(CFHTTP.FileContent, 8, "%")>
      <CFSET CALLER.UPS_BaseCharge = ListGetAt(CFHTTP.FileContent, 9, "%")>
      <CFSET CALLER.UPS_OptionalCharge = ListGetAt(CFHTTP.FileContent, 10, "%")>
      <CFSET CALLER.UPS_Charge = ListGetAt(CFHTTP.FileContent, 11, "%")>
      <CFSET CALLER.UPS_GuaranteedBy = ListGetAt(CFHTTP.FileContent, 12, "%")>
      <CFSET CALLER.UPS_Error = "">
      <CFSET CALLER.UPS_ErrorCode = "">
    <CFELSE>
      <!--- Failed, set variables and error message --->
      <CFSET CALLER.UPS_Success = "No">
      <CFSET CALLER.UPS_Service = "">
      <CFSET CALLER.UPS_FromPostal = "">
      <CFSET CALLER.UPS_FromCountry = "">
      <CFSET CALLER.UPS_ToPostal = "">
      <CFSET CALLER.UPS_ToCountry = "">
      <CFSET CALLER.UPS_ToZone = "">
      <CFSET CALLER.UPS_Weight = "">
      <CFSET CALLER.UPS_BaseCharge = "">
      <CFSET CALLER.UPS_OptionalCharge = "">
      <CFSET CALLER.UPS_Charge = "">
      <CFSET CALLER.UPS_GuaranteedBy = "">
      <CFSET CALLER.UPS_Error = ListGetAt(CFHTTP.FileContent, 2, "%")>
      <CFSET CALLER.UPS_ErrorCode = ListGetAt(CFHTTP.FileContent, 3, "%")>
    </CFIF>
    <CFELSE>
    <!--- Failed, display error message, and abort --->
    <CFOUTPUT><H1>Error: #error_message#</H1></CFOUTPUT>
    <CFABORT>
    </CFIF>

  • Content assist for Trinidad tags in RAD

    I am using RAD 7.0.0.1 and using trinidad tags in JSF pages having .jspx extension. I am not able to get content assist for trinidad tags using cntrl+space. Can anybody help me in resolving this?
    Thanks in advance

    great, that looks really good and useful!
    -Henrik
    Am 31.07.2015 um 15:19 schrieb Juergen Haug:
    > Hi all,
    >
    > there is a new improved version of the content assist in the action code editor. It provides intuitive completion proposals for chained expressions of model elements. With that you can easily write expression for many actions like sending messages, invoking operations or accessing data attributes. As before, these expression get automatically translated to target code during generation. In addition, the proposals are annoted with type information, so that you can safely embed them in your target detail code.
    >
    >

  • How to enable the code assist for annotation

    Hello
    i downloaded and installed netbeans 6.7.1, i found it doesnot support code assist for annotation in java Editor, when i write down @, nothing display,who can tell me how to enable this function, when i write @, the pop up menu show me the possible annotations.
    thanks

    Karandeep,
    You can apply the restriction using below approach in OAF.
    Step 1 - Modify your VO as below.
    SELECT hrorg.organization_id, hrorg.name, hrorg.date_from, hrorg.date_to
    FROM hr_all_organization_units hrorg, pa_all_organizations paorg
    WHERE paorg.organization_id = hrorg.organization_id
    AND paorg.pa_org_use_type = 'EXPENDITURES'
    AND NVL (paorg.inactive_date, SYSDATE) >= SYSDATE
    AND nvl(paorg.org_id, -1) = :1
    AND TRUNC(SYSDATE) BETWEEN hrorg.date_from and NVL(hrorg.date_to,TRUNC(SYSDATE))
    ORDER BY UPPER(NAME).
    Step 2 - Get the org_id using
    String orgId = pageContext.getOrgId();
    OAViewObject vo = getTestVO1();
    vo.setWhereClauseParam(0,orgId);
    vo.executeQuery();Regards,
    Gyan

  • Cannot find CFML template for custom tag SELECTDATE

    Hi,
    I am not a ColdFusion developer and just moved a site from one server to another. That site is developed by someone else not me and I just moved the site to ColdFusion server. Site is working fine except a few pages where I am getting this error:
    Cannot find CFML template for custom tag SELECTDATE
    I read a little bit about custom tags. These are files that needs to be placed in a certain folder from where ColdFusion reads them.
    So that means I will need to ask the developer who developed this site to provide me with this custom tag file, which when I will place in appropriate folder, this page will start working? And without that file I cannot do anything about it?
    Thanks

    As Dan says, they're just CFM files.  Usually one can identify them as follows:
    * they're in the same directory as a file calling <cf_somefilename[...]>, wherein there is a somefilename.cfm is the name of the file
    * they're in one of the directories set as custom tag directories (in CFAdmin, or Application.cfc)
    * they have references to "thistag" or the attributes scope in them (although the latter can produce false positives on Fusebox sites)
    By the sounds of it, your issue is - like I said before - you haven't got your custom tag dirs set up in CFAdmin (or in Application.cfc, which I didn't mention before).  Investigate that.
    Adam

  • Include external html trough code in a custom tag

    Hi,
    I have a custom tag. The component class (say MyComponentUI) for my custom component extends UIComponentBase.
    I want to include an external html page, which url is formed using the content of an attribute of my tag (for example, the "value" attribute), through the MyComponentUI code.
    Can anyone give me some help ?
    Pietro

    That's actually the same result as you get with a normal include - The method I suggested is a dynamic include similar to the <jsp:include> tag, not the <%@ include %> tag.
    When you use a dynamic include, the included page is compiled and 'invoked' as serarately, and the result is what gets included, not the actual source. To get the behaviour you want would require an include directive (the <%@ include %> tag) which I don't think has an equivalence you can use inside a custom tag.
    What you can do is pass attributes from the tag class like this:
    pageContext.setAttribute(<name>, <object>, pageContext.REQUEST_SCOPE);
    and then remove them after the include using pageContext.removeAttribute.
    I'm not certain, but this implies that if you declare your variables with a <jsp:usebean> tag with request scope, instead of normal Java variable declarations, you should be able to use them in the page included by the custom tag.
    *** in the jsp ***
    <jsp:useBean id="myVar" scope="request" class="java.lang.String" />
    <% myVar = "Something"; %>
    // Now call the tag which uses the pageContext.include() mehtod.
    *** end ***
    *** in the include ***
    <jsp:useBean id="myVar" scope="request" class="java.lang.String" />
    <%= myVar + " something else" %>
    *** end ***
    Let me know if it works.

  • Applescript for custom tags

    hi there,
    has anyone had any experience with applescript and custom tags? i've gotten so far as to display the name of custom tags i've added, but i want to find a way to batch erase some i've added on several thousand pictures. any hints?
    j
    here's a snippet of the code i'm trying out. there must be some way to delete the tag, but i'm not fluent in applescript. the logic of the script has been copied off another one i've found somewhere on the net. the author is Steven Banick (http://banick.com)
    repeat with countOfPhotos from 1 to the count of selectedPhotos
    -- Get the photo's properties for the operation
    set currentPhoto to item countOfPhotos of selectedPhotos
    tell currentPhoto
    -- Reset the variables in the loop
    set the photoCustomTags to ""
    -- Retrieve the Photo Metadata
    set the photoCustomTags to the name of custom tags
    -- Scan the individual custom Tags from the assigned Custom tags
    repeat with currentcustomTag from 1 to count of photoCustomTags
    set currentcustomTag to item currentcustomTag of photoCustomTags
    -- ver quais são as custom tags e tentar apagá-las
    if currentcustomTag = CustomTagName1 then
    -- display dialog currentcustomTag
    delete the item currentcustomTag

    I'm not sure if you can delete tags, but you can certainly empty them:
    tell application "Aperture"
    set selectedImages to the selection
    repeat with i from 1 to number of items in selectedImages
    set this_item to item i of selectedImages
    try
    set value of custom tag "Image ID" of this_item to ""
    end try
    end repeat
    end tell
    Just change "Image ID" to the name of your custom tag, and make sure that you only use it on the correct images...
    Ian

  • Modification assistant for customer reports

    Hi,
    How to enable modification assistant for the reports in customer namespace ?
    Regards,
    Rafal Olechowski

    sorry for the late reply.
    No You can not do it through Modifictaion Overview for Custom reports, unless and untill its an standard SAP program.
    Might be there any standard functions which could help you, but am not sure of this.
    And as i said the version management and the version comparision can help you know the changes done in any report. in the version management only you can find the version comparision based on the requests.
    Regards
    Gopi

  • Company code data for custom replicated from CRM

    Hi,
    I am trying to default the company code data for a BP replicated from CRM as a customer but it is not working.
    How should this be done in CRM 7.0, ECC 6.
    I am have so far copied function module SAMPLE_INTERFACE_DE_BALE, added my own code and created the entry in table TBE34. But it doesn't work.  Is this correct or is there another method?
    regards
    Tim

    This is what we did wen we had a similar requirement...
    u2022     In the ECC create a FM u2018Z_USER_EXIT_BEFORE_SEND_TO_MWu2019.
    u2022     Register this function module for the CRM0_200 exit user in the ERP system.
    a.     Use Transaction SM30, table TPS34, to go to the maintenance of the modules. Here, enter the Z_USER_EXIT_BEFORE_SEND_TO_MWu2019 module for the CRM0_200 process.
    b.     Use Transaction SM30, table TBE24, to check whether the application you have selected (Product column in TPS34) is active.
    u2022     The FM will be triggered whenever a Sold gets successfully replicated from CRM to ECC system.
    a.     Check for the Object Class u2018BUPAu2019.
    b.     Check for the Object Name u2018CUSTOMER_MAINu2019.
    c.     If yes copy the BP GUID from the BAPIMTCS Structure.
    d.     Now call rfc FM ZLSD_BP_EXTRACT_FRM_GUID in CRM to get the BP number and Acc Group for the respective GUID.
    e.     Check if the ACC GRP is Z001.
    f.     If yes make a BDC call to transaction FD01 and update the Company Code data u2026. Recon. Account     110000
                                 Terms Of Payment ZN30       
                               for the  respective BP
    Note: we have recorded a BDC program to create the company code data.
    regards,
    Sameer Ahamad

  • API for custom Tag

    Hello,
    I'm working with the custom tag.I have written java file but when i'm compiling my file using JDK1.3 it's giving me error that can't resolve symbol.Even though i've put servlet.jar in my classpath.Can anybody tell me what are the API's required to compile custom tag and where i can get it.

    Put Sevlet.jar in C:\jdk1.3.1_05\jre\lib\ext

  • "Newbie Unable to load class for custom tag"

    I have recently written a custom tag but I have been unable to implement it in a JSP because the server is unable to load the .class file. Below I have supplied the files that contribute to make up the custom tag, aswell as the JSP file used to implement it.
    genericDBConnect.java
    stored in C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF\classes\jsp\tags\dbase
    package jsp.tags.dbase;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class genericDBConnect extends BodyTagSupport
    private String odbcDriver;
    private String dataSource;
    public void setOdbcDriver(String driver)
    odbcDriver = driver;
    public void setDataSource(String source)
    dataSource = source;
    public int doStartTag() throws JspException
    return EVAL_BODY_INCLUDE;
    public int doEndTag() throws JspException
    try{
    pageContext.getOut().print("This is the value of odbcDriver = " + odbcDriver + "and dataSource = " + dataSource);
         catch(Exception ioException)
         System.err.println("Exception thrown in genericDBConnect.doEndTag():");
         System.err.println(ioException);
         throw new JspException(ioException);
    return EVAL_PAGE;
    WEB.XML
    Stored in: C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
    <!DOCTYPE web-app PUBLIC
         "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
         "http://java.sun.com/dtd/web-app_2_2.dtd">
    <web-app>
         <display-name>Generic database Connector</display-name>
         <description>
         Connecting to a database using dataSource and OdbcDriver
              Attributes as well as sending a query to the database;
         </description>
         <taglib>
              <taglib-uri>/genericdbconnecttags.tld</taglib-uri>
              <taglib-location>/WEB-INF/genericdbconnecttags.tld</taglib-location>
         </taglib>
    </web-app>     
    genericdbconnecttags.tld
    C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
         "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>genericDBConnect</short-name>
         <tag>
              <name>dbconnect</name>
              <tag-class>jsp.tags.dbase.genericDBConnect</tag-class>          
              <attribute>
                   <name>dataSource</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
                   <name>odbcDriver</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
         </attribute>
         </tag>
    </taglib>
    DBTester.jsp
    Stored in:C:\jakarta-tomcat-3.2.3\webapps\exper
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Generic dataBase Connection</title>
    </head>
    <body>
    <%@ taglib uri="/genericdbconnecttags.tld" prefix="database" %>
    <database:dbconnect odbcDriver="sun.my.tag.lib" dataSource="hello">
    this is the the begining of the end of life as we know it
    </database:dbconnect>
    </body>
    </html>
    And this is the error I get:
    Error: 500
    Location: /exper/DBtester.jsp
    Internal Servlet Error:
    org.apache.jasper.compiler.CompileException: C:\jakarta-tomcat-3.2.3\webapps\exper\DBtester.jsp(8,0) Unable to load class null
         at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:129)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:759)
         at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
         at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:909)
         at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
         at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Please if you can help I will be very grateful

    I was searching about this problem and I found here.
    I'm using WSAD 4.0.3 and I'm making my first custom tag.
    Here is my files:
    ======================= CLASS ======================
    package sas.ric.tags.teste;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.PageContext;
    import java.io.IOException;
    public class ClTagHello extends TagSupport {
    public int doStartTag() {
         try {
              JspWriter out = pageContext.getOut();
              out.println("HELLO!");
         } catch (IOException ioe) {
              System.out.println("Erro in ClTagHello: " + ioe);
    return (SKIP_BODY);
    ================= TLD ==========================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>ric</short-name>
         <uri></uri>
         <info>Exemple</info>
         <tag>
              <name>hello</name>
              <tag-class>sas.ric.tags.teste.ClTagHello</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>
    ======================== JSP =====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    </HEAD>
    <%@ taglib uri="WEB-INF/app-tlds/tag-hello.tld" prefix="ric" %>
    <BODY>
    <ric:hello />
    </BODY>
    </HTML>
    ==========================================================
    Please, help me.
    Occur this error "JSPG0058E: Unable to load class null"
    Thank's

  • ABAP code Help for Customer Exit variable

    Hello All,
    Can anyone provide ABAP code for a customer exit variable please?
    Requirement:
    0CALYEAR(InfoObject) - ZCALCYR (Variable) <b>Calender year with default value actual year</b>.
    Proiperties of variable: single value,mandatory,ready for input,can'be changed in query navigation.
    i have read some docs on customet exit variables which i got from SDN but i found it's difficult for me to get this as i am not that good in ABAP.
    Thanks,
    Rakesh.

    Hi,
       Just check the below code. You just need to make slight changes I believe. Hope this helps you.
    In CMOD………..
    Sample code
      INCLUDE LXRSRF01                                                   *
    data: l_s_range type rsr_s_rangesid.
    case i_vnam.
      when 'ZCALCYR'.
        if i_step = 1.
         l_s_range-low = sy-datum+0(4).
            append l_s_range to e_t_range.
        Endif.
    Endcase.

  • Transaction codes/path for Customer(Sold To) and related associations

    Hello all,
    being very new to this, can any one tell me the transactions/path to add the records in tables
    KNVS-Customer master shipping data
    KNVP-Customer master partner functions(Sold to Ship to association)
    KNVV-Customer master sales data
    TVKBT-Organizational Unit: Sales Offices: Texts
    TVKWZ-Org.Unit: Allowed Plants per Sales Organization
    T001L-Storage Locations
    T001W-Plants/Branches
    Is it possible to add new records to these table through trancations or is there any other way?
    Please help me out.
    Regards,
    Sandip

    Hi,
    Welcome to SDN forum
    KNVV, KNVS, KNVP are maintained in the Transaction code in XD01
    TVKBT  this is assigning Text in OUTPUTS for sales office
    Path: SPRO->SD->BASIC FUNCTIONS>OUTPUT DETERMINATION>ASSIGN FORM TEXTS-->
    TVKWZ:   OVX6
    T001L:  OX09
    T001W: OX10.
    thanks,
    santosh

  • Code reusabilty for custom F4 helps

    Hi Folks,
    i want to reuse my code for F4 functionality like
    im having two characterstics selections screen fields,
    im creating custom f4 helps since both are same
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CHNAM1-LOW.
      PERFORM CHAR_F4_HELP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CHNAM2-LOW.
      PERFORM CHAR_F4_HELP.
    FORM CHAR_F4_HELP .
    DATA: BEGIN OF T_KLAH OCCURS 0,
         CLINT TYPE CLINT,
          END OF T_KLAH.
      DATA: BEGIN OF T_KSML OCCURS 0,
            IMERK TYPE ATINN,
            END OF T_KSML.
    DATA: BEGIN OF T_CABN OCCURS 0,
            ATINN TYPE ATINN,
            ATNAM TYPE ATNAM,
            END OF T_CABN.
      DATA: BEGIN OF T_CABNT OCCURS 0,
           ATINN TYPE ATINN,
           SPRAS TYPE SPRAS,
           ATBEZ TYPE ATBEZ,
           END OF T_CABNT.
      DATA: BEGIN OF T_FINAL OCCURS 0,
            ATNAM TYPE ATNAM,
            ATBEZ TYPE ATBEZ,
              END OF T_FINAL.
      DATA: T_RETURN3 LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,
            V_NEW TYPE P.
            w_cabns type atinn .
      IF NOT S_CLASS1 IS INITIAL.
        SELECT CLINT FROM KLAH INTO TABLE T_KLAH
                          WHERE KLART = '011' AND
                            CLASS =   S_CLASS1-LOW .
        IF NOT T_KLAH[] IS INITIAL.
          SELECT IMERK FROM KSML INTO TABLE T_KSML
            FOR ALL ENTRIES IN T_KLAH
                       WHERE CLINT = T_KLAH-CLINT.
        ENDIF.
        IF NOT T_KSML[] IS INITIAL.
          SELECT ATINN ATNAM FROM CABN INTO TABLE T_CABN
             FOR ALL ENTRIES IN T_KSML
                 WHERE ATINN = T_KSML-IMERK.
          SELECT ATINN SPRAS ATBEZ FROM CABNT INTO TABLE T_CABNT
             FOR ALL ENTRIES IN T_KSML
                       WHERE ATINN = T_KSML-IMERK.
        ENDIF.
        REFRESH T_FINAL[].
        LOOP AT T_CABN.
          T_FINAL-ATNAM = T_CABN-ATNAM.
          READ TABLE T_CABNT WITH KEY ATINN = T_CABN-ATINN  SPRAS = 'E'.
          T_FINAL-ATBEZ = T_CABNT-ATBEZ.
          APPEND T_FINAL.
          CLEAR T_FINAL.
        ENDLOOP.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            RETFIELD        = 'ATNAM'
            DYNPPROG        = SY-CPROG
            DYNPNR          = SY-DYNNR
            DYNPROFIELD     = 'S_CHNAM1-LOW'
            VALUE_ORG       = 'S'
          TABLES
            VALUE_TAB       = T_FINAL
            RETURN_TAB      = T_RETURN3
          EXCEPTIONS
            PARAMETER_ERROR = 1
            NO_VALUES_FOUND = 2
            OTHERS          = 3.
        IF SY-SUBRC = 0.
          READ TABLE T_RETURN3 WITH KEY RETFIELD = 'S_CHNAM1-LOW'.
          IF SY-SUBRC EQ 0.
            S_CHNAM1-LOW = T_RETURN3-FIELDVAL.
            SELECT ATINN FROM CABN INTO W_CABNS
                   WHERE ATNAM = T_RETURN3-FIELDVAL.
            ENDSELECT.
          ENDIF.
        ENDIF.
      ENDIF.
    i want to use the same for my s_chnam2 , s_cham3 fields etc.,
    please give some inputs.
    Thanks,
    Shwetha

    FORM get_f4cvalues  USING    p_ifield
                      CHANGING   p_ofield
                                 p_table TYPE ANY TABLE.
      TYPES : BEGIN OF t_cabnt,
               atinn TYPE atinn,
               spras TYPE spras,
               atbez TYPE atbez,
              END OF t_cabnt.
      TYPES : BEGIN OF t_cabn,
               atinn TYPE atinn,
               atnam TYPE atnam,
             END OF t_cabn.
      TYPES: BEGIN OF t_final,
              atnam TYPE atnam,
              atbez TYPE atbez,
            END OF t_final.
      DATA : lt_cabnt  TYPE STANDARD TABLE OF t_cabnt,
             lt_cabn   TYPE STANDARD TABLE OF t_cabn,
             lt_final  TYPE STANDARD TABLE OF t_final,
             lwa_cabnt TYPE t_cabnt,
             lwa_cabn  TYPE t_cabn,
             lwa_final TYPE t_final,
             lv_svalue TYPE dynpread-fieldvalue..
      DATA :  lt_return      TYPE STANDARD TABLE OF ddshretval, " Selected
              lwa_return     TYPE ddshretval.                  " Workarea
      PERFORM get_screen_values USING    p_ifield
                                CHANGING lv_svalue.
      IF v_fieldvalue <> lv_svalue.
        CLEAR : v_fieldvalue.
        v_fieldvalue = lv_svalue.
        CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
          EXPORTING
            input  = lv_svalue
          IMPORTING
            output = lv_svalue.
        SELECT atinn
               atnam FROM cabn
                     INTO TABLE lt_cabn
                     WHERE atinn = lv_svalue.
        SELECT atinn
               spras
               atbez FROM cabnt
                     INTO TABLE lt_cabnt
                     WHERE atinn = lv_svalue.
        REFRESH : lt_final, p_table.
        LOOP AT lt_cabn INTO lwa_cabn.
          lwa_final-atnam = lwa_cabn-atnam.
          READ TABLE lt_cabnt INTO lwa_cabnt WITH KEY
                                                atinn = lwa_cabn-atinn
                                                spras = 'E'.
          IF sy-subrc = 0.
            lwa_final-atbez = lwa_cabnt-atbez.
          ENDIF.
          APPEND lwa_final TO lt_final.
          CLEAR : lwa_final, lwa_cabn, lwa_cabnt.
        ENDLOOP.
        SORT lt_final.
        p_table[] = lt_final[].
      ENDIF.
      lt_final[] = p_table[].
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ATNAM'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          window_title    = 'Select Size'
          display         = ' '
          value_org       = 'S'
        TABLES
          value_tab       = lt_final
          return_tab      = lt_return
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    *    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    * Check whether LT_RETURN is blank
      CHECK NOT lt_return[] IS INITIAL.
      READ TABLE lt_return INTO lwa_return INDEX 1.
      CALL FUNCTION 'CONVERSION_EXIT_ATINN_OUTPUT'
        EXPORTING
          input  = lwa_return-fieldval
        IMPORTING
          output = p_ofield.
      REFRESH : lt_return.
      CLEAR : lwa_return.
    ENDFORM.                    " GET_F4CVALUES
    FORM get_screen_values  USING    p_ifield
                            CHANGING p_svalue.
      DATA : lt_dynpread   TYPE  STANDARD TABLE OF dynpread,
             lwa_dynpread  TYPE dynpread,
             lv_repid      TYPE sy-repid.
      lwa_dynpread-fieldname = p_ifield.
      APPEND lwa_dynpread TO lt_dynpread.
      CLEAR lwa_dynpread.
      lv_repid = sy-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                         = lv_repid
          dynumb                         = '1000'
    *   TRANSLATE_TO_UPPER             = ' '
    *   REQUEST                        = ' '
    *   PERFORM_CONVERSION_EXITS       = ' '
    *   PERFORM_INPUT_CONVERSION       = ' '
    *   DETERMINE_LOOP_INDEX           = ' '
        TABLES
          dynpfields                     = lt_dynpread
       EXCEPTIONS
         invalid_abapworkarea           = 1
         invalid_dynprofield            = 2
         invalid_dynproname             = 3
         invalid_dynpronummer           = 4
         invalid_request                = 5
         no_fielddescription            = 6
         invalid_parameter              = 7
         undefind_error                 = 8
         double_conversion              = 9
         stepl_not_found                = 10
         OTHERS                         = 11
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE lt_dynpread INTO lwa_dynpread INDEX 1.
      IF sy-subrc = 0.
        p_svalue = lwa_dynpread-fieldvalue.
      ENDIF.
    ENDFORM.                    " GET_SCREEN_VALUES
    Thanks & Regards
    Bala Krishna

  • Code help for Custom extensuion in WAD for IF_BICS_CONS_WEBITEM_CUST_EXIT

    Hello Experts,
                          We have a requirement to display individual graphs for top 5 customers from over all TOP 5 performace Graph. I want to use the webitem Custom extension in WAD. I have seen some posts on this.
    Can anyone please help in writing code for the above requirement using the inteeface IF_BICS_CONS_WEBITEM_CUST_EXIT .
    I want to derive top 1 , 2 , 3, 4 and 5 form a single data provider. Please put some light on this.
    Regards,
    Shashi

    Hi,
    into your modify view,
    extract data you need in your search help in an itab (do it into a class do not perform select directly into modify view) and then bind it as value help to your WD element.
    Regards,
    Ivan

Maybe you are looking for