HTML_DB items

Hi :
In my Application i am using htmldb_item.text where htmldb_item.text gets generated dyanamically based on the project name here i am defining objects to this htmldb_item.text here objects are associated with projects
I need to know how to define ID for this item becouse based on the id value i compare this item in a query to generate other reports
please let me know how to do this
select
HTMLDB_ITEM.TEXT(3,obj.objects,1,2) "Project Objects"
from
projects pro,
objects obj
where
pro.id = obj.pro_id
thanks
sudhir

Hello Paul,
Your JavaScript function will not work properly because you try to pass a form item value to that function. But you are calling the function from a query.
Try the following:
First, change the URL from:
f?p=&APP_ID.:6:#APP_SESSION#::::P6_ID:#ID#
to:
javascript:callMyPopup('#ID#');
Second, change the link text from:
<img src="#IMAGE_PREFIX#...>
to:
Note
Third, change your JavaScript function:
function callMyPopup (qvalue) {
alert('value is ' + qvalue);
Regards,
Tom

Similar Messages

  • Name Attribute for ITEM

    Hi :
    I need a help in defining the name attribute for items in html_db.items
    how to give the id for the items please any one suggest me
    i am using this way but its not working
    select
    HTMLDB.ITEM_TEXT(1,sysdate,20,20,"id=s_first")
    from
    dual
    thanks
    sudhir

    hi,
      That one previous workflow and it solved. But now the same one with loop for Re-submission of Leave Request after change.
      Actually the values from Employeet is not flowing in the Unlock step for agent determination. Because of that the agent determination is not possible for me. But it works well without loop scenario. Employeet is not instantiated.
    Here i am using loop condition for re-submission of leave request.
    Thanks,
    Balaji.V
    Edited by: Balajisap on Sep 19, 2011 3:56 PM
    Edited by: Balajisap on Sep 19, 2011 6:22 PM

  • Need to send form item inline of an email

    Hi,
    I need to send an email with a form item that would send REQUEST and submit a note to a database table text column.
    an email with an HTML form w/ submit button..
    Is there a link to a HOW TO ?
    Thank you, Bill

    Hi, Thank you for the link but I already send email in my app....
    I guess the real question is:
    when sending an email from with in the app, how do you build the syntax to have a button with in the email to take the receiver of the email into the app...
    or in the email have a comment textarea and a button
    When the email user clicks the button it sends the textarea to the app and updates it.
    how do you make it so if the request comes from the email you don't need to logon?
    As I typed this I kinda am getting ideas... just to build a form within the email but it is the ? form action line I need to know how HTML_DB needs the syntax to be...
    Clear as mud?
    Thanks Bill

  • ShowModalDialog and "Unauthorized Access" for Item Help Tips - APEX 2.2.0

    Hi, all,
    Well, I have a popup that is displayed using ShowModalDialog, and that popup has help tips for some items. When I view it on my computer, regardless of whether or not I'm logged into APEX or not, and regardless of what authentication scheme I use to log into my application, I can see the help tips.
    When another user I have testing tries to view the help tip, she gets "Unauthorized Access." It doesn't matter what she is logged into or how. However, if I send her the link to the page displayed in the ShowModalDialog popup and she opens it in a regular window, she can see the help just fine.
    I did see mentions of this elsewhere in the forums. Is this Bug #5469015 : Authentication Fails On Popup Item Help Pages? If so, is there a workaround?
    Thanks!
    Don

    Thanks for all your help Scott
    I've added the -PORTAL_SSO- .....
    After this I've had a new problem same to this: Re: SSO Authentication Not Working
    "get the error below and it then directs me to http://hostx/htmldb/f? and the "p=" is missing"
    But after a lot of tests I discovered where was the problem: "The apache configuration for the proxy!!"
    This an extract from the installation doc :
    SetEnv force-proxy-request-1.0 1
    ProxyPass /htmldb http://127.0.0.1:8080/htmldb
    ProxyPassReverse /htmldb http://127.0.0.1:8080/htmldb
    ProxyPass /i http://127.0.0.1:8080/i
    ProxyPassReverse /i http://127.0.0.1:8080/i
    ProxyPass /sys http://127.0.0.1:8080/sys
    ProxyPassReverse /sys http://127.0.0.1:8080/sys
    where you replace 127.0.0.1 with the name OR ip address of your XE installation. 8080 is the default http port of your XE installation. "
    Well, I used the IP ADDRESS and in the @regapp > listener_token the NAME!!! (HTML_DB:servername.domain:80)
    I changed the IP ADDRESS with the NAME, restarted the httpd service and now all works fine.
    Emanuele

  • Execute stored procedure in html_db

    Hi there,
    is it problem to execute a stored procedure in html_db?
    Must I modify a lot in the procedures...
    CREATE OR REPLACE PROCEDURE
    insert_order
    p_fname IN emp.fname%TYPE,
    p_lname IN emp.lname%TYPE,
    p_orderno IN emp.empno%TYPE
    IS
    BEGIN
    INSERT into order
    fname, lname, orderno
    VALUES
    p_fnam, p_lname, p_orderno
    COMMIT;
    END insert_order;

    You can call the stored procedure from a HTML DB PL/SQL process. Call it just like usual
    begin
    insert_order(:P1_FIRST_NAME,:P1_LAST_NAME,:P1_ORDER_NO);
    end;
    The COMMIT is not necessary because each HTML DB page view is like a transaction that the engine automatically commits.
    where the bind variables above are page items from session state

  • Hot to get ITEM NAME

    Hello,
    is it possible to use *#CURRENT_ITEM_NAME#* in a function parameter?
    I want a function based validation and create a function. Then I created a element validation in my page with the PL/SQL-Expression Type and insert this code to start the function.
    rpf.vornamecheck(:#CURRENT_ITEM_NAME#)= 1
    In this point I dont want to insert the name of the Item manualy, because if I change the item name i also have to change it in the parameter of this validation.
    I test it a lot of times, but it doesn't work. Is there a other way to get the Name of an item (NOT LABEL)??

    I understand completely what you mean and I agree that it would be very good to have more ways to indirectly reference things to avoid
    hard coding page numbers and column_names. I am a newbie also and did not know javascript but I quickly discovered that it was easier to deal with javascript than to try to do things via plsql because javascript is easily available in the running page whereas to call plsql you have
    to know a lot more about the page load and page submit and partial page refresh and ajax and so forth. I simply do not know myself if there is a way that a change or blur can trigger a plsql check of that which changed. Maybe so using html_db? There's a big gap in my brain regarding that. I have made a personal choice to just go with javascript and not have to tackle the other ways of doing this because they
    are actually harder to understand than I am finding it to learn javascript.
    This is the two part javascript way. In this example we call a very simple javascript function timehourCheck which is defined in the
    javascript section of the page (other locations are possible). If it doesn't like the hour it actually nukes the item value. Note passing this the event object to the function. Some things 'this' has are this.id (the id which is what you asked about) and this.value the value.
    so a question would be is there an equivalent plsql based way of creating the kind of information passing that is obtained via the
    this event object in javascript?
    html form element attributes
    for the page item to be checked:
    onBlur="timehourCheck(this);"
    javascript part of page contains this:
    function timehourCheck(thisobj) {
    var mytext = thisobj.value;
    if (mytext.length == 0)
        {return;}
    if (mytext * 1 > 12)
       {alert('ERROR time hour ' + mytext + ' is > 12');
       thisobj.value = '';
    if (mytext * 1 < 0)
       {alert('ERROR time hour ' + mytext + ' is < 0');
       thisobj.value = '';
    } // end timehourCheck

  • Open and Cleared Items

    Hi all
    We are currently busy finalising our FI-CA BW Data Modeling exercise - and in process to complete Dataflow documentation.
    We will make use of the standard open and cleared item extractors with enhancements on different levels. Some background on the requirements:
    - We will have to extract document types, divisions, dates, clearing reasons, contract account, Business Partner etc.. information to meet the requirements.
    - We will have to keep history for at least 26 months to produce the required management reports (very high number of data), and 'partition' the cubes on date level for both Cleared and Open Items.
    - Most of the reports display 13 months worth of billing/ payment figures. I.e. the report for the end of October show billings vs. payments for October 2006, September, August, July, ... to October 2005.
    - The requirement is that the report figures will not change from one month to the next (i.e. if I run the report for end of October - all figures from October 2006 to Oct 2005 will remain the same when I run the report for end of November). I.e. if reversals, transfers, returns etc. occur - these will be picked up in later months.
    - For the above requirement, we are looking at extracting open (end of month) and cleared items (for the specific monthly interval) on a monthly basis, and appending the data in the cubes. We will then always base the June figure in the report on the June month extraction (LAUFD/ LAUFI fields) and we will pick up any movement in the next month/s - i.e. July.
    Has anyone had these types of requirements before - to report on billings vs. payments, and report on history as described above. We would appreciate it if you could share your report requirements, and also design documents, especially the DataFlow documentation that we can look at as input to our design.

    We had a requirement to retrieve "aging of receiveables" by customer. Basically, it goes thru each record and depending on the due date places the amounts in the following buckets (example). 0-30 day Overdue, 31-60 days Overdue, 61-90 days overdue, 30+ days overdue, 60+ days overdue) etc all the way to 6+ years overdue.
    There are also cooresponding buckets for coming due analysis. For example, what is: 0-30 days coming due, 31-60 days coming due, 30+ days coming due, etc...
    To do this, first I needed to be able be able to produce an open items statement at any given time in the past. Now, this seems impossible because of how the items go from open to cleared all the time. And an item that was open one month ago, may not be open anymore.
    What I did was first remove any selections on item status. Then compare the posting date with teh key date in the past, if the posting date is less than or equal to the key date, keep the record.
    Then compare the clearing date with the key date. First, keep all that are #. (This keeps all records still open from that posting date/key date)
    Then, add another check for all items that were cleared after the key date (GT Key Date). This gives you the open items on that date.
    Hope that makes sense. Let me know if you want clarification.
    /smw

  • Configuring requirement : ordered item to absorb cost of free goods

    Hello Friends,
    I need to configure this in SAP SD.
    The main item should accumulate the cost of the free goods.
    I have  set the cumulative indicator and deactivated pring for this item.
    Do i still need to configure the stock value for the free goods as cost free item? Or is this step only applicable for
    another scenario, like,
    If I were to activate Pricing such that free goods is displayed as subitem and VPRS configured as cost and discount set to 100%
    1. Set  Item category to TANN using FREE usage   AND
    2. use condition type RL00 with requirement 55.
    3. use pricing type B.
    regards
    Ravi

    Read this SAP help at http://help.sap.com/saphelp_47x200/helpdata/en/dd/55fa4e545a11d1a7020000e829fd11/frameset.htm and the topic Free Goods in Sales and Distribution Processing for details.
    Also go through each step of the configuration of the path at SPRO->Sales and distribution->basic functions->free goods.
    Regards,

  • Divide discount of free goods between several items (SO)

    Hi gurus,
    I need to split the cost of the free good between the items generating it, i.e. if the customer buy 5pcs of Mat A and 4pcs of Mat B he gets 1pcs of Mat C for free. He will only see the original price for the "main" items and zero for the free good but intenally the profit margin of the "main" materials should be deducted with the cost of the free good and the free good should have full profit margin as if it was sold for full price.
    I'm aware that this is not standard SAP functionality and that I probably need to change a user exit in program MV45AFZZ.
    Please help me with this problem! Any advice or tips are highly appreciated.
    Best regards,
    Mia

    Is it possible to solve this problem by modifying a user exit? I was considering creating a new pricing condition which should be inflicted between the net value and profit margin by the user exit so that the customer only sees the original values for the main materials but the profit margins are reduced with the price of the free goods directly in the order. Is this doable?
    /Mia

  • Return of Free goods item - Problem in item category

    I am trying to create return order of Free sample billing
    (ZFDP). The return order type for the free sample is ZFDR.
    We have specified Item category for the ZFDR is RENN (Free good item) in IMG Activity -> Assign Item categories.
    When I create order and save it, it prompts me to enter G/L Account.
    This material is free. It should not prompt G/L Account for it. There is no revenue recognition specified for the item category. I tried changing item category to ZKLN i.e Free of charge item. This item category does not prompt for G/L Account while creating order. but I can not use this item category because it prompts me for Avialability. I can not remove the Avaialabilty check for it because the same item category is used in the Free sample order where availability check is required
    In ZFDP order type, we are issuing 100% discount by using R100
    discount condition.  Please let me know how can I solve this problem.
    I think there is some problem in my item category itself. .
    My setting for Item category in IMG - Define item category is
    same for both ZKLN and RENN. Only difference is RENN has returns
    tick and pricing field is blank. In ZKLN pricing is defined as B- 100%
    discount. I also tried changing the pricing option of RENN to B.
    But still it is asking for G/L Account.
    I can not use ZKLN instead of RENN because my ZKLN is used in the
    Free item Sales order.
    Please help.
    Regards
    Saurabh Gothivrekar

    Hi
    I got answer to my query. YOu need to specify the bill type while defining sales document type. This bill type should not have account assignment mentioned in it.
    I changed the bill type, which does not have Account assignment procedure attached to it.
    It has solved my problem

  • Unable to capture field values in Master agreement  Line Items

    I am trying to get the field values from master agreement line items page. I have written the following code to get the line item details which is working fine to capture part number and quantity->
    agreementBean = doc.getRootParentIBean();
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    for(i=0;i<collectionsize;i++){
         collectionbean = lineItemCollection.get(i);
         partNum = ""+collectionbean.getPartNumber() ;
         Quantity = ""+collectionbean.getQuantity();     
         throw doc.createApplicationException(null,partNum + " , " + Quantity );
    Now, my problem is that I am unable to capture the following field item values in the master agreement > line items page.
    1. Price Unit
    2. Unit Price
    3. Product Category
    4. Plant
    Please help me to find the values.
    Thankx in Advance.
    Su
    Edited by: subrataindra on Aug 10, 2010 11:11 AM

    This will return the name of the plant.
    .getExtensionField("PLANT").get().getDisplayName(session);
    Check if this returns the product category
    collectionbean.getExtensionField("ITEM_CAT").get().getDisplayName();
    This will Return the Price
    collectionbean.getExtensionField("PRICE").get().getPrice();
    (return type :BigDecimal)
    This will return the currency
    collectionbean.getExtensionField("PRICE").get().getCurrency;
    (Return type:String)
    Similarly to retrieve other fields for which there are no standard functions, use .getExtensionField("Field ID")
    Hope this helps
    Regards,
    Immanuel

  • Metodo de avaliação do item

    Bom dia,
    Um usuário entrou no cadastro do item  e mudou o método de avaliação para "Padrão" e deu entrada de uma qtd.
    Automaticamente a entrada ficou com o custo zero.
    Qdo vou fazer a saída ele informa q o item está sem custo, e não executa a saída.
    Para eu alterar o método de avaliação eu preciso estar com o estoque zerado, mas não consigo fazer a saída deste estoque.
    Alguém sabe me ajudar??
    Danielle

    Bom dia Danielle,
    Nesse caso você pode fazer uma reavaliação de estoque para esse item.
    Para fazer a reavaliação você deve ir em Estoque>Transações do Estoque>Reavaliação do Estoque.

  • Código de item da lista de serviço - Salvador

    Boa tarde amigos,
    Estamos no meio de um projeto de implementação de NFSe, e por incrivel que pareça estamos obtendo êxito, porém no meio desse caminho, há uma série de mapeamentos de campos referente aos respectiavos municipios dos quais, estão nos dando um pouco de dor de cabeça.
    Para que fiquei mais claro a minha duvida, neste momento estamos mapeando Salvador, e no nosso cliente existe uma tabela contendo sua lista de serviço. Essa tabela deve ser linkada com as das prefeituras que são emitidas as notas, neste caso Salvador. O campo que nos pede essa informação é o tsItemListaServico C Código de item da lista de serviço 5 do manual de integração.
    Gostaria de saber de vocês se alguém possui/jáviu ou sabe, se esta lista é especifica para Salvador ou é como a Nacional, aparentemente esta aqui - http://www.usp.br/gefim/manuais/CodigosISS.htm
    Bom estamos mapeando agora Salvador mas depois partiremos para Recife, RJ, BH e Curitiba, estou deixando aqui citado, porque caso haja mais dessas listas.
    Enfim acredito que seja somente isso, agradeço a atenção de vocês desde já!
    Vitor Grassato

    Fernando mais uma vez obrigado pela dica.
    Venho aqui informar que cadastrei no SAP os códigos que foram definidos junto ao fiscal da empresa quais melhor se encaixavam com as descritas nos manuais das prefeituras.
    No proprio site de cada prefeitura em seu campo Legislação há uma lista diferente para ser atribuida junto aos tipos de serviço de cada empresa.
    A que mais me chamou atenção foi RJ, que possui cerca de 6 digitos para o campo do manual da ABRASF que é de 5 digitos, lçogo é necessario fazer uma alteração no XML caso vc queira implementar no municipio de RJ.
    Do mais o Fernando ja exemplificou!
    Agradeço a todos a colaboração e boa semana!

  • Item cost not found for one or more items - Inventory Posting

    Good Day Mentors,
    My user has encountered an error during Inventory Posting and its "Item cost not found for one or more items".
    The specific Message ID from SAP's System Message Log is 10001287.
    I found a similar post which addresses this error here.
    But unfortunately it did not help me solve my user's problem.
    I already checked if the items had a defined "Item Cost" in the Item Master Data Inventory Tab, and they all have "Item Cost" defined.
    I'm not sure if this will help, but below is the Inventory Audit Report of one of the items that is throwing the "Item cost not found" error.
    I am not a business consultant neither am I literate in accounting, so thanks for the patience.
    SAP Version: 9.0 PL5
    Valuation Method: Moving Average
    Thanks in advance!
    Sean

    Hi Augusto and Raviraj,
    I've already verified in our production database the points you made:
    - Is the "Manage Item cost per warehouse" selected in the Basic Initialization Screen?
    YES
    - Is the "Manage Inventory by Warehouse" ticked/checked in the "Inventory Data" tab of the "Item Master Data" screen?
    YES
    * I apologize for not have been able to give this information upfront.
    Anyway, the database only has one warehouse at the moment.
    I've checked the items, like the item in the screen shot above, and it does have an item cost.
    Below is the screenshot of the sample item from my original post,
    Thanks in advance!
    Sean

  • How can i update an existing item in sap using CSV file?

    Hi,
    i am trying to update an existing Item in SAP using a CSV file.
    in the message log i get an error message that the item already exists.
    what should i do in order to update the existing record?
    Thanks, Udi

    Hi..........
    I would sugest you to use Tab delimited file and choose proper option in order to update the itsm master in DTW......
    Regards,
    Rahul

Maybe you are looking for

  • How to get the callback from an asynchronous BPEL?

    Hi, I have deployed an asynchronous BPEL on Oracle Application Server as a Web Service. The BPEL is named CreditRatingBPEL. The input is a social security number (Ssn) and the output is a credit rating. Now I have some troubles in consuming BPEL with

  • Is there any good Linux software to show slideshows, videos and more?

    Hi. We are trying to replace windows and apple on all computers in our church. Now, I know we will most likely hang on to some of our macs for video editing purposes, but we have identified several computers that runs Windows that can easily use Linu

  • How can i print text contain multiple language

    hi all, i have swing application with JTextPane contains multiple data (kannada and English) i used to the follwoing code to print contatent of jtextPane and in this code i seted font Kedage(for kannada) if did not set to kannada font the kannada tes

  • Can't install Lion on MacPro 5.1

    Help! First time in my 20 years Mac-life I have such a crazy problem. Downloaded Lion from Mac App Store and sucsessfuly installed on iMac i5 quad and MacMini 1.83 Core2Duo. When I tried to install on Mac Pro  6-core 3.33Ghz/24Gb - After restart Mac

  • Open delivery for goods receipt via RF

    I am trying to do a good recepit through the RF menu. Once I click on the goods receipt , it takes me to the screen which asks for PO/delivery #, Material # and quantity. When I enter in the PO, mat # and Qty , it gives me the error message "No Open