Help needed to add ecommerce functionality

i am in the process of creating a website using dreamweaver
cs3. Almost completed. i have some e books with master reseller
rights. So i want to sell it through my website. i cannot spend
initial investment for 3 party sites so i thought of going via
paypal. but the site instructions aree to complicated.
1.how do i integrate paypal into my website with shopping
cart feature?
2. how do i allow people to download the files only after
they payed for them?
3.i have like 20 ebooks which i can sell. So how do i give
people the option of selecting what they want(adding to cart all
the individual ebooks they select) and then proceeding to check
out?
4.in paypal website they said about something like encryption
for security.not the ssl but something like to prevent users from
modifying the code and submitting wrong amount. is it actually
necessary?

"coolguythampy" <[email protected]> wrote in
message
news:[email protected]...
>i am in the process of creating a website using
dreamweaver cs3. Almost
> completed. i have some e books with master reseller
rights. So i want to
> sell
> it through my website. i cannot spend initial investment
for 3 party sites
> so i
> thought of going via paypal. but the site instructions
aree to
> complicated.
Hm.. if you feel that way, you might want to hire someone to
do this.
Setting up a PayPal shopping cart is about the simplest
method of creating a
shopping cart site.
> 1.how do i integrate paypal into my website with
shopping cart feature?
This is a large general question which would be answered by
following the
instructions on the PayPal site. However, see below re.
digital downloads.
> 2. how do i allow people to download the files only
after they payed for
> them?
PayPal doesn't provide for digital downloads. I can
personally recommend a
service called Payloadz (www.payloadz.com) which works with
PayPal and
delivers your digital items automatically.
> 3.i have like 20 ebooks which i can sell. So how do i
give people the
> option
> of selecting what they want(adding to cart all the
individual ebooks they
> select) and then proceeding to check out?
I'm not sure how that would work with Payloadz/PayPal, since
I only sell one
item. The answer should be on the Payloadz site, or else a
support ticket to
them should get you an answer.
> 4.in paypal website they said about something like
encryption for
> security.not
> the ssl but something like to prevent users from
modifying the code and
> submitting wrong amount. is it actually necessary?
I'm not sure if it's necessary, but you could just be safe
rather than sorry
and use the encryption. PayPal support will be able to answer
a question
like that.
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate
Worksheet

Similar Messages

  • Standard Report RFKABLOO i need to add email functionality

    In Standard Report RFKABLOO i need to add email functionality. I am a bit
    Confused with the field groups used and insert statements as:
    INSERT
      icdpos-tabname
      icdpos-tabkey
      icdpos-fname
      icdpos-chngind
      icdpos-f_old
      icdpos-f_new
      fldtype
      fldleng
    INTO daten
    Its having some includes too flags set. Can anyone suggest how to proceed.

    Hi,
    did you try STR+F7?
    do you mean report RFKABL00 (00 -> zero zero) or oo?
    We only have RFKABL00 (zero zero)!
    regards, dieter

  • Need to add Chat functionality on iStore

    Hi,
    I need to add chat functionality on iStore.
    I got this link from Oracle Community forum , but i think it is applicable only to Oracle forums.
    iStore
    Any ideas please for the implementation for the chat code.
    Thanks,
    Sabitha

    You can consider setting up Call Back....
    Setting up Call Back in Oracle iStore
    After setting up Oracle iSupport and Oracle Telephony Manager, set the following profile option at the application level to iStore.
    IBE: Use Call Me Back: Set to Yes to activate the callback feature.
    The profile option defaults to No if not set.

  • Help needed in writing a function.

    I am using Oracle 11g and SQL plus. I am a complete newbie, so I need some help here in writing a function. I guess my question is more about writing the trigonometric functions within the function.
    latA, longA latB, longB // these are the four input parameters,
    theta = longA - longB
    distX = sin( latA * PI / 180) * sin ( latB * PI /180) + cos ( latA * PI/180) * cos ( latB * PI/180) * cos ( theta * PI / 180)
    distY = acos(distX) // this is arc cosine
    distZ = distY * 180 / PI // PI refers to the mathematical PI
    distP = distZ * 60 * 1.1515; // this value should be returned. Of course the intermediate variable names don't matter.
    Please help. Thanks.

    CREATE OR REPLACE FUNCTION fucntion_name(latA IN NUMBER, longA IN NUMBER, latB IN NUMBER, longB IN NUMBER) RETURN NUMBER
    IS
    pi      CONSTANT NUMBER:=3.14159;
    theta NUMBER;
    distX  NUMBER;
    distY  NUMBER;
    distZ  NUMBER;
    distP  NUMBER;
    BEGIN
    theta :=longA - longB;
    distX :=sin( latA * PI /180) * sin ( latB * PI /180) + cos ( latA * PI/180) * cos ( latB * PI/180) * cos ( theta * PI / 180);
    distY :=acos(distX); --this is arc cosine
    distZ :=distY * 180/PI;  --PI refers to the mathematical PI
    distP :=distZ * 60 * 1.1515; --this value should be returned. Of course the intermediate variable names don't matter.
    RETURN distP;
    END;Edited by: Ora on May 3, 2011 11:46 PM

  • Help needed to add an image to a datagrid cell in actionscript

    Morning all,
    I am still quite new to flex development and I have an application which uses xml to populate a datagrid. One of the row columns should display a small image but I don't know how to do that.
    Can anyone show me how to add an image to a datagrid cell in actionscript?
    I've added a sample of the code I have written already below. Any help would be much appreciated.
    Thanks in advance,
    Xander
    My XM
    <?xml version="1.0" encoding="UTF-8"?>
    <dataset>
    <modules>
    <module id="1">
    <icon>assets/sample_image1.png</icon>
    <key>core</key>
    <name>Core</name>
    <description>Description of module</description>
    <installed>Wednesday, 24th June 2009 @ 15:59 UK</installed>
    </module>
    <module id="2">
    <icon>assets/sample_image2.png</icon>
    <key>webproject</key>
    <name>Web Project</name>
    <description>Description of module</description>
    <installed>Wednesday, 24th June 2009 @ 17:32 UK</installed>
    </module>
    </modules>
    </dataset>
    My Actionscript
    private function dataSetHandler(event:Event):void {
        var ds:XML = new XML(event.target.data);
        var rows:XMLList = ds.elements('modules').elements('module') as XMLList;
        var columns:Array = new Array();
        for (var i:int=0; i<rows[0].elements().length(); i++) {
            var column:DataGridColumn = new DataGridColumn();
            var tag:String = rows.*[i].name();
            column.headerText = rows.*[i].name();
            column.dataField = rows.*[i].name();
            if (tag == 'icon') {
                var img:Image = new Image();
                img.id = "iconpath";
                img.width = 23;
                img.height = 20;
                img.source = rows.*[i].name();
               column.itemRenderer = img;   <-- this line shows as an error when I try to compile
            columns[i] = column;
        mydatagrid.columns = columns;
        mydatagrid.dataProvider = rows;

    you cant just set image object to itemrenderer, you need to use classfactory.
    http://livedocs.adobe.com/flex/3/html/help.html?content=cellrenderer_4.html

  • Help Needed With "Extend Marker" Function Not Working

    I have several Clips and used the "DV Start/Stop Detect" function to find the time code breaks, which seems to work well. I've now got a clip full of Segment markers.
    The problem arises when I try to use Extent Markers "Option + `" to make subclips. When I put the play head on a subsequent marker, the Marker/Extend function is grayed out.
    Extending a marker that I have created using the M key works perfectly.
    Why can I not use the Extend function on Segment Markers?
    Any help on this is greatly appreciated. I have 30 odd clips that I need to set up segments for, and doing it manually will add hours to my workload.
    Thanks
    Gary
    Dual G5 2.5 GHz Dual Core, 2.5 GB RAM, 500 GB HDD   Mac OS X (10.4.3)   Final Cut Studio FCP 5.0.4

    Thanks for the reply.
    I am completely aware of items 1 through 3, and never Extend markers in the Timeline. Only the Viewer.
    To perform an Extend Marker and avoid headaches, load the captured clip - the one with the video icon in the Browser - into the Viewer. Then, as you scrub along in the Viewer, Option-` as needed.
    That is precisely what I am doing.
    To Extend the marker I first double click the clip to load the entire clip into the Viewer, where all the Section markers are displayed. I then check Mark>Markers>Extend and the function is grayed out. However, if I move the playhead one frame prior to the Section marker, the previous Section marker extends to the frame prior to the new play head position.
    If I do this with manually entered markers (using the M key, creating Marker 1, 2, 3.... in sequence on the Viewer timeline), then the Previous marker is extended to the frame immediately prior the the current play head position - i.e. from Marker 1 to Marker 2. I do not have to move off the Marker 2 position to be able to extend Marker 1.
    Also, simply selecting all your Markers and either dragging them to another bin (or pressing Command-U) does not produce the needed subclips?
    Of this I am also aware. I find the Command-U process just confuses the issue, creating more clips to manage (others may disagree). I prefer to simply drag the "Subclips" directly from the Main clip into a Timeline.
    Because you're doing all this to get subclips, right? Or wrong?
    If I understand your reply correctly, I think you misunderstood my problem. I have been using subclips for several years, and find them VERY useful, especially with multi-camera shoots. So, I am quite familiar with creating and extending markers.
    I just started experimenting with the Detect feature and find it works quit well (most of the time). My problem is that the Segment markers created by the Detect process, do not perform the same as manually place markers, as far as the Extend marker function is concerned, anyway.
    BTW - By using the TC display in my Panasonic PV-GS400 Camera, and sending the FCP video via Firewire to the camera, the camera displays the TC on the captured clip, which I then rename the marker to for TC reference. As long as the Date/Time on the cameras are properly synced, syncing clips in the Timeline is a breeze!!
    Anyway, to clarify, my process is as follows:
    1. Capture a clip.
    2. Display the clip in the Viewer
    3. Select "DV Start/Stop Detect" and watch as the section markers appear in the Viewer.
    4. In Viewer, place play head on the first Section marker
    5. Press the M key to Edit Marker.
    6. Change the Name of the marker to the timecode of the Marker now displayed in the Camcorder window.
    7. Use Shift-Down Arrow to move to the next Section Marker
    8. Press Option+` to Extend the previous marker - which does not work and is grayed out in the Mark>Markers>Extend menu.
    9. Back to step 5.
    This process works perfectly with manually created markers. Because the Extend works if I move the play head one frame prior to the current Section marker, this tells me there is something "special" about the Section marker that disables the Extend function, unlike a manually created marker.
    BTW - If I delete the Section marker, and create a manual marker at the same frame, the Extend marker function works again. Again, indicating that Section markers are different somehow from manual Markers.
    Hopefully, this wordy explanation of my process clarifies my problem.
    Aside: The clips are supplied to me by a customer on a 500GB FW800 drive. FCP5 was used to capture the clips from the original Tapes (which I do not have access to). I am the editor for the project.
    Thanks again for the reply. It is greatly appreciated. If there is any other info that I have missed that will help figure this out, please let me know and I will post a response a quickly as possible.
    Gary

  • Help needed in OBIEE Rank function

    Hi All,
    I have a request having Period, Amount,Branch code. In this i need to figure out the top N ranks (N is the user input which is populated using Presentation variable) based on the amount.
    Then in the final output it should display as Top N branches with its previous period's data.
    For eg: If we try to rank the amount for period=31-dec-2010. The final output should be displayed in pivot table as
    *(Branchname in Pivottable section)*
    * (Period to be displayed columnwise) 31-Mar-2010 30-Jun-2010 30-Sep-2010 31-Dec-2010*
    Amount (Measure)
    Can you guide me to achieve the above request?
    Is there a way to calculate rank based on two columns?
    Kindly help me.
    Regards,
    Bhuvan R

    CREATE OR REPLACE FUNCTION fucntion_name(latA IN NUMBER, longA IN NUMBER, latB IN NUMBER, longB IN NUMBER) RETURN NUMBER
    IS
    pi      CONSTANT NUMBER:=3.14159;
    theta NUMBER;
    distX  NUMBER;
    distY  NUMBER;
    distZ  NUMBER;
    distP  NUMBER;
    BEGIN
    theta :=longA - longB;
    distX :=sin( latA * PI /180) * sin ( latB * PI /180) + cos ( latA * PI/180) * cos ( latB * PI/180) * cos ( theta * PI / 180);
    distY :=acos(distX); --this is arc cosine
    distZ :=distY * 180/PI;  --PI refers to the mathematical PI
    distP :=distZ * 60 * 1.1515; --this value should be returned. Of course the intermediate variable names don't matter.
    RETURN distP;
    END;Edited by: Ora on May 3, 2011 11:46 PM

  • Very urgent help needed in activating a function module

    Hello experts.
    I had a standard report and i copied into an z report. i need to change some field output , and that field is there in a standard function module.so i copied that fun module  into z fun module and stored in a new fun group. Now it is showing the error in the z fun module. include in the fun module is giving the error stating that it is not existing. please help me in coping the standard fun module correctly . please its very urgent.

    Hi,
    You should not copy a Function module alone, as it will have some dependant INLCUDES and global data in TOP include of the function group.
    SO if you want the function module copy the entire Function Group into Z function group.
    Regards,
    Sesh

  • CS3/AS2 need to add a function to FLVPlayer component play button

    Hi,
    I have an instance of the FLVPlayback component in a movie.
    I need to assign an extra function to the play button in the
    component
    (to tell another swf on the same page to stop, I have the
    function working)
    how can I find out the button instance name so I can assign
    the function to it?
    or am I on the wrong track?
    mark

    bump
    Do I need to trigger it by listening for an event, namely
    play
    rather than assigning it to the button as a function for
    on(release)
    I do not know how to do that
    any help please
    not much time to sort this out

  • Help, need to add a delete button to my application?

    i have a little application that you can add numbers and friends email too
    i would like to add a minus selection/entry button?
    do any of you guys have any ideas?
    stop();
    //create a new sql connection
    var conn:SQLConnection= new SQLConnection();
    //add an event handeler for the open event
    conn.addEventListener(SQLEvent.OPEN, openHandler);
    //create the database if it doesn't exist, otherwise just opens it
    var dbFile:File =File.applicationDirectory.resolvePath ("exemplu.db");
    conn.openAsync(dbFile);
    function openHandler(event:SQLEvent):void {
    //create a new sql statement
    var sql:SQLStatement=new SQLStatement();
    //set the statement to connect to our database
    sql.sqlConnection=conn;
    //parse the sql command that creates the table if it doesn't exist
    sql.text= "CREATE TABLE IF NOT EXISTS contacte(" +
    "id INTEGER PRIMARY KEY AUTOINCREMENT, " +
    "nume TEXT, " +
    "telefon INTEGER)";
    //add a new event listener to the sql when it completes creating the table
    sql.addEventListener(SQLEvent.RESULT,retrieveData);
    //call the execute function to execute our statement
    sql.execute();
    function retrieveData(event:SQLEvent = null):void {
    //create a new sql statemant
    var sql:SQLStatement = new SQLStatement();
    sql.sqlConnection=conn;
    //this sql command retrieves all the fields from our
    //table in the database and orders it by name
    sql.text =  "SELECT id, nume, " +
    "telefon " +
    "FROM contacte ORDER BY nume";
    //add a new event listener if there is data
    //to display it
    sql.addEventListener(SQLEvent.RESULT, selectHandler);
    sql.execute();
    function selectHandler(event:SQLEvent):void {
    //first we clear our list
    lister.removeAll();
    //the we create a result variable that holds
    //all our contacts
    var result:SQLResult=event.target.getResult();
    //we check if results is not empty
    if (result!=null&&result.data!=null) {
    //and we add a new item to our list for
    //each contact in our database
    for (var i:Number = 0; i < result.data.length; i++) {
    lister.addItem ({ label:result.data[i].nume + "-" +result.data[i].telefon
    , nr:result.data[i].id });
    plus.addEventListener(MouseEvent.CLICK,adder);
    xu.addEventListener(MouseEvent.CLICK,closeapp);
    back.addEventListener(MouseEvent.MOUSE_DOWN,drag);
    //because my buttons are not real buttons
    //but movieclips i need to set the
    //buttonMode property to true
    plus.buttonMode=true;
    xu.buttonMode=true;
    function adder(e:MouseEvent):void{
    //remove the eventlistener and move to the
    //next frame
    plus.removeEventListener(MouseEvent.CLICK,adder);
    nextFrame();
    function closeapp(e:MouseEvent):void {
    //close the application
    NativeApplication.nativeApplication.exit();
    function drag(e:MouseEvent):void {
    //drag the application
    this.stage.nativeWindow.startMove();
    this is on the second key frame-
    //this line restricts the user input
    //to just numbers in the phone input box
    //add a new event listener to our plus button
    plus.addEventListener(MouseEvent.CLICK,adder2);
    function adder2(e:MouseEvent):void {
    //create a new sql statement variable
    var sql:SQLStatement=new SQLStatement();
    sql.sqlConnection=conn;
    //the next sql command creates a new entry
    //in the table contacte from our database
    sql.text =  "INSERT INTO contacte(nume, " +
    "telefon)" +
    "VALUES(@nume, " +
    "@telefon)";
    //to insert variables into sql commnads
    //we use the parameters definition
    sql.parameters["@nume"]=nume.text;
    sql.parameters["@telefon"]=tel.text;
    //add a new event listener that calls the
    //function that retrieves the data
    sql.addEventListener(SQLEvent.RESULT,retrieveData);
    sql.execute();
    //go to frame no. 1
    prevFrame();
    //remove the eventlistener from our plus button
    plus.removeEventListener(MouseEvent.CLICK,adder2);

    use:
    minus_btn.addEventListener(Event.MouseEvent,CLICK, clear)
    function clear(e:MouseEvent){
    var sql:SQLStatement = new SQLStatement();
    sql.sqlConnection = conn;
    var s:String = "DELETE from contacte WHERE nume= :numeparam AND telefon=:telefonparam";
    sql.text = s;
    sql.parameters[":numeparam"] = whatever;
    sql.parameters[":telefonparam"] = whatever else;
    //add listeners if you want
    sql.execute();

  • Help Needed to add Hyphen in REGEXP_REPLACE

    Hi All,
    I need a help to add hyphen in my select criteria so that it does not filter the hypen.
    I am using below REGEXP_REPLACE to get my output, everything is fine now except the Hyphen (-) character is not recognized.
    select REGEXP_REPLACE('abcd-efgh123{}$(),', '[^[a-z,A-Z,0-9,(,),{,},_,$,.,'',[:space:]]]*','') from dual;
    Can you please help?
    Thanks

    The hyphen has a special meaning inside a regular expression. You can use if you make clear that the extended meaning is not possible in this case.
    example
    with testdata as (select 'A-C' txt from dual union all
                      select 'X-12' txt from dual union all
                      select '1''2' txt from dual union all
                      select 'ab#' txt from dual union all
                      select '()' txt from dual union all
                      select 'a b*~' txt from dual union all
                      select 'ab' txt from dual union all
                      select 'abcd-efgh123{}$(),'  txt from dual
    select txt
          ,REGEXP_REPLACE(txt, '[^[a-zA-Z0-9(){}_$.''[:space:]-]]*','') keep_chars
          ,REGEXP_REPLACE(txt, '[[a-zA-Z0-9(){}_$.''[:space:]-]]*','') remove_chars
    from testdata;
    TXT     KEEP_CHARS     REMOVE_CHARS
    A-C     A-C     
    X-12     X-12     
    1'2     1'2     
    ab#     ab     #
    a b*~     a b     *~
    ab     ab     
    abcd-efgh123{}$(),     abcd-efgh123{}$()     ,I removed the comas. In case you want that char also to be removed just add it somewhere. It is not used as a separator in this specific case.

  • Help needed in building a function

    Hello,
    I am using Oracle DB 11g.
    I am writing a function.
    create or replace function func(tab VARCHAR2) RETURN VARCHAR2 AS
    cursor c is SELECT column_name
    FROM all_tab_columns
    WHERE table_name =tab;
    begin
    //some statements
    for i in c loop
    flag=1;
    //some statements
    end loop;
    //use the same c cursor query
    if flag!=1 then
    //repeat the block inside the for loop;
    end if;
    end;
    Function works fine.
    Now once the for loop ends,what i want is if it doesn't enter the for loop, then for just for once enter the if condition for
    any column from the table and repeat the process, which i am doing inside the for loop.
    But here i am finding repetition of same query and the block of code.
    Is there any way i can avoid that?
    Thanks

    How about you start from scratch and explain the business problem you are attempting to solve. Not a portion of a technical implementation that doesn't seem to make any sense.
    Start from the beginning, no code ... just "i have a situation where i need to .... ".
    Should be a lot more productive.

  • HELP needed to write a function returning 1 record from join tables

    Hi,
    I would like to have some help to write a function so It can return 1 result.
    I post my question in the APEX Express sextion but I think it's belong here.
    Mount Points and Home Directory
    Also, can I move a thread in another forum?
    thanks
    Roseline
    Edited by: user8772975 on 2009-09-19 21:43

    ok, I think I started to understand the functions. But I still can't figured out
    CONTEXT
    We are scanning pages and images from different newspaper. All the .tif, .jpg are on DVDs.
    I'm trying to build a search page who will allow for all DVDs and All images name related to the search result. Let say I search for:
    FIGARO
    I have this SQL query and I want to make a function that will return the same thing as:
    select     
          "DOSSIER"."ID" as "DOSSIERID",
          "DOSSIER"."TITLE" as "TITLE",
          "DVD"."ID" as "DVDID",
          "DVD"."NAME" as "DVDNAME",
          "DVD"."ID_DOSSIER" as "DVD_ID_DOSSIER",
          "ELEMENTS"."ID" as "ELEMENTSID",
          "ELEMENTS"."NAME" as "ELEMENTSNAME",
          "ELEMENTS"."ID_DVD" as "ELEMENTS_ID_DVD"
    from      "DOSSIER" "DOSSIER",
               "DVD" "DVD",
               "ELEMENTS" "ELEMENTS"
    where   "DVD"."ID_DOSSIER"="DOSSIER"."ID"
    and      "ELEMENTS"."ID_DVD"="DVD"."ID"
      and       "DOSSIER"."TITLE" = :P3_SEARCH
    ORDER BY "DVD".NAMEBasiccly, We are scanning pages and images from different newspaper. All the .tif, .jpg are on DVDs.
    So we have someting like that:
    TITLE: FIGARO
    DVD:        C2008-203
    Elements: 12l10201.tif, 12l10202.tif, 12l11101.tif, 12l11102.tif, 12l11201.tif
                    12l11202.tif, 12l12101.tif, 12l12102.tif
    DVD         C2008-204
    Elements: 12l12202.tif, 12l13101.tif, 12l13102.tif, 12l13201.tif, 12l13202.tif,
                   12l14101.tif, 12l14102.tif, 12l14201.tif, 12l14202.tif, 12l15101.tif,
                   12l15102.tif, 12l15201.tif
    DVD:       C2008-205
    Elements: 12l15202.tif, 12l16101.tif, 12l16102.tif, 12l16201.tif, 12l16202.tif,
                    12m01101.tif, 12m01102.tif, 12m01201.tifBased on what people on the forum told me, I now know that I have to use Pl/SQL so I have to write a function that will return the same thing as the prvious query.
    Is that exact?
    Based on this example,
    [http://plsql-tutorial.com/plsql-functions.htm|http://plsql-tutorial.com/plsql-functions.htm]
    I would write something like:
    CREATE FUNCTION my_super_function
    RETURN VARCHAR(2000);
    IS
    details VARCHAR(2000);
    BEGIN
    select     
          "DOSSIER"."ID" as "DOSSIERID",
          "DOSSIER"."TITLE" as "TITLE",
          "DVD"."ID" as "DVDID",
          "DVD"."NAME" as "DVDNAME",
          "DVD"."ID_DOSSIER" as "DVD_ID_DOSSIER",
          "ELEMENTS"."ID" as "ELEMENTSID",
          "ELEMENTS"."NAME" as "ELEMENTSNAME",
          "ELEMENTS"."ID_DVD" as "ELEMENTS_ID_DVD"
    from      "DOSSIER" "DOSSIER",
               "DVD" "DVD",
               "ELEMENTS" "ELEMENTS"
    where   "DVD"."ID_DOSSIER"="DOSSIER"."ID"
    and      "ELEMENTS"."ID_DVD"="DVD"."ID"
      and       "DOSSIER"."TITLE" = :P3_SEARCH
    RETURN details;
    END;
    / And then, use soemthing like:
    select my_super_function("DOSSIER"."ID") from "DOSSIER" "DOSSIER" where "DOSSIER"."TITLE" = :P3_SEARCHI'm kinda of lost. I spent the last 6 hours but I think that programming is a working progress.
    Any hint would be appreciated,
    thanks
    Roseline

  • Help needed for Auto-save functionality on appraisal bsp (HAP_DOCUMENT)..

    BSP -> HAP_DOCUMENT.
    I browsed through some threads and found out the code for this, but wanted to know which page/controller method I should write in my code. This functionality is required in both Manager page and in Employee page.. Could someone help me on this, it would be very helpful...

    hi ,
    the probelm with adobe (pdf) only(.i.e. pdf attachments are damaged or something) so, check the below links to get more info regrding above error...
    http://www.computing.net/answers/windows-xp/pdf-error-acrobat-could-not-open/118542.html
    http://forum.planetpdf.com/wb/default.asp?action=9&fid=6&read=62004
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=6911
    thnx
    suriya

  • Help needed with looping a function

    Hello experts,
    I am in a bit of a mess of ideas,
    I have a form with various search fields.
    based on the values i am passing, i am returning some values back to my form
    below is my function
    CREATE OR REPLACE function LOTTO_EROUTES.f_forecast(p_ret_num        in varchar2,
                                                        p_item_id        in number,
                                                        p_curr_date      in date,
                                                        p_expected_stock out number ,
                                                        p_actual_stock   out number,
                                                        p_inst_settled   out number,
                                                        p_prev_date      out date  ,
                                                        p_range          out number,
                                                        l_settled_avg    out number,
                                                        p_coefficient    out number                                                 
    return number is
    l_forecast_num number;
    l_curr_cdc  varchar2(6);
    l_prev_cdc varchar2(6);
    l_forecast_err varchar2(50) := 0;
    l_game_id number;
    begin
      select game_id,STOCK_COEFF_LEVEL_DAYS,IPS_SETTLED_RANGE_DAYS
      into l_game_id,p_coefficient,p_range
      from items
      where item_id =p_item_id;
    l_curr_cdc  := ltrim(rtrim(to_char(f_get_cdc_num(p_curr_date),999999)));
    l_prev_cdc := (l_curr_cdc - p_range);
    p_prev_date := f_get_cdc_date(l_prev_cdc);
    select count(serial_number)
    into p_inst_settled
    from LOTTO_INSTANT_TRACK
    where game_id = l_game_id
    and retailer_num = p_ret_num
    and status = 'Settled'
    and cdc between l_prev_cdc and l_curr_cdc ;
    l_settled_avg := ceil(p_inst_settled / p_range);
    p_expected_stock := ceil(l_settled_avg * p_coefficient);
    select count(serial_number)
    into p_actual_stock
    from LOTTO_INSTANT_track
    where game_id = l_game_id
    and retailer_num = p_ret_num
    and status like 'Confirmed';
    l_forecast_num := ceil((p_expected_stock - p_actual_stock));
    return l_forecast_num;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    return l_forecast_err;
    end;
    /Now in my function i am passing 1 single value for p_ret_num(retailer number), i value for p_item_id and p-curr_date which is default sysdate.
    now i should be able to pass all retailer number and return those values accordingly.
    I am thinking of having an LOV that will have "ALL" option whereby the user will select and it should return all its corresponding values.
    I know i should be having a loop but don't know how to do that. Can anyone guide me plz.
    Thanks

    not using cursor for performance issues. well from what i've learnt.
    yes, exactly. each and everytime its just replacing the values in the first row itself.
    unhandled exception error
    f_forecast function
    CREATE OR REPLACE function LOTTO_EROUTES.f_forecast(p_ret_num        in varchar2,
                                                        p_item_id        in number,
                                                        p_curr_date      in date,
                                                        p_salesperson    out varchar2,
                                                        p_expected_stock out number,
                                                        p_actual_stock   out number,
                                                        p_inst_settled   out number,
                                                        p_prev_date      out date  ,
                                                        p_range          out number,
                                                        l_settled_avg    out number,
                                                        p_coefficient    out number                                                 
    return number is
    l_forecast_num number;
    l_curr_cdc  varchar2(6);
    l_prev_cdc varchar2(6);
    l_forecast_err varchar2(50) := 0;
    l_game_id number;
    begin
      select game_id,STOCK_COEFF_LEVEL_DAYS,IPS_SETTLED_RANGE_DAYS
      into l_game_id,p_coefficient,p_range
      from items
      where item_id =p_item_id;
    select salesperson
    into p_salesperson
    from lotto_retailers
    where retailer_num = p_ret_num;
    l_curr_cdc  := ltrim(rtrim(to_char(f_get_cdc_num(p_curr_date),999999)));
    l_prev_cdc := (l_curr_cdc - p_range);
    p_prev_date := f_get_cdc_date(l_prev_cdc);
    select count(serial_number)
    into p_inst_settled
    from LOTTO_INSTANT_TRACK
    where game_id = l_game_id
    and retailer_num = p_ret_num
    and status = 'Settled'
    and cdc between l_prev_cdc and l_curr_cdc ;
    l_settled_avg := ceil(p_inst_settled / p_range);
    p_expected_stock := ceil(l_settled_avg * p_coefficient);
    select count(serial_number)
    into p_actual_stock
    from LOTTO_INSTANT_track
    where game_id = l_game_id
    and retailer_num = p_ret_num
    and status like 'Confirmed';
    l_forecast_num := ceil((p_expected_stock - p_actual_stock));
    return l_forecast_num;
    exception
    when others then
    dbms_output.put_line(sqlerrm);
    return l_forecast_err;
    end;
    /calling in my button
    declare
         default_date date := :oe_header.order_date;
    begin
         :oe_lines.order_date_disp := default_date;
    go_block('OE_LINES');
         FOR Get_Ret IN (select retailer_num
                            from lotto_retailers
                            where agent_status_id = 2
                            AND retailer_num = DECODE(:criteria.retailer_num,0,retailer_num,:criteria.retailer_num))
              LOOP
              :OE_LINES.retailer_num := Get_Ret.retailer_num;
              :OE_LINES.FORECAST_CNT := f_forecast(
                      :OE_LINES.retailer_num ,
                                  :criteria.item_id,
                                  :OE_LINES.order_date_disp,
                                  :OE_LINES.salesperson,
                                  :OE_LINES.expected_stock,
                                  :OE_LINES.current_retailer_stock,
                                  :OE_LINES.avg_calculated_amt,
                                  :OE_LINES.from_date,
                                  :OE_LINES.calc_stock_coefficient,
                                  :OE_LINES.avg_daily_sales,
                                  :OE_LINES.stock_coefficient_used
              :OE_LINES.AVG_WEEKLY_SALES := (     :OE_LINES.avg_daily_sales * 7 );
              next_record;
         END LOOP;
    END;

Maybe you are looking for

  • Font size in text fields

    Is there a way to change the font size in a text box or text field on every webpage through one of the prefrences? I have looked on the forums here and searched Google, but could not find any answers. MacBook   Mac OS X (10.4.8)  

  • Open report in forms 10G

    Good Day I need help about print report i want to show this screen before the report print and then choose the printer http://img105.herosh.com/2011/10/06/297324658.jpg

  • Drag and drop files to replace older only?

    I often find have folders which share some of the files.  If I drag and drop one folder onto the other I get a prompt for duplicates to keep both, replace or skip.  But how can I ensure that if I select replace Finder will only replace the file if th

  • Background Image & hotspot/links

    How can I make a hotspot of a table cell which has a background image? I have a table with 9 cells, all of which have different background images and text inside them. I had to make the images background in order to make the text so the page improves

  • Windows server locking issue on datafiles

    Hi, We are having Oracle database (10.2.0.3) on Windows 2003 (R2 Standard Edition) server. We have database residing on the server, however, the issue is that the database is getting shutdown due to some errors. When we check the alert.log, we unders