Is it possible to get the handle of a HTML UI element in JSPDynpage?

Hi Experts,
I am new to Portal Development and my current requirement is as follows:
User is provided an option to upload a file to KM from the JSP for which i used a HTMLB fileupload UI element. I was able to upload the file to the KM.
But the client wanted their specific theme for the Upload UI element to be set. The default Browse button was to be replaced by the custom image. We tried using CSS for setting the image as the background image, but failed doing it. We used the following code for achieving:
JSP Dynpage:
<hbj:fileUpload  id="docupload"                   
        maxLength="125000"                   
        size="50"   />
JQuery:
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var HTMLBElementIdSubmit = eval(func("<UI ID>"));
$("#"+HTMLBElementIdSubmit.id).removeClass("urUpld ");
$("#"+HTMLBElementIdSubmit.id).addClass("<custom class>");
We tried using standard file UI in HTML and we are successful in setting the background image as per the clients requirement using JQuery to replace the standard look using:
$("[type='file']").removeClass("urUpld");
    $("[type='file']").addClass("btngrey");
But we are now facing the problem in the controller where the following line is throwing an error as we are unable to get the handle for a standard HTML UI element.
com.sapportals.htmlb.FileUpload.FileUpload imageupload = (FileUpload) getComponentByName("<ID>");
Kindly let me know more if either of the 2 points below:
1. Is there an option to customize the standard HTMLB fileupload UI element as per our choice using Javascript / JQuery?
2. Is there a way to get the handle in Dynpage controller for HTML UI elements?
Regards,
Poojith MV

Hi Poojith
Not sure if this would solve your requirment but just in case might be helpful:
1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
[http://www.sapdesignguild.org/resources/htmlb_guidance/]
2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
Thanks
Deepak

Similar Messages

  • Get the handler for GUIBB Feeder class from Genil implementation class

    Hello,
    In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the feeder class get some information about the feeder, e.g. the value of the parameter.
    Thank you very much.
    Best regards,
    Shumin

    Hello,
    In BOL based GUIBB, the feeder class will call correspondence Genil implementation class, may I know if it is possible to get the handler or instance of the feeder class in the Genil implementation class, then we can call the method of the feeder class get some information about the feeder, e.g. the value of the parameter.
    Thank you very much.
    Best regards,
    Shumin

  • How to get the handle of the Validation Failure Message Popups.

    Hi,
    I'm using Jdev 11.1.2.0
    I have added validation rule(less than system date) and failuremessage("date should not after currentdate") on the date field in EO.
    when I enter greated than the sysdate in date field in page, I'm getting validation failure message in a popup with ok button. its working good.
    but when i click on the popup ok button, the focus should go the date field again and it is higlighted.
    So, how to get the handle of the popup's ok buton? and how to highlight the datefield after clicking the popup's ok button?
    Any suggestion would be appreciated.
    thank you.

    if i understood correclty means,
    i hope that, error popup is provided by framework.. how could be possible? to catch the error popup ok button.
    am not well aware of catching the error popup which is provide by framework..
    but i had answer for your part of the question,
    if the condition go off false means you force the cursor into date field. this is can be done using 'javascript'. unless using script you can't do that. ADF doesnt provide any force focusing feature.
    please google how to focus the field.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    http://lspatil25.blogspot.in/2012/04/adf-default-cursorfocus-to-input-field.html
    http://donatas.nicequestion.com/2012/04/component-to-set-initial-focus-in-adf.html

  • I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)

    I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)

    You would need the original installation disks or files for the Adobe software to get it onto your iMac, and having it on two computers may not be allowed by your university's licensing. Talk to whoever issued the MacBook.
    As to the music, just copy it over to the MacBook, either via Home Sharing, file sharing, or an external storage medium (hard drive, USB flash drive, etc.).
    Regards.

  • Is it possible to get the style, font and related info of a paragraph of a in design file and write it on the same in design file  on the  left side

    Is it possible to get the style, font and related info of a paragraph text  of a in design file and write  all the stuff on the same in design file  on the  left side with small fonts 
    as
    Lets  this is a text in in design file    :
    style : abc                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 12                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu
    style : xyz                      we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultur we are going to check the  condition  Agence Wallonne pour la    font 10                                  d'une Agricultu we are going to check the  condition  Agence Wallonne pour la Promotion d'une Agricultu

    Hi Poojith
    Not sure if this would solve your requirment but just in case might be helpful:
    1. We can mix up the HTML and HTMLB components in the JSP Page. However, can access only the HTMLB components in the controller. The following link refers to what customizations are offered by the HTMLB framework:
    [http://www.sapdesignguild.org/resources/htmlb_guidance/]
    2. Another option would be to use AbstractPortalComponents or a simple web app if that's feasible. (where custom UI themes, css and layout are more in control of the developers.)
    Thanks
    Deepak

  • HT1222 Is it possible to get the SSL fix without having to install ios7 (which I tried and hated) or jailbreaking the devices?

    I have a few ipads, iphones and ipod touches of various models, and all run iOS6 of various types (whatever they were running when I last updated them before iOS 7 came along and stopped me being able to get newer versions of 6).
    I tried iOS7 for a while but hated both the appearance and some of the things that changed.
    My ipods have updated to a new version of iOS6 with the SSL fix.
    I can't seem to get this option for the ipads or iphones.
    Is it possible to get the important SSL update for iOS 6 for iPhone5, iPad3, ipad4 and ipad mini (not retina) without having to go to iOS7?
    (It seems that I can get a fix by jailbreaking but I really don't want to do that if there's another option since I have no need for it otherwise.)
    Thanks a lot.

    Thanks, that's helpful. I expected that answer, since I read a load of stuff about Apple pushing people to get iOS 7 despite it having people who disliked it, but was hopeful it was not the case
    Some of the changes, like to calendar were just frustrating.
    Not a big problem though - just means that the next phone and tablet hardware update I get won't be apple.
    Thanks a lot for the swift and helpful replies.

  • Is it possible to get the information from the complete forms send to different email account

    When i have a paid account is it than possible to get the information from the different forms send to seperate emailaddresses.
    Who dont have a account from formscentral but just need the information directly in there own inboxes?
    Because we're looking for a good and simple way to make qoustion & complain forms. But these need to go to different people in the company.

    You can have notifications sent to multiple email addresses, but each will need to have a FormsCentral account.  They can be free accounts.  What you do is create your form and set up the email addresses that you want the information to go to to be Co-authors or Contributors.  The co-author/contributor accounts will then need to log into FormsCentral, go to the Options tab and check the email notifications checkbox. 
    I hope this helps.
    -Jeff

  • Is it possible to get the image from the i pad when mirroring via Apple TV to fill the screen instead of appearing as a screen within a screen?

    When mirroring, is it possible to get the image from the ipad to fill the screen on the TV instead of appearing as a screen within a screen?

    Welcome to the Apple Community.
    No, the iPad has an aspect ratio of 4:3, a TV has an aspect ratio of 16:9, to fit one into the other is impossible without distorting the picture. If your TV has a zoom feature, you may be able to use this to fill the screen a little more to your liking, but this will result in cropping top and bottom.

  • Is it possible to get the position of a charcter from a string ?

    Hi !
    Is it possible to get the position of a charcter from a string ?
    Example:
    @VAR contains the following text "ABCDEFGHIJKLM"
    I'am seaching for FGH, it start on pos. 6 en ends on pos 8.
    How can I get these numbers 6 and 8 ?
    So, I can use them in the MID(text,start,len) function.
    Thanks!

    Hi Sooraj,
    I'll explain more in detail:
    From a web-service I get a variable called @Spec.
    This variable contains the following:
    "MOTORTYPE[CR]D-QW1234[LF]PART[CR]1234-FRD-X[LF]"
    or
    "MOTORTYPE[CR]ABC[LF]PART[CR]E-435[LF]"
    I need the values behind MOTORTYPE[CR] and behind PART[CR]
    But you’ll see that the positions of these values are different each time.
    If there is a way to get the (start) position of "MOTORTYPE[CR]" or "PART[CR]" and the (end) position of the first "[LF]" behind that,
    then I could use the MID() function to get the correct values.
    The values will be displayed in a table view (between other fields).
    An ABAP-call/function won’t work . . . how should I invoke this within a table column/field object ? (system action ?)

  • Is it possible to get the balance sheet report by using profit center

    Dear Experts,
    could you please help me out regarding the following issue.
    business area wise we can get the balance sheet but i want to know is there any possibility to get the BS by using profit centers only for BS Items or can we assign biasness area as well as profit center in a single screen.

    I think you can use this report. S_ALR_87013336
    Regards
    Radha

  • How to get the handle of AM in custom co

    Hi All,
    I am extending a controller in that controller if I use the code
    OAApplicationModule am1 = pageContext.getApplicationModule(webBean);
    I will get the handle of the am which is attached to the region.
    But i want to get the handle of an AM which exists out side of the region i had imported the AMImpl
    and now please let know how can i get the handle of this AM in my extended CO(custom CO)
    Please reply with a piece of code.
    Thanks
    Ajay

    it gives the Root AM
    but i want to handle the Application module of an lov.
    I was trying with
    CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    But it is giving an class Cast exception as
    java.lang.ClassCastException: oracle.apps.csf.portal.task.server.CsfDebriefAMImpl
    at CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    Thanks
    Ajay

  • Data recovery, possible to get the file structure back as well?

    Hi Apple Smarties,
    I closed my laptop lid on my external LaCie drive without ejecting the drive first (smart one!). After that the external drive wouldn't mount. I've used Data Rescue 3 to recover all the files from the drive... however it's just lumping all the files into one big batch :-( ...anybody know if it's possible to get the files into the correct files structure they were at before the drive got corrupted?
    Assistance would be HUGELY appreciated.
    Many thanks
    Kind regards
    Doug

    Thank you Barry. Yes, Comcast is my mail provider. It is a POP account.
    Now, if you could point me in the right direction to do that re-build, I would be ever so grateful. I did use the "rebuild" button on the Mail tool bar for that box and it did not help. Perhaps there is something else I could do?
    As I mentioned, I am very new to the Mac world, and I get a little lost. Well, at age 73, I guess that's not hard to do! Been on Windows forever so lots of the terminology in Apple is quite different for me.
    Message was edited by: JanJones

  • Is it possible to get the total value for column and assign to other field

    hi,
    Is it possible to get the total value of particular column and assign that value to another field?
    How to do this?
    Thanks in advance,
    SAN

    Afridi,
    My extended controller class code:
    package xxhr.oracle.apps.per.selfservice.appraisals.webui;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.per.selfservice.appraisals.webui.OverviewPageCO;
    import oracle.jbo.Row;
    public class XXOverviewPageCO extends OverviewPageCO {
    public XXOverviewPageCO() {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("XXCalcAvgButton")!=null){
    throw new OAException("welcome",OAException.INFORMATION);
    //getSum(pageContext, webBean);
    private String getSum(OAPageContext pageContext, OAWebBean webBean) {
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject ratvo = (OAViewObject)am.findViewObject("CompetenceElementsVO");
    OAViewObject valuevo = (OAViewObject)am.findViewObject("PerRatingLevelsVO");
    Integer Sum = new Integer("0");
    int numofRows = ratvo.getRowCount();
    for (int x = 0; x < numofRows; x++) {
    Object Rating =
    ratvo.getRowAtRangeIndex(x).getAttribute("ProficiencyLevelId");
    if(Rating!=null) {
    int numofRowsforvalue = valuevo.getRowCount();
    for(int i=0;i<numofRowsforvalue;i++){
    if(valuevo.getRowAtRangeIndex(i).getAttribute("RatingLevelId").equals(Rating)){
    Object StepValue=valuevo.getRowAtRangeIndex(i).getAttribute("StepValue");
    Sum = new Integer(StepValue.toString()) + Sum;
    OAMessageStyledTextBean displayCompAvg=(OAMessageStyledTextBean)webBean.findChildRecursive("XXCompAvgText");
    displayCompAvg.setValue(pageContext,Sum);
    return null;
    But it is not affecting in the page.
    Can you please tell me what is the problem.

  • I have purchased a G3, because I am an apple fan. I want this a clean installation software provided. Only the link no longer works. Is there a possibility  to get the required software. I Preferably, the Dutch version, but if only the English it's okey

    I have purchased a G3, because I am an apple fan. I want this a clean installation software provided. Only the link no longer works. Is there a possibility  to get the required software. I Preferably, the Dutch version, but if only the English it's okey

    What model G3 is it? An iMac, a PowerMac, a MacBook, or a PowerBook? What is the processor (machine) speed?

  • I have just updated my 4s to IOS7. and now my battery discharge is significantly increase. With my Iphone fully charged, the battery run out within 6 hours without using the phone at all. Would it be possible to get the IOS 6.1.3 back to my 4S?

    I have just updated my 4s to IOS7. and now my battery discharge is significantly increase. With my Iphone fully charged, the battery run out within 6 hours without using the phone at all. Would it be possible to get the IOS 6.1.3 back to my 4S?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

Maybe you are looking for