I need to call a function in a dynamic action is possible
I'm creating a value for a field...Now, here's a function I created...
Now the question is... In dynamic action... I put the body of the function as...
*: p200_combo_amt: = find_combo_amt(:p200_magazine_no,'COMBOONEYEAR'); *
Can we define the body of the function in da for the value set in the highest way?
and set the items affected on p200_combo_amt
But the value is not affected.... I'm doing something wrong?
Below you will find my function, etc.
I thought that p200_combo_amt should have been 5... but it shows me as null...
create or replace
function find_combo_amt (mmagazine_no number, mcombo_name varchar2)
Return number
is
number of mag_no1;
number of mamt;
Start
mamt: = 5;
return mamt;
end;
Though some may let me know its appreciated.
Thank you
Hello
Try the body of the function
DECLARE
l_num NUMBER;
BEGIN
l_num := find_combo_amt(:P200_MAGAZINE_NO, 'COMBOONEYEAR');
APEX_UTIL.SET_SESSION_STATE('P200_COMBO_AMT', l_num);
RETURN l_num;
END;
Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Tags: Database
Similar Questions
-
Call a function to perform multiple actions
Hello.
I can not call this function to save my life and would appreciate any help.
Background
I have a group of 8 boxes of exclusion option. I have a few buttos radio tracking that are visible only if a certain radio button is selected (rawValue 1).
However, I would like to put the following radio button on a null value when I click on any other value (rawValue 2-7) radio button. So considering there are 10 boxes followed, I don't want to have that a lot of code in the click event for each button of the original radio.
Goal
I'm doing a script object function that sets all the values to null radio button. I would like to invite then ideally this function on the click event of the other initial option buttons.
What I tried
script on the form1 of script object called "Refresh".
function refreshvalues() {}
followup1. RawValue = null;
followup2. RawValue = null;
followup3. RawValue = null;
followup4. RawValue = null;
... //and so on
}
script to the click event of the other original box
Form1.variables.Refresh.refreshvalues ();
I tried to put different things in the s (without result).
Solution:
When referencing objects in a script object function, you must use the absolute reference. I thought I could use Ctrl-click because the script is on the root node; which is incorrect. CTRL-SHIFT-click brought the right reference.
function has (form1)
{
xfa.resolveNode ("form1. Page1...
}
As you can see, having not form1 disabled the entire function.
-
call the function file actionscript Panel actions of a clip
I have a clip with a layer actions
can I call a function in a panel actionscript file shares?This actionscript file specify a class or not?
If this is not the case, use:
include "yourpath/yourfilename.as.
on any scenario.
any function that as a file will be added to the timeline that has the statement include, and you reference this function with normal to point your calling timeline syntax.
-
Call a BI Publisher of dynamic action report
Greetings,
I work with Apex 4.1.0. I created a BI Publisher queries and layout and them defined in shared for my application components. I also created a button as the 'Download printable report Query'. When I press the button, everything works as expected. The page variable is passed to the report and the report prints as it should.
My question is, can I run this report using a dynamic Action instead of a button?
Thank you
LarryHello
What such a button is submit the page and creates a branch to the zero page to the field asking for something like this:
PRINT_REPORT = my_report
So, to do the same in dynamic action, use an action "to execute javascript code" with something like this in it:
Location.href = ' f? p = & APP_ID.: 0: & SESSION. : PRINT_REPORT = my_report';
Luis
-
Need to call the javascript function when the page is loaded
Hello - I have a javascript function defined on Page 0 of my application. It is in the source of an unconditional
region whose view point is after the header.
I call successfully the function of event onchange on individual page elements. (The function
sets the value of an element based on the value of another).
But I also need to call the function when the page is loaded. The page is a form of data modification,
so many values is filled when it is loaded, and I need the dependent values populated
also.
I tried to add the call to function in the following way. It is not at all get called (alerts are not forthcoming)
and there is no error in the Firefox error console...
- as an event onload in individual items
-call directly to the edit HTML page header
-call directly from the HTML body of the edit page (which, from what I've read, sounds
as to execute onload and my page template doesn't have a defined substitution onload string).
In these 2 cases, I simply call it like: jsLookupValue ($v ("P8_OBJECTTYPE_ID"), "objecttype_id", "P8_OBJECTTYPE_NAME", "objecttype_name", "hdb_objecttype");
How can I do this?
Thank you
CarolIf you define the function on the zero page and any page you should be able to call using something like:
Have you tried to put just a statement alert() on the page in order to check that it runs just about anything?
-
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
-
Calling JavaScript function from c ++
Hello
I need to call a function javascript from c++ code. I have a webview in which an html page is opened.
I can connect to c ++ js using navigator.cascades.postMessage. I have to call vice versa.
c ++ for js now.
Concerning
Hello
I tried another way of calling JavaScript function continue in every 5 seconds.
Steps to follow:
1 import im .js QML file.
2. create a function in QML and call the java script of QMLfunctuion function.
3 the signal of the CPP in every 5 seconds and connect this signal to function in QML whare you call java script function.
4. it indirectly calls the java script function.
Thank you
Anand
-
How or where to call a function before apex_authentication.login?
Hi all
Using Oracle 11 GR 2, APEX 4.2, theme diagram 26 and LDAP authentication.
I have a BOOLEAN function that returns TRUE if a user belongs to a group in Active Directory, or FALSE if not and I need to call the function before the LDAP authentication. I tried to wrap it around the process connection as:
If ad_auth.is_member(:P101_USERNAME,'mygroup') then
(apex_authentication). Login
p_username = >: P101_USERNAME,.
p_password = >: P101_PASSWORD);
on the other
raise_application_error (-20001, 'you are not allowed to use this system');
end if;
If the function returns FALSE error displays as expected, but if it returns TRUE then I get the following error:
Error in code PLSQL raised during the processing plug-in.
ORA-44004: invalid qualified SQL name
It seems that this is not the proper place to call the function.
Can you please indicate where my function must be called from?
Thank you
H
Post edited by: Hien
Hello
instead of putting this code in the login page, you must instead use an authorization of the application.
(1) create a new permission of type 'Of PL/SQL function returns BOOLEAN' in shared with something like uses components
RETURN ad_auth.is_member(:APP_USER, 'mygroup');
2) go to "Modify the Application Properties"-> Security-> permission
(3) on your new authorization "authorisation scheme".
Application level permissions prevents a user connection and using your application, if they are not part of your ad group.
Concerning
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
-
Is it possible to call a function in a parent of a child component component in Flex 3?
It is probably a very basic question, but ask for this for awhile.
I need to call a function in a parent component and the appeal of its child element in Flex 3. Is there a way to access an element functions of the child element parent? I know that I can send an event for children and add a listener in the parent to call the function, but just wanted to know if could also directly call a function of parent of a child (similar to how you can call a function in the main mxml file using Application.application). Thank you
There are no performance issues, but it's ok if you use the child component in a single category. Suppose that you want to use the same component as a child to a lot of parents then if all the following
public interface IParentImplementation{ function callParentMethod(); }
and the parent of the class has to implement this 'IParentImplementation '.
usually to the next line
public class parentClass extends Canvas implements IParentImplementation{ public function callParentMethod():void{ //code } }
in children, you should do something like that.
(this.parent as IParentImplementation).callParentMethod();
Here the use of Interfaces, we're to decouple the parent and child
If this post answers your question or assistance, please mark it as such.
-
ItemRenderer how call a function (this.function).
I use an itemRenderer to populate datagrid miy with 3 custom buttons, but I need to call a function published in...
the beginning of my form, not in my RenderComponent,
HOW DO I...?
< mx:Component id = "ResultadoRender" >
< mx:VBox
Width = '80' height = '26 '.
horizontalAlign = "center" verticalAlign = "middle" >
< mx:HBox width = "100%" horizontalAlign = "center" >
< mx:Button label = "" visible = "true" icon="@Embed('.. /.. / icons/utilisateurs 2.png") "click =" ChecarBoton (); "width ="24"/ >
< mx:Button label = "" visible = "true" icon="@Embed('.. /.. utilisateur green.png/icons /')" click = "ChecarBoton (); "width ="24"/ >
< mx:Button label = "" visible = "true" icon="@Embed('.. /.. / icons/display.png')" click = "ChecarBoton (); "width ="24"/ >
< / mx:HBox >
< / mx:VBox >
< / mx:Component >
< mx:DataGrid x = "10" y = "40" width = "700" height = "382" id = "dtgUsuarios" >
< mx:columns >
< mx:DataGridColumn headerText = "Number (s)" dataField = "NAME" / >
< mx:DataGridColumn headerText = "User number" dataField = "NAME" / >
< mx:DataGridColumn headerText = "Number Grupo" dataField = "NAME" / >
< mx:DataGridColumn headerText = "Options" dataField = "NAME" itemRenderer = "{ResultadoRender}" / >
< / mx:columns >
< / mx:DataGrid >Sorry, I found the answer...
-
Alertify Plugin - how to call via Javascript and not by a dynamic Action
Hello
Environment: Oracle APEX v4.2.1 | Oracle 11g R2 | IE8 Web browser
Hoping someone can help, I use the plugin Alertify via a dynamic Action, but my question is, instead of use this via a dynamic Action, I actually want to make the same call I do via a dynamic Action but rather using javascript.
So, by using a shape any JavaScript API in the Alertify plugin, I want to call an alert notification standard with the message and the delay effect until it disappears once more.
Is it possible to call this plugin in this nature using javascript?
Thank you.
Tony.
You can always use the plugin and a custom event.
Create a dynamic action:
- Event: Custom
- Custom event: ALERTIFY_DELAY
- Selection type: jQuery Selector
- Selector: body
- 1 real action:
Add the following code to the section "run when Page Loads:
window.setTimeout(function(){ $('body').trigger('ALERTIFY_DELAY'); }, 3000);
This will cause the "ALERTIFY_DELAY" event fires after three seconds.
-
When using a call library function node, and the program came out, I get an error "has encountered a problem and needs to close" having to do with ntdll. It does not stop the program from running properly, but it's annoying. Any ideas?
You should NOT specify the full path to a DLL system in the configuration dial the node of the library. This mess something in the newer versions of Windows. Instead just enter the name of the DLL only. It is sort of a bug in LabVIEW not automatically detect the system paths and shorten the path accordingly in itself, but this is how things have been for a long time and you just need to be a little careful.
Also the return value must be really set up to be an integer of size of pointer, since a HANDFUL is really a pointer under Windows and that the first parameter is also better configured as such. The way you did works very well for LabVIEW 32 Bit but will misbehave in LabVIEW 64 Bit.
-
Crash when moving from a structure in a call library function node
I am trying to use a type of Fortran (which I think is similar to a struct) in a LabVIEW call library function node. I read a few remedies to this topic, but I'm not quite sure if I need to add the name of the parameter list of the node structure. Now, when I run my VI it closed just LabVIEW entirely with no message. I've attached the VI that I use and code source fortran, which compiles in my .dll.
Any help is appreciated.
Do you know if Fortran passes parameters by value or by reference? I never used it. A very quick search on the internet gives to think that the parameters must be passed by reference. If this is the case, then you must pass the entire cluster as the parameter single, similar to Fortran statement. You must also change the order of cluster to match the order in the Fortran statement. Try the attached VI.
-
Call the function in LabView from a DLL, and then access the global variable of DLL
I've created a DLL in LabWindows with a function and structure. I want to call the function from LabView and then access the overall structure. I am able to call the function in the DLL with a "call library function node" and has access to the return value, but I can't understand how to access the overall structure. The structure is declared in the header DLL with __declspec (dllimport) struct parameters file.
Is it possible to access this structure without using the library of network variables?
My guess is that you need two bytes of padding after "in_out" and another to two bytes of padding after "anin." The reason being that ints are 4 bytes, and most of them C compilers will align on 4-byte boundaries. The struct will naturally start to such a limit (in fact, in Windows, it will probably start to an 8 byte boundary). If you then count bytes in your structure, you are 70 byte after "in_out." 70 is not divisible by 4, so you need 2 bytes more to reach the next 4 byte boundary. You can also you could reorganize your struct so that "anin" follows "in_out" and this is probably the best option if it won't cause you other problems.
Unlike most C compilers, LabVIEW compressed structures as closely as possible, without filling. I don't know enough about the history of LabVIEW and internal parts to explain the reasons and to do this performance penalty, but, as choice of LabVIEW "endianness", it is probably a remnant of the first versions of LabVIEW that were running on the Mac.
If for some reason you want to force your C struct to match package LabVIEW, you can use the #pragma pack (x) directive, but I wouldn't recommend that here because you can control the C and LabVIEW.
EDIT: in the cases where it was not clear, add padding to your cluster of LabVIEW, insert appropriate size or items at the place desired in the cluster.
-
call library function node to paste files
Hello, I use the call library function node to paste the text to and from the Clipboard and works well. Now, I'm trying to figure out how to paste a file from the windows file Explorer. So if I highlights a file in the Windows File Explorer and press Ctrl-C, how can I use the library function node spit a file path? It would be even better if I could highlight a bunch of files and then paste a table of paths, but that can wait. Also, I use a Listbox MC, so I can't use drag-and - event trigger move a control path of the file.
Also, I use WinXP and LV 7.1.
Thank you
Pat
UPDATE
I had little time to play with it and really out of curiosity on my part that I have whipped up a simple example to drag and drop from the Explorer in LabVIEW. I wrote the code in 7.1, but I have 7.1 on a virtual machine, and the DragQueryFiles did not work. I don't know if it was due to the fact that I was running on a virtual machine. I did, however, run the code in 8.2 and it works correctly. 8.2, I was able to drag a bunch of files in front of the VI, and the string table fills with file names. I am especially to see if it might work for you. You will need to get the Windows Message Queue library. Simply place the library in the same folder where you unzip the attached file.
Maybe you are looking for
-
Convert a numeric value to text
First problem- Convert a numeric value to text Convert currency value in words. e.g. Rs. 10, 000 would become rupees ten thousand only RS 1,50,749.77 would become rupees one Lakh fifty eight thousand seven hundred forty-nine and seventy seven Paise o
-
Satellite A210-199 does not start successfully after the BIOS update
Hello I've got Sat A210-199.Yesterday I updated the BIOS, and after that problems occurred: While restarting my computer does not start. When I enter the BIOS after a while, it shuts down.I guess all this because the temperature of the CPU: When I do
-
He's stopped rotating screen a1
My screen stopped rotating. Went to settings/display and the screen auto-sotate is grayed out and canoe be checked. Any suggestions?
-
How can I control external devices using a stand-alone touchscreen with a LabVIEW app
For my senior project my group design and created a vehicle for extended range hybrid with 90 Li + battery which is charged by a 15 kW generator and/or who is also charged by a 5 kW fuel cell. Currently, our system is able to measure the tension on b
-
Impossible to add a custom URI handler
These instructions to create a custom URI template do not work for me. I create the registry keys exactly as described, but my Protocol does not appear in 'Control custom Programs\Set Associations' and clicking on my URIS in IE in does not run my pro