Unable to create a dynamic action ALERT to be generated on a Select List when particular value is selected.
Hi everyone, this should be so easy, yet I am stuck.
I have a form region with an item P110_VESSEL_ID. This item is a select list. It is based on the query:
select distinct v.vessel_name, v.vessel_id
from vessels vessels v, frequent_fishermen ff
where ff.dea_permit_id = :G_PERMIT_ID and
ff:vessel_id = v.vessel_id
UNION
select v.vessel_name, v.vessel_id
from apex_collections a, vessels v
where collection_name = 'SUPVES_COLLECTION' and
a.c002 = v.vessel_id
If the user decides against the values in the select list query, they may opt to SELECT ALL VALUES. This SELECT ALL VALUES is a POST ELEMENT TEXT on P110_VESSEL_ID.
<a id="popVessels" href="#"><font color=blue>Select from ALL Vessels</a>
This all works fine.
The issue is that when the user selects a vessel name = 'UNKNOWN' and it's corresponding vessel_id value, I would like an ALERT to appear indicating that they should double check that the vessel is UNKNOWN and not that the is no vessel.
I created a dynamic action
event= change
select type = item
item = P110_VESSEL_ID
True ACtion #1 is the ALERT.
I currently have no other logic, but cannot even get this to work. Any thoughts. I have also tried the SELECT TYPE = jQuery Selector = select[name='P110_VESSEL_ID'] but that does not work either (though I am not certain if the value should be P110_VESSEL_ID or the static name of VESSEL_ID).
Any help is appreciated.
ps. the page is not submitted when the vessel is changed. There is other data that needs to be entered both in this region and others and many validations run when submit, so the submit would not be an option.
thanks again,
Karen
KarenH,
KarenH wrote:
I created a dynamic action
event= change
select type = item
item = P110_VESSEL_ID
True ACtion #1 is the ALERT.
This should work. Sometimes I've see where there is other javascript on the page that may have some errors and is causing the dynamic action code to not be executed. Use your favorite browser script console to try and determine if this may be the case.
--Jeff
P.S. Your jQuery selector can be: select#P110_VESSEL_ID
Similar Messages
-
How to create a dynamic action from link column in classic report
I Have an apex page that display a modal window utilizing jquery. In the modal window I have a classic report with a link column that I want to capture its click event.
I was thinking I could create a dynamic action with selection type=jquery selector. Not for sure if I need to do anything on link column and do not know the syntax
for jquery selector. Would appreciate any help or direction???Thank you for your response. I am very new to Jquery so don't understand all that well.
What I did:
I created a dynamic action
Event: Click
Selection Type: jQuery Selector
jQuery Selector: tdheaders
Created True Actions
I created an alert to see if this is being executed.
Alert 'I made it here'
What I have:
I created a report region with the following query:
Select empno, ename, 'SELECT' from emp
where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
or :P2_SEARCHPU is null)
I created 'SELECT' column as Link Column
Report Attributes
Link Text Select
Target Page in this Application
Page 2
Region Header
<div id="ModalForm2" title="Employee List" style="display:none">
Region Footer
</div>
This report is displayed in a modal form when a button is clicked.
Code for modal window in Page Header
<script type="text/javascript">
$( function() {
$('#ModalForm2').dialog(
{ modal : true ,
autoOpen : false ,
buttons : {
Cancel : function() {
closeForm2();
function openForm2()
$('#ModalForm2').dialog('open');
function closeForm2()
$('#ModalForm2 input[type="text"]').val('');
$('#ModalForm2').dialog('close');
</script>
I am trying to capture the click event on the link column of the report in the modal form. I want to pass a couple of column values
back to the main form and close the modal window. I do not want to do the submit that happens if I click on the link column and link back to the main page(2)
If I let the submit to happen, all other entered fields are cleared on my main form.
Just don't understand the jQuery selector. I have no problem catching the button clicks on the modal form. -
Creating two dynamic action in a page
Hi,
I have created two dynamic action under the page_items(p6_item,p6_item1 both are hidden).
First dynamic action under p6_item is action1.
properties of action Event-> Change
Selection_Type->Item
Item-> p6_Item
Value-> show
(When i Hit the button viewall it should only display region1)
True Action:
sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region1
sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
False action:
sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
Second Dynamic action under p6_item1 is action2
properties of action Event-> Change
Selection_Type->Item
Item-> p6_Item1
Value-> show
(When i Hit the button Search it should only display region2)
True Action:
sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region2
sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
False action:
sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
Here the problem is, when i hit the viewall button it is not displaying region1 instead region2 is displayin region1 is hidden. when i hit the Search Button it is displaying region2 , region1 is hidden. Foer me, When viewall hitted region1 should only display not region2. When Search button hitted region2 should only display not region1.Hi little foot,
I have created my page in apex.oracle.com. you can clearly see the issue which i am having in the page.
Workspace:listen
Username: [email protected]
Password:apex
Application Name: 45665
Page: page1 -
How can i create a dynamic structure based on my input from a select-option
Hello,
This is to develop a custom report in FI for G/L Balance based on company code.
I have an input select-option for Company code.
Based on the range of company code my output layout should be modified.
I am not very much sure to create a dynamic internal based on the input from a select-option.
Can any one please let me know how can i do this.
I would appreciate for anyone who turns up quickly.
Thank you,
With regs,
Anitha Joss.See the following program, it builds a dynamic internal table based on the company codes from the select option.
report zrich_0001 .
type-pools: slis.
field-symbols: <dyn_table> type standard table,
<dyn_wa>.
data: alv_fldcat type slis_t_fieldcat_alv,
it_fldcat type lvc_t_fcat.
data: it001 type table of t001 with header line.
selection-screen begin of block b1 with frame title text-001.
select-options: s_bukrs for it001-bukrs.
selection-screen end of block b1.
start-of-selection.
select * into table it001 from t001
where bukrs in s_bukrs.
perform build_dyn_itab.
* Build_dyn_itab
form build_dyn_itab.
data: index(3) type c.
data: new_table type ref to data,
new_line type ref to data,
wa_it_fldcat type lvc_s_fcat.
clear wa_it_fldcat.
wa_it_fldcat-fieldname = 'PERIOD' .
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 6.
append wa_it_fldcat to it_fldcat .
loop at it001.
clear wa_it_fldcat.
wa_it_fldcat-fieldname = it001-bukrs .
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 4.
append wa_it_fldcat to it_fldcat .
endloop.
* Create dynamic internal table and assign to FS
call method cl_alv_table_create=>create_dynamic_table
exporting
it_fieldcatalog = it_fldcat
importing
ep_table = new_table.
assign new_table->* to <dyn_table>.
* Create dynamic work area and assign to FS
create data new_line like line of <dyn_table>.
assign new_line->* to <dyn_wa>.
endform.
Regards,
Rich Heilman -
Can we create a dynamic action for Training and Event Management???
Hi All
i need to configure automatic email generation for an employee when he gets booked for a training program in the training and event management module. can we use a dynamic action for it? and how to configure it?? I also guess that i have to use the Feature MAILS for it. but i am not sure abt it and also not sure how to configure it. I will really appreciate if someone can provide me with a step to step configuration for the same. Its urgently sought.
Thanks and RegardsNotifications in T&E are done through Workflow.Dynamic Actions are only for PA Infotypes.
~Suresh -
ADF Mobile: Dynamic action calls based on a listView item selection
I've currently got some supporting data that provides the "name", "description", an "image", and a "navigation" per row. I populate a listView based on this collection and assign the name to the list item text, the image to the list item image, and I am attempting to create some dynamic navigation to the next mobile page based on the value of the "navigation" in the data.
I attempted to use #{row.navigation} as the action for the listItem, but I am getting an error "Cannot find property row" at run-time when I click on an element. I know the row data for navigation is correctly there because I can feed the #{row.navigation} into the listItem's text property and it shows up correctly there. I also made sure that the value in this navigation corresponds to a valid action in the task.
Is there another way to do this?
Jdev 11.1.2.3
ADF Mobile
Thanks,
JimThanks for a quick response.
I think I'm missing something since it did not populate any value.
Here is what I did based on the code you provided.
I've created dynamic action on field Type to execute a javascript code you provided when the value in this filed changes. The output or the items(s) affected is set to Address1 field. I didn't change the code except replacing the the actual value of Type and Label.
Then I went to Address1 field and on the 'Label' I put the code <span id="dynamic_label"></span>. It returns nothing.
Am I missing anything? Am I suppose to change something else as well.
Your help is really appreciated. -
Unable to create working dynamic distribution list based on manager
Hi,
I am struggling to create a working dynamic distribution group. I am following the instructions at http://help.outlook.com/en-gb/140/Dd264647.aspx.
My intent is to create DDG's based on a user's manager and their job title. In my org, sales managers will typically have 3 teams reporting to them. In our AD, this would be marked by a 3-4 letter acronym in the job title field (CSO,DCO,SDCO).
I am trying to create distribution groups for use by their manager by having the manager and job title item as the filter, using the following script:
New-DynamicDistributionGroup -Name "GROUPNAME" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (manager -eq 'Managername') -and (title -eq 'ACRONYM')}
As an aside, I am unable to find if the manager object should be an alias, upn or ad object. I've tried with all with no success.
No matter what permutations of the above script I try, nothing seems to work. The group creates, but does not work at all.
Any help you can provide would be very much appreciated!Hi Ed,
I did try that, and as it turned out, I was using the wrong powershell from the start.
The commands above are for Office 365, not on-prem Exchange 2013. Having spoken to Microsoft, it seems like the AD object for manager may not be a filterable option at all, I'm waiting to hear back.
If this can help jog anyone's mind, the commands we're looking towards now look something like this:
New-DynamicDistributionGroup -Name "testname" -Alias "testname" -IncludedRecipients "MailboxUsers,MailContacts" -OrganizationalUnit "domain.local/users" -ConditionalDepartment "Test" -RecipientContainer "domain.local"
We're still looking for a filter for manager in there, and I'll update the thread if I get anything worthy of note. Bear in mind that it's going to be difficult to settle for anything less than the manager object to filter by, as our requirements pretty
much demand it.
Thanks all. -
Dynamic action - show/hide region based on LOV which returns ID
Hi folks,
this should be simple, so someone who works with dynamic actions.
I have a LOV which is based on below query:
select OBJECT_ID, KOD
from x_data x;
retuns:
ID KOD
492961 BMW
492964 VOLVO
492960 MERCEDES
492963 VOLKSWAGEN
492959 SKODAItem :P200_KOD is based on LOV which displays KOD and returns ID.
On my page I have also 1 region called TEST_REGION.
I would like to set up a dynamic action shich will SHOW/HIDE a TEST_REGION based on selected value in item :P200_KOD (LOV). Region should be showed if displayed (KOD) value of selected ID starts with 'V%'
By other words, if below query returns any record, then SHOW, else HIDE:
select *
from x_data x
where x.kod like 'V%'
and x.object_id = :P200_KOD;How should I define a triggering condition for dynamic action, for item :P200_KOD?
Thanks,
TomasHi,
One way:
Create advanced dynamic action.
Name : Hide region
Event : Change
Selection Type : Item(s)
Items(s) : P200_KOD
Condition : JavaScript Expression
Value :
$(this.triggeringElement).children("option:selected").html().substring(0,1) !== "V"Action : Hide
Fire On Page Load : True
Hide all page items on the same line : No
False Action : Show
Fire On Page Load : True
Show all page items on the same line : No
Selection Type : Region
Region : TEST_REGION
Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0 -
11gxe , apex 4.x ,
hi all ,
i am new to apex ,
i want to create a button , then create a dynamic action to it to do an action , but when i create the button , then go to
create a dynamic action , i see the a lot of events but when i go to pick an item to create the dynamic action for , i do not see the buttons created ?
thanksHi,
I see. Your local install of Apex is version 4.0, apperantly it is not supported to create a dynamic action that is triggered by a button.
You can, with some effort, create a dynamic action on a button. You'll need to create a button with 'Button Style' set to 'HTML button' and add a custom class or id to that button under the 'Button Attributes'. For example:
http://vincentdeelen.com/images/otn/da_button_layout.png
Then create a dynamic action, choose 'jQuery selector' as selection type and then use the class or the id of the button as selector. The outcome should look something like this:
http://vincentdeelen.com/images/otn/da_da_layout.png
For more info on jQuery and selectors, study the jQuery website: http://www.jquery.com
Regards,
Vincent -
About creating an AJAX page with DML procedures using dynamic actions
About creating an AJAX page with DML procedures in APEX using dynamic actions. Help with limitations.
I want to share my experience, creating AJAX procedures in APEX 4.0.
LIMITATIONS
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ??
Here are the steps to create an AJAX Updatable Form using the sample table DEPTS. You can see the demo here: [http://apex.oracle.com/pls/apex/f?p=15488:1]
1) Create a blank page
2) Add a Report Region for departments (It shows the columns deptno, dname and loc).
3) Add an HTML Region and create the elements to edit a Department.
a. P1_DEPTNO (Hidden to store PK)
b. P1_DNAME (Text Field)
c. P1_LOC (Text Field)
4) You also have to create a hidden element called P1_ACTION. This will help to trigger dynamic actions to perform DMLs.
5) Open Page Attributes and in the HTML Header Section include the following code.
<script>
function doSelect(pId){
$x_Value(‘P1_DEPTNO’,pId);
$x_Value(‘P1_ACTION’,’SELECT’);
</script>
6) Modify the column DEPTNO in the report, to add column link. In the link text you can use #DEPTNO# , in target you must select ‘URL ‘ and in the URL field write javascript:doSelect(#DEPTNO#);
7) Create the following Buttons in the Form Region.
CANCEL Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CANCEL’);
NEW Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’NEW’);
SAVE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’UPDATE’);
CREATE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CREATE’);
8) Create the following Dynamic Action to Select a Department
Name: Select Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: SELECT
Action: Execute PL/SQL Code
PL/SQL Code:
SELECT dname, loc
INTO :P1_DNAME, :P1_LOC
FROM dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
The first limitation, the value of page elements don’t do refresh so I added the following true actions to the dynamic action AFTER Execute PL/SQL Code.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
9) Create the following Dynamic Action to Update a Department
Name: Update Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
UPDATE dept SET
dname = :P1_DNAME,
loc = :P1_LOC
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
10) Create the following Dynamic Action to Create a Department
Name: Create Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
INSERT INTO dept(deptno,dname,loc)
VALUES (:P1_DEPTNO,:P1_DNAME,:P1_LOC);
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Function Body
PL/SQL Function Body:
DECLARE
v_pk NUMBER;
BEGIN
SELECT DEPT_SEQ.nextval INTO v_pk FROM DUAL;; -- or any other existing sequence
RETURN v_pk;
END;
Page Items to submit: P1_DEPTNO
Affected Elements: Item P1_DEPTNO
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
11) Create the following Dynamic Action to delete a department
Name: Delete Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: DELETE
Action: Execute PL/SQL Code
PL/SQL Code:
DELETE dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO
Don’t include any false action and create the Dynamic Action.
Include the following True Actions AFTER the Execute PL/SQL Code true Action.
Action: Refresh
Affected Elements: Region Departments
Action: Clear
Unmark ‘Fire on page load’
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC
12) Finally Create the following Dynamic Action for the NEW event
Name: New Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: NEW
Action: Clear
Unmark *‘Fire on page load’*
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOCI need some help to solve this issues
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ?? -
Dynamic action on LOV using tabular form
Hello,
I realize this has likely been dealt with somewhere already, but I'm going to ask anyway.
I have a master/detail form. The detail form has an option to add rows. I have created a dynamic action as defined below...
True Action:
Sequence: 10
Action: Javascript Expression
Fire On Page Load: No
Code: $(this.triggeringElement ).val()
Sequence: 20
Action: SQL Statement
Fire On Page Load: No
Code: select travel_status from territories_summary_v where territory_code=:P3_FIND_COUNTRY_CODE and language='US';
Sequence: 30
Action: Javascript Expression
Fire On Page Load: No
Code: $(this.triggeringElement).closest("tr").find("td[headers='TRAVEL_STATUS_CODE'] input").val($v('P3_FIND_COLOR'));
The P3_FIND_COLOR and P3_FIND_COUNTRY_CODE are defined as hidden fields.
This DA seems to partially work. It will update the travel status code with the proper value for each line. I can see it on screen. But when I apply changes it doesn't save this particular value to the database. If I physically go to the field and type something in, it will save this field. All other values save ok... just not this column .. regardless of the number of detail lines.
Further to this, when I add a row and a new blank row appears, if I change the country, the DA does not fire at all. I've put an alert in on sequence 10 and the alert will fire for a pre-existing row in the table... but not a new row. I would have thought that because it's an onChange DA associated with the country code, it would work for each new row regardless of how many rows are added or whether its a new row vs existing row.
So the first issue is why it won't save the data that is populated in travel status code when I can clearly see it there? Secondly, why this DA is not firing when I add a new row?
If anyone can help me it would be appreciated. I've done a lot of searches but have not come up with much where these issues are concerned.There is no way to make a good guess on this without an example. It is hard to say what the reason could be.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
https://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
Dynamic actions and tabular forms
I'm trying to attach a dynamic action to a tabular form item, and it's not working the way I'm expecting it to. Since you can't attach dynamic actions to parts of a tabular form in the "normal" way that you can for page items, I'm using JQuery selectors to pick the parts to link to. For links (such as opening a pop-up window with more information about a row), this is working fine. But I'm really struggling to attach to a simple checkbox.
On my tabular form, I've got a simple checkbox. I've tried putting text in the Element Attributes, Element Option Attributes, CSS Class, CSS Style, and HTML Expression fields, but none of them appear to be making it through to the source code of the generated page. Which means, I think, that I'm limited to using a jQuery Selector along the lines of "input[name=f07]", but creating a dynamic action on click or on change with that selector doesn't seem to ever fire.
What am I missing?
-DavidOk, this is interesting. When I tried to mock this up on apex.oracle.com, I was able to make it work (though I had to change the selector to "input[name=f07_NOSUBMIT]", which means I'm going to have to walk the DOM to get the actual value...but I'm pretty sure I can handle that). After a bit of scratching my head, I eventually found that my pop-up dynamic action was somehow or other blocking the checkbox dynamic action from firing. Changing the sequence so that the checkbox DA happens first allows them both to fire.
Here's the javascript from the pop-up DA (it's based on this post by Havard Kristiansen):
/* prevent default behavior on click */
var trgt = this.triggeringElement.href;
var e = this.browserEvent;
e.preventDefault();
/* Trigger JQuery UI dialog */
var horizontalPadding = 30;
var verticalPadding = 30;
$('<iframe id="modalDialog" src="' + trgt + '" />').dialog({
title: "Item Details",
autoOpen: true,
width: 570,
height: 400,
modal: true,
close: function(event, ui) {$(this).remove();},
overlay: {
opacity: 0.5,
background: "black"}
}).width(570 - horizontalPadding).height(400 - verticalPadding);
return false;At this point, the checkbox DA's action is simply an alert box. Like I said, I'm not sure what's going on, but I'm at least able to move forward...
-David -
APEX 4.0.1: restriction on maximum number of dynamic actions on a page?
Hello,
I would like to know if there is a restriction on the number of dynamic actions on a page.
I have a page with 29 dynamic actions. All works fine on the page.
If I create another dynamic action that only display an alert or does anything else, I have the error message HTTP 404 when I try do display the page.
If I delete an old dynamic action and create a new one then the page works fine.
So after several tests, it seems that there is a maximum number of DA on a page but can someone confirm that?
Environment:
APEX 4.0.1
Embedded PL/SQL Gateway
Regards,
SddcI stand corrected in that some limits are acknowledged:
http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/limits.htm
Where are people getting these ideas that normal form or "Codd" said that there was a
limit on columns and if you had more columns than a database product found convenient to implement that it was a 'design defect'? I took database management as an undergrad and in grad school and there was NO rule about number of columns. Anyone who says there is is shoveling pure bs. Even if there were such a rule, and there isn't, it is very inadvisable for a vendor who allows 1000 columns in a table in their database product to impose a limit that is 1/10 of that in an interface to their database. (And btw you can create a table (A 'wide' table, in sqlserver with 30,000 columns according to this:
http://msdn.microsoft.com/en-us/library/ms143432.aspx )
Artificially dividing up data instruments that were administered/collected at one time into pieces in separate tables, just to make a vendor's developers' life easier and more convenient, or just to keep the product from competing with the extremely extremely expensive "enterprise" products the vendor sells, is not acceptable.
Splitting highly related data into separate tables for no reason other than the
interface is not capable of handling it, creates a load of problems that would not otherwise
exist. What if the user enters less than all the parts? Then someone has to figure out if the parts not entered had no data recorded in the source or if they were simply accidentally skipped. Basically someone or a program would have to enter those pages and denote they had no content if that were the case. Much more logic, much more opportunity for error vs keeping data that was highly associated together.
A software vendor can apply whatever limits they want and no one can stop them, that's for sure. But what would be better here is making these more clear up front. This is a "rad" development tool for very small and not hugely complex forms and reports. Be clear and there will not be people royally steamed over spending their time and money evaluating a product that is not designed to do much of what people need it to do. This stuff should be in an FAQ and the top of the forum. -
Is it possible in a before-page-submit dynamic action to cancel processing?
I have a page where when the user submits, I check certain conditions and prompt the user with a confirmation ("are you really sure you want to submit this...?") and if they press OK (javascript true) continue to submit as normal, else (javascript false) the page should stop submitting.
I know I can do this by putting Javascript code on whatever buttons I need to such that they're prompted from whatever appropriate button but I then thought it might be more elegant to just put it in one place in a before-page-submit DA.
So I figured that in my DA for a before-page-submit I'd try explicitly returning true or false thinking that I returned true it would continue to submit but if false it would stop submitting. Unfortunately no dice.
Example:
Dynamic Action
Before Page Submit
Condition (Javascript Expression): (this.data=="SAVE")||(this.data=="MULTI_ROW_DELETE")
var response=checkPbcDml();
alert(response); //for debugging and I do properly get true or false back
if(!response)
return(false);
else
return(true);So I'd like return(false) to stop the submission process (was only guessing that it'd work, and it doesn't). Is there any other javascript command that I could execute to cancel the submission processing?
Yes I know that I really can do this on my buttons and it'll work...
javascript:if(checkPbcDml())apex.confirm(htmldb_delete_message,'DELETE');
javascript:if(checkPbcDml())apex.submit('SAVE');...but was just hoping to do something in the DA as a matter of elegance to put code in one place rather than two places.
Edited by: gti_matt on Jun 14, 2012 10:30 AMtrent wrote:
Personally, I'd just try to utilise the confirm action - probably achieved by incorporating the checkPbcDml() function into the dynamic action condition, at the sime time you are checking the request value.Aha! That's it.
The "Confirm" DA action's OK/Cancel response is evaluated by the "Before Page Submit" and cancels the processing.
What I did was:
1. Looked at my old function's conditions:
function checkPbcDml()
if (($v('P265_FREEZE_FLAG')=='Y') && ($v('P265_PUR_MFG')=='M'))
return(true);
else
return(confirm("Part Bid Categories information will only be saved from this page for frozen &F182_MAKE_TEXT. parts.\nDo you want to continue with this action anyway?"));
}2. Appended them to the existing DA conditions that were evaluating the save or multi-row-delete request:
((this.data=="SAVE")||(this.data=="MULTI_ROW_DELETE")) && (!(($v('P265_FREEZE_FLAG')=='Y') && ($v('P265_PUR_MFG')=='M')))3. And created a Confirm action with that message text and removed my checkPbcDml() function. -
Good Afternoon, everyone.
This is my problem, I created a dynamic action to append a value of a
text field with autocomplete named P3_OBJECT on a shuttle when I press the button "add".
I use javascript for that.
But I only want for this action to be triggered when this query return
at least one row: SELECT DISTINCT OWNER||'.'||OBJECT_NAME
FROM DBA_OBJECTS
WHERE OWNER||'.'||OBJECT_TYPE=:P3_OBJECT;
I tried to put the dynamic action to be conditional with a sql exist expression, but it didn't work.
Can anyone give me any suggestions on how I can solve this problem?
Regards, Leandro Freitas.Oh, i see. Got it. So if you just change your javascript to pop the value of P3_OBJECT up in an alert does it work? Just want to rule out JS logic error.
I'm also assuming you get no javascript syntax errors in your system console either?
Also, did you try:
WHERE UPPER(OBJECT_TYPE) = UPPER(:P3_OBJECT)
Or if you remove the condition, does the value pass? Again, just dumping out an alert?
It could be that the condition is always failing.
Having to start with basic stuff. Flying a little blind.
Maybe you are looking for
-
Reg: ALV report download to excel currency columns
Hi All, While downloading the alv report to excel, currency fields with negative sign(less than 0) is downloading without negative sign. And field catalog wad declared as 'CURR' field for that particular column, if I declared as 'CHAR', i am getting
-
How to determine the data type of a text field
hi, I have a text field, now i need to know what data type i have given? it may be numerical, string, date & boolean data type. when i write something after that it will determine the data type of the input text? is it possible in jsp? Is there anyon
-
Hi, Please send me 1> CRM Base Customizing Cookbook and any helpful functional documents. 2> Also the CR100 Document, <b>Will award points for each helpful post.</b> my mailid - [email protected] Thanks in advance, chitra.
-
Org management (integration with SAP ECC 6) and shopping cart approval
Background: We currently use EBP 3.0 - Classic Scenario. Our current Organisational plan was manually created in EBP, and is not the same as the HR hierarchy in SAP ECC 6 Shopping cart approvals use the workflow WS10000276 u2013 Approval Single Level
-
Letting effects extend past size of the video.
Hey guys, and thanks for trying to help me out! I am new to After Effects, so if you can help me out, be as detailed as possible. Thanks! This is a problem I've had multiple times, but it usually goes: I import a video (image). And I add some effects