How to call a function in c ++ QML?

Hi all

In my application, I saw two QML and a class of CPP.

Saying one of my root qml: main.qml is a root page, which displays a list. And the line of the list is an another qml (Customrowlist). And I put the contextProperty for main.qml in the PRC and I need to call a function in the PPC of

Customrowlist.QML.

I want to call the deleteAccountData(..,..,..) function. Customrowlist.qml, so how can I do.

Here is my code

hand. QML

        TabbedPane {

            //property Page about

            id: tabbedPane
            showTabsOnActionBar: true

            Tab {
                title: "Manage Accounts"
                onTriggered: {
                    objectAM.fetchAccountData();
                }
                imageSource: "asset:///images/list.png"
                NavigationPane {
                    id: navPane
                    Page {
                        Container {
                            background: back.imagePaint
                            layout: StackLayout {
                            }
                            ImageView {
                                imageSource: "asset:///images/head.png"
                                scalingMethod: ScalingMethod.AspectFit
                                opacity: 1.0
                            }
                            ListView {
                                id:savedaccount
                                objectName: "savedaccount"
                                listItemComponents: [
                                    ListItemComponent {
                                        type: "item"
                                        CustomListRow {
                                        }
                                    }
                                ]
                            }
                        }
                        actions: [
                            ActionItem {
                                id: about
                                title: "About"
                                imageSource: "asset:///images/info.png"
                                ActionBar.placement: ActionBarPlacement.InOverflow
                                attachedObjects: [
                                    ComponentDefinition {
                                        id: aboutPageMA
                                        source: "about.qml"
                                    }
                                ]
                                onTriggered: {
                                    var profilePage = aboutPageMA.createObject();
                                    navPane.push(profilePage);
                                }
                            },
                            ActionItem {
                                id: help
                                title: "Help"
                                imageSource: "asset:///images/help.png"
                                ActionBar.placement: ActionBarPlacement.InOverflow
                                attachedObjects: [
                                    ComponentDefinition {
                                        id: helpPageMA
                                        source: "Help.qml"
                                    }
                                ]
                                onTriggered: {
                                    var profilePage = helpPageMA.createObject();
                                    navPane.push(profilePage);
                                }
                            },
                            ActionItem {
                                id: settings
                                title: "Settings"
                                imageSource: "asset:///images/settings.png"
                                ActionBar.placement: ActionBarPlacement.InOverflow
                                attachedObjects: [
                                    ComponentDefinition {
                                        id: settingsPageMA
                                        source: "Settings.qml"
                                    }
                                ]
                                onTriggered: {
                                    var profilePage = settingsPageMA.createObject();
                                    navPane.push(profilePage);
                                }
                            }
                        ]

                    }
                }
            }

            attachedObjects: [
                GroupDataModel {
                    id: feedsDataModel
                    sortingKeys: ["text"]
                    sortedAscending: false
                    grouping: ItemGrouping.None
                },
                DataSource {
                    id: feedsDataSource
                    source: "mydata.json"
                    type: DataSource.Json
                    onDataLoaded: {
                        feedsDataModel.clear();
                        feedsDataModel.insertList(data);
                    }
                    onError: {
                        console.log("Error Occured" + errorMessage);
                    }
                },
                ImagePaintDefinition {
                    id: back
                    repeatPattern: RepeatPattern.XY
                    imageSource: "asset:///images/bg.jpg"
                }

            ]
        }

My Customlistrow.qml

import bb.system 1.0
import bb.cascades 1.0
import bb.data 1.0  

      Container {
            layout: AbsoluteLayout {}
            Container{
                id: usr
                layoutProperties: AbsoluteLayoutProperties {
                    positionX: 0.0
                    positionY: 0.0
                }
                background: Color.create ("#ffffff")
                preferredWidth: 768
                preferredHeight:120
                Container{
                    layout: AbsoluteLayout {}
                    ImageView {
                        id:accountimg
                        imageSource: ListItemData.account
                        preferredWidth: 78
                        opacity: 1.0
                        layoutProperties: AbsoluteLayoutProperties {
                            positionX: 10.0
                            positionY: 16.0
                        }
                    }
                    Label {
                        id: username
                        text: ListItemData.username
                        textStyle.base: SystemDefaults.TextStyles.TitleText
                        multiline: true
                        textStyle.color: Color.Black
                        textStyle.textAlign: TextAlign.Left
                        layoutProperties: AbsoluteLayoutProperties {
                            positionX: 110.0
                            positionY: 25.0
                        }
                    }
                    ImageButton {
                        defaultImageSource: "asset:///images/delete.png"
                        pressedImageSource: "asset:///images/deletepressed.png"
                        preferredWidth: 78
                        opacity: 1.0
                        layoutProperties: AbsoluteLayoutProperties {
                            positionX: 680.0
                            positionY: 16.0
                        }
                        attachedObjects: [
                            SystemToast {
                                id: myQmlToast
                                body: username.text
                            }
                        ]
                        onClicked: {
                            myQmlToast.show()
                            objectAM.deleteAccountData(username.text,password.text,"asset:///images/twitter.png");
                        }
                    }
                    Divider {
                        layoutProperties: AbsoluteLayoutProperties {
                            positionX: 0.0
                            positionY: 118.0
                        }
                    }

                }

                gestureHandlers: [
                    LongPressHandler {
                        onLongPressed: {
                            id:finalx.play();
                            secondcontainer.visible = true;
                        }
                    }
                ]

                onTouch: {
                    if (event.isUp ()){
                        initialx.play();
                        secondcontainer.visible = false;
                    }
                }

                animations: [
                    FadeTransition {
                        id:finalx
                        toOpacity: 0
                        duration: 300
                    },
                    FadeTransition {
                        id:initialx
                        toOpacity: 1
                        duration: 300
                    }
                ]
            }
        }

in my PPC

QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
qml->setContextProperty("objectAM",this);

void AccountManager::deleteAccountData(QString user,QString pass,QString imgSource){
SystemToast *toast = new SystemToast();
toast->setBody("Entered delete account!!!");
toast->show();
}

I got your problem. Your CustomListrow does not receive the reference to your context "objectAM".

Please update your main.qml with the following... function and store the reference to the global object and then from your call of customListRow as "Qt.objectAM.deleteAccount ();

In the hand. QML on finished creation

onCreationCompleted: {}
Qt.objectAM = objectAM;
}

In CustomListRow...

onClicked: {}
myQmlToast.show)
objectAM.deleteAccountData (username.text, password.text, "asset:///images/twitter.png");
Qt.objectAM.deleteAccountData ("Me", "pwd", "asset:///images/twitter.png");
}

Hope it will work.

Thank you

Tags: BlackBerry Developers

Similar Questions

  • How to call the function cascade BlackBerry

    I begineer in blackberry c ++.

    I do two class is testobject and second in test .i call the onther text function average () and nexttext();

    so please how to call this function.

    // Default empty project template
    #include "TestObect.hpp"
    
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    
    TestObect::TestObect(bb::cascades::Application *app)
    : QObject(app)
    {
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
    
        // set created root object as a scene
        app->setScene(root);
    }
    
    void TestObect::test(){
    
        qDebug()<< "****************Naveen";
    }
    

    I insert also declared in the header file.

    Q_INVOKABLE Sub test();

    then I create another test class.

    /*
     * test.cpp
     *
     *  Created on: Apr 2, 2013
     *      Author: nksharma
     */
    
    #include "test.h"
    
    test::test() {
        // TODO Auto-generated constructor stub
    
    }
    
    void test:: nexttest(){
        qDebug()<<"***********Next test*********"
    
    }
    test::~test() {
        // TODO Auto-generated destructor stub
    }
    

    error in the file namespace,

    here in file herder

    the namespace error

    /*
     * test.h
     *
     *  Created on: Apr 2, 2013
     *      Author: nksharma
     */
    
    #ifndef TEST_H_
    #define TEST_H_
    
    class test {
    public:
        test();
        virtual ~test();
         Q_INVOKABLE void nexttest();
    };
    
    #endif /* TEST_H_ */
    

    You have a space between the colon and the n in:

    void test:: nexttest()
    

    Another thiing, if you are using Q_INVOKABLE, you must declare Q_OBJECT in your front header file public:

     


    If you're still having problems, try to clean up the project with Project > clean...

  • Call a function from C++ QML

    How to get there? How to call a function QML file c ++.

    I have a list view, and an indicator of activity in the qml and after extraction of xml data from a web service call, I'm unable to fix the datamodel as the XMLDatamodel does not work GroupDataModel works, but to make it work I have to use the data source and I can't set the property type of the DataSoure in c ++

    I'm getting below the code to load the data to GroupDataModel

    dataModel = new GroupDataModel();
    
    DataSource *ds = new DataSource(this);
    ds->setSource(QUrl("file://" + QDir::homePath() + "/model.xml"));
    
    ds->setType(bb::data::DataSourceType::Type.Xml);
    ds->setQuery("/ArrayOfPeople/People");
    

    Hereby, I get Compilation error to

    ds->setType(bb::data::DataSourceType.Xml);
    

    error: wait before create primary expression '.' token

    To work around, I want to load the data source and model of QML function, but this function must be called those the network connection has data extracted and stored in the file.

    Hel me please on this...

    You must give a signal of c ++ and set up a slot in qml connect.

    Example:

    C++

    mQmlDocument->setContextProperty("_myClass", myClass);
    
    emit mySignal()
    

    QML:

    _myClass.mySignal.connect(doSomething);
    
    function doSomething() {
        // logic here
    }
    
  • How to call a function in class library?

    Hi all

    Anyone know how to call a function in a library project?

    I have to call using a resource file in a library of a CLDC project project.

    So I write a simple test library and tried to access a function in my CLDC application.

    I tested with 2 following projects.

    1. a library project: TivitFirm

    Sorry I can't answer this from the point of view of the eclipse, I use JDE.  But I suspect that the approaches are similar, even if the detail is different, so maybe this will help you.

    In JDE, you have two options:

    (a) use a jar

    (b) create a dependent project

    (a) I usually use a jar.  So to do this I have a workspace is the library, I compile this, then in my project that uses it, I add the jar to build settings

    (b) in this case, you have two projects in the space of a job, and you say the main project that it is dependent on the library project.

    I hope this helps.

  • How to call a function stored in ADF

    How to call a function stored in the ADF?

    Example of function:

    create or replace

    FUNCTION SF_HELLOWORLD

    (

    NAME IN VARCHAR2

    ) RETURN VARCHAR2 AS

    BEGIN

    DBMS_OUTPUT. ENABLE (500000);

    DBMS_OUTPUT. Put_line (' Hello ' |) NAME | ", YOUR ATTEMPT IS SUCCESSFUL");

    -OUTPUT: = 'Hello'. NAME | ', YOUR ATTEMPT IS SUCCESSFUL;

    RETURN 'Hello'. NAME | ', YOUR ATTEMPT IS SUCCESSFUL;

    END SF_HELLOWORLD;

    ADF Code example:

    try {}

    System.out.println ("* beginning of the code *");

    String sql = "declare VARCHAR2 (2000) WISH;" begin to DESIRE: = SF_HELLOWORLD(:NAME); : WISH: = WISH; end; ";

    CallableStatement st = getDBTransaction () .createCallableStatement (sql, getDBTransaction(). DEFAULT VALUE);

    st.setObject ("NAME", "ABC"); replace the ABC with required param

    st.registerOutParameter ("WISHES", Types.VARCHAR);

    St.Execute ();

    System.out.println ("the output of the function DB is:" + st.getObject ("WISHES"));

    System.out.println ("* end of code *");

    } catch (Exception e) {e.printStackTrace () ;}

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • How to call javascript in an another QML

    Hello

    I have 2 file QML file qml 1A listview with ArrayDataModel as the source of data, when the user clicks on a line, it nav push another QML to change/remove, the arrayDataModel consist of a given amount of time, which 1 contains a qml file label to display the subtotal of all time values in the data model. I also have a javascript that will do a loop through the ArrayDataModel to update the label of the total time that I call the file onCreationCompleted 1 qml, all works well.

    However, when deleted, the listview will automatically update, now the problem is how can I trigger a refresh on qml file 1 in order to update this label.

    Here's the qml file 1

    import bb.cascades 1.0
    
    NavigationPane {
        id: navigationPane
        backButtonsVisible: false
        Page {
            titleBar: TitleBar {
                title: "Interval Timer"
            }
    
            content: Container {
                id: root
                background: Color.LightGray
    
                // Javascript definition
                function udpateTotalTimeLabel() {
                    var totalHour = 0, totalMinute = 0, totalSecond = 0;
                    var print = function(o) {
                        var str = '';
    
                        for (var p in o) {
                            if (typeof o[p] == 'string') {
                                str += p + ': ' + o[p] + '; 
    '; } else { str += p + ': {
    ' + print(o[p]) + '}'; } } return str; } for (var i = 0; i < eventsModel.size(); i ++) { var currentEvent = eventsModel.data([ i ]); totalHour += parseInt(currentEvent["EventHour"]); totalMinute += parseInt(currentEvent["EventMinute"]); totalSecond += parseInt(currentEvent["EventSecond"]); } if (totalHour < 10) totalHour = "0"+ totalHour; if (totalMinute < 10) totalMinute = "0" + totalMinute; if (totalSecond < 10) totalSecond = "0" + totalSecond; totalTimeLabel.text = totalHour + ":" + totalMinute + ":" + totalSecond; } ... Container { // Container for the total time id: digitsContainer preferredWidth: 780.0 background: Color.create(0.2, 0.2, 0.2) bottomPadding: 50.0 layout: DockLayout { } verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center topPadding: 50.0 topMargin: 0.0 Label { id: totalTimeLabel horizontalAlignment: HorizontalAlignment.Center text: "88 : 88" textStyle.fontSizeValue: 0.0 textStyle.lineHeight: 1.5 textStyle.textAlign: TextAlign.Center topMargin: 0.0 verticalAlignment: VerticalAlignment.Center // Apply a text style to create large, light gray text textStyle { base: SystemDefaults.TextStyles.BigText color: Color.Green } } // end of total time container } Container { // Conatiner for the Go button id: goButtonContainer layout: StackLayout { ..... onCreationCompleted: { root.udpateTotalTimeLabel(); console.log("No of EventsModel: " + eventsModel.size()); console.log("In sheet creationCompleted"); mainObj.dataReady.connect(root.onDataReady); }

    Here's the qml file 2

    import bb.cascades 1.0
    import bb.system 1.0
    
    Page {
        titleBar: TitleBar {
            title: "Edit Event Detail"
        }
        property alias txtEventName: eventNameText
        property alias pickEventTime: eventTimePicker
        property int selectedIndex: 0
    
        // Javascript implementation
    
        content: Container {
            id: editEventPage
    
            Container {
                layout: StackLayout {
                    orientation: LayoutOrientation.TopToBottom
                }
                Container {
                    Container {
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        leftPadding: 20.0
                        topPadding: 50.0
                        bottomPadding: 50.0
                        Label {
                            text: "Event Name"
                            preferredWidth: 200.0
                        }
                        TextField {
                            id: eventNameText
                            hintText: "Enter Event Name"
                            preferredWidth: 500.0
                        }
                    }
                    Container {
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        leftPadding: 20.0
                        Label {
                            text: "Event Time"
                            preferredWidth: 200.0
                        }
                        DateTimePicker {
                            id: eventTimePicker
                            mode: DateTimePickerMode.Timer
                            minuteInterval: 1
                            preferredWidth: 500.0
    
                            onValueChanged: {
                            }
    
                        }
                    }
                }
            }
        }
        // Attached Objects
        attachedObjects: [
            SystemDialog {
                id: dialogConfirmDelete
                title: "Confirm Delete"
                body: "Do you really want to delete this event?"
                onFinished: {
                    if (dialogConfirmDelete.result == SystemUiResult.ConfirmButtonSelection) {
                        console.log("Commiting to delete " + selectedIndex);
                        eventsModel.removeAt(selectedIndex);
                        navigationPane.pop();
                    }
                    else {
                        return;
                    }
                }
            }
        ]
        // Context actions
        actions: [
            ActionItem {
                title: "Save"
                ActionBar.placement:ActionBarPlacement.OnBar
    
                onTriggered: {
    
                }
            },
            ActionItem {
                title: "Delete"
                ActionBar.placement:ActionBarPlacement.OnBar
    
                onTriggered: {
                    dialogConfirmDelete.show();
                }
            },
            ActionItem {
                title: "Cancel"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    navigationPane.pop();
                }
            }
        ]
    }
    

    Thanks in advance

    NVMD, I solved it.

    QML 2 file-> refresh C++ function signal-> qml file 1 onDataReady call javascript to label fresh

  • How to call external functions without one. DLL (just using a.) H and. LIB file)?

    Hi all

    in fact, I am facing difficulties on how to get an external function is called in CVI (Version 2009).

    I was delivered with a. H file and a. LIB file to call an external function of my project CVI. The. H file looks like this:

    void exportedFunction(double *parameter);
    

    As far as I know, the external function was written with MS Visual C++ 6.

    So, I tried to link statically to the al extern like this function:

    -Add the. H file and the. LIB file to the CVI project

    -#include the. Folder H when I needed to call the external function

    -do the external function call

    During construction I get unresolved CVI external function call error, so this seems not work.

    I did some research autour and stood up with two possible problems. Maybe one of you can help me get a bit further and do work things out.

    (1) of the code of the 'real' function inside the DLL file that was not delivered to me. Or y at - it a way to get concrete results (calling external functions) with just one. H and a. LIB file (with none. Included DLL file)?

    (2) the external function does not export according to the rules of Style 'C '. The signature of the function in the. H file shows some things don't like

    extern "C" __declspec(dllexport) void __stdcall ...
    

    Or maybe it's a combination of these two issues (missing. DLL + bad export style function)?

    I guess I could get around the incorrect service export style when I managed to write a wrapper around the original function that actually uses Style C exporters. But I guess I need to the. DLL file for this test as well.

    Thank you very much for your answers.

    Best regards

    Bernd

    There is no need for the stuff of dllexport. There is also the option of a static library without any DLL.  But the "extern"C"' is essential, because it forces the C++ compiler, which was probably used to compile the library to use the C calling convention.

    If you are unable to ask the library vendor to provide a version that was compiled using C calling convention is the way to write a wrapper with VC ++ 6 around this library that functions using C calling convertion reexports. Something like

    extern 'C' myfunc1 type0 (type1 arg1,...) {

    Back to func1 (arg1,...);

    }

    for each function, you must use.

    BTW. "unresolved symbol" is the error message from the linker, you can expect if you try to bind the C code against a generation of library with the C++ calling convention.

  • How to call a function within a movieclip on the main timeline in CC animate canvas?

    Hello world...

    In AS3: Function (fnc name: myFunction) inside a Movieclip (mc1). I'll call you timeline mc1.myFunction ();

    But how to call AnimateCC canvas?

    If you have an instance of MovieClip named "mc" with the following code in to:

    This.Fun = function() {}

    Alert ("Hey!");

    }

    You can call this function (increased to 'this' within the MC) using the oon following the main timeline:

    var root = this;

    this.mc.addEventListener ("click", function() {}

    Console.log (root.mc.fun ());

    });

  • How to call a function in another function?

    When I press a button, I want a series of functions to be performed one after the other (they contain interpolations, but its not relevant) , all of them waiting for the previous must be filled. I want to put the series of functions within a function, so I can simply call this function to run all others. Animations work well, but I don't know how to call functions of in another function. It would also be necessary each function to wait until the previous one is complete, to run. This is a clear example of what I need to do:

    boton.onPress = animate;

    Function animate () {}

    Animation1 (onComplete: animation2);

    animation2 (onComplete: animation3);

    animation3;

    }

    Function () {Tween 1} animation1;

    Function () {Tween 2} animation2.

    Function animation3 () {Tween 3};

    any suggestions?

    which isn't really make sense unless you're tweening or do something of asynchronous (such as loading a file).

    Function b (): Void {}

    C() ;

    D() ;  C() executed when this line runs

    }

  • How to call the function

    Hello

    How to call functions defined by the user in the select statement.
    I have to concat all the result of columns, though kindly help me.

    When I run after sql statement


    SELECT orgin_pos. «, » || the sender | «, » || consigneename | «, » || vesselname | «, » || travelno | «, » || POS | «, » || ETD | «, » ||
    ETA | «, » || NOP | «, » || grossweight | «, » || CCube | «, » || ccontainer | «, » || CSize. «, » || CType | «, » || Goh | «, » || HBL | «, » ||
    get_sea_report (hbl) linername | «, » || CompanyName AS overseasagent
    OF vietanam_report_view_bd



    -of cluase not found where expected error is coming.
    Kindly help me.

    concerning
    Prakash P
    Handle:  808542
    Status Level:  Newbie
    Registered:  Nov 8, 2010
    Total Posts:  69
    Total Questions:  48 (45 unresolved)  
    
  • How 2 call a function db pls. ???

    Hello

    I created a function of db, I don't know how 2 call form
    CREATE OR REPLACE Function Balance_quantity_update    ( V_STORE_ID  IN NUMBER  ,  V_ITEM_SERIAL IN NUMBER   )
       RETURN NUMBER IS
        cnumber NUMBER;
        CURSOR CR_UPDATE  IS
    
        SELECT NVL( MAX( BALANCE_QTY ) , 0  )
         FROM WH_T_ITEMS
        WHERE STORE_ID    =  V_STORE_ID 
         AND    ITEM_SERIAL  = V_ITEM_SERIAL ;       
    BEGIN
    OPEN CR_UPDATE  ;
    FETCH CR_UPDATE   INTO cnumber;
    IF CR_UPDATE%notfound then     NULL ;
    ELSE
    
    LOOP
    
      UPDATE  WH_T_ITEMS
            SET    BALANCE_QTY          =  cnumber 
            WHERE  WH_T_ITEMS.STORE_ID  =  V_STORE_ID
            AND    ITEM_SERIAL          =  V_ITEM_SERIAL;    
    
    END LOOP ;
    END IF;
    
    CLOSE CR_UPDATE  ;
    RETURN cnumber;
    EXCEPTION
    WHEN OTHERS THEN
          raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END Balance_quantity_update; 
    /
    Can someone help me pls...

    Kind regards

    Abdetu...
    DECLARE
      vRetVal NUMBER;
    BEGIN
      vRetVal:=Balance_quantity_update(Pass_Store_ID, Pass_Item_Serial);
    END;
    

    -Clément

  • How to call a function plugin with command line parameters

    I wrote a plugin that processes an open document. The treatment can be started by selecting a menu item in Acrobat. To start the processing of the command line, I also wrote a small Visual Basic executable file that currently a bit activates the menu command. However, I now have to pass some parameters to the plugin. I managed to call a function plugin with settings by loading the .api as a library file in the VB executable. But it seems that the entire Acrobat SDK functionality is not initialized in this way. So I can't work with the PDF file. How can I call my function plugin with settings in Acrobat? Thomas

    You must establish a form of IAC (communication monitor) of your VB application with your plugin.

    Whether COM, DDE, IPC, named pipes, shared memory files share, etc. is to you...

  • How to call the function lavel root &amp; variable external loaded swf file

    I have little problem in as3.  I load 'mainmenu.swf' file "main.swf". through class loader. so now "main.swf" is children of parents 'mainmenu.swf' file how can call "main.swf" variable and function of "mainmenu.swf".

    The parent of the loaded swf file is the charger.  The main SWF is the parent of the charger.  Then to communicate with the main storyline of the loaded file can use:

    MovieClip (parent.parent) .someFunction ();

  • How to call the function procedure

    Hello

    I don't have any idea how can I call a function procedure?

    Your answer is apprecited.


    Thanks in advance
    create or replace fn
    return varchar2
    is
    begin
    
    --pass your procedure here
    
    proc1(20);
    
    end;
    

Maybe you are looking for