How to update collection when checkbox changed in report
I have a report based on a collection:
select seq_id
,c001
,c002
,apex_item.checkbox(1,seq_id,decode(c003,'J','CHECKED','UNCHECKED')) selected
from apex_collections
where collection_name='CONCOLLECTION'When the checkbox changes I want to store the new checked/unchecked status in the collection.
Steps towards a solution I've come up with:
1 Create a dynamic action: Change, jquery selector : input[name="f01"]
2 Create javascript to store value (=seq_id) of changed item into a hidden page item.
3 plsql code to update collection member with seq_id that is now in hidden item.
Is this the way to do it?
If so, it's the javascript of step 2 that I can't figure out.
thanks, René
thanks this works.
Using javascript I store the seq_id and the checked value in 2 page items
$s('P70_SEQ_ID', $(this.triggeringElement).val() );
$s('P70_CHECKED', $(this.triggeringElement.checked).val() );The checked value I get is <empty> when checked and 'undefined' when unchecked. Based on this I can now update the collection.
declare
l_selectie varchar2(1);
begin
if v('P70_CHECKED')='undefined'
then
l_selectie := 'N';
else
l_selectie := 'J';
end if;
apex_collection.update_member_attribute(p_collection_name => 'CONCOLLECTION'
,p_seq => v('P70_SEQ_ID')
,p_attr_number => 3
,p_attr_value => l_selectie);
end;
Similar Messages
-
Urgent!! How to update Planning book and change when planning will start
Hi Gurus,
I had configured the system and we can initilize planning area every month and my question is
1. How to update planning book and change planning start date every month?
Thanks a Lot
Regards,
RajHi,
In the planning book-dataview, you will assign the time bucket profile, and will be on rollling basis. if you want the forecast profile on rolling basis, maintain the forecast and history horizon as periods then that will also be on rolling basis.
Regards,
Raj -
Why Module level trigger contains "WHEN-CHECKBOX-CHANGED" trigger in Forms 6i?
Hi,
Why Module level trigger contains triggers like "WHEN-CHECKBOX-CHANGED", "WHEN-BUTTON-PRESSED" etc.? "WHEN-CHECKBOX-CHANGED" trigger is present in CheckBox & "WHEN-BUTTON-PRESSED" trigger in Button. Then why these triggers are also presnt in Module?
Can anyone please clarify my doubt?There's a lot of triggers that are present at different "scopes". Like they exist at the item level, the block level,
the module level...
The idea is if you have an action that should only occur at that one single item it can do in the item trigger. If
it's for all of them on the block, in the block level trigger. If for all of them ever, at the module level.
For example suppose you wanted it to do a next_item after the trigger executed you can put that logic in the module
level trigger. A key thing to notice here is the trigger hierarchy. That is essential to know about.
Right click on one of these triggers in the object navigator. The execution hierarchy is override, before and after.
since each of these levels of the same trigger has this execution hierarchy this is, well, potentially not easy to
understand what is going to happen. I would typically have a per-item trigger be before and a higher level trigger
be after.
And this execution hierarchy thing is something I'd love to see enhanced in the gui. I wish it was a lot easier to see
what the execution hierarchy is when editing a trigger text. I wish one could see and modify the execution hierarchy on the
same screen as the trigger text and what would be really great is some way to tell how the trigger hierarchy will sort out
at run time. For example if one is looking at an item level trigger it would be fabulous to know that as is, that trigger will be
overridden by a higher level trigger and so on. Or vice versa if one is looking at a block level or form level trigger that it is
overridden by a lower level trigger, or it will execute before or after some other trigger. I don't know what is defined to happen
with various levels of triggers that have the same execution hierarchy. Like suppose they are all override,before,after.. then
what happens? It'd be good to know. -
Problem with WHEN-CHECKBOX-CHANGED and ON-POPULATE-DETAILS
I have a detail block with a relationship set up to a second block. In my first block, if I cause an error but the next action I take is to press a checkbox on another record, my error will display and the raise form trigger failure is triggered but the checkbox changes it's value and the cursor is displayed on the record with the error. I didn't want the checkbox to change if an error occurred. I tracked this through the trace and saw the on-populate-details is fired between the error and the when-checkbox-changed trigger. I went through debug and saw because of the erorr, the system will do a 'return' back to the sending action. I beleive this return is causing the when-checkbox-changed to fire. I'm just guessing here. I tried a similar action on another form without a relationship set up. That would eliminate the on-populate-details trigger. When I did a similar error, I got exactly what I was looking for. I caused the error but pressed the checkbox on another record. The error displayed but the checkbox did not change and the cursor returned to the error record. I need the record to have this relationship. Consequently, I need the on-populate-details trigger. Can anyone think of a solution? I'm currently on Forms 6I. We are going to forms 10G in the next few months. But I really need a solution on my current set up. Thanks.
The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
Code :
public void run() throws Exception {
beginStep("CHARGEMENT DES DONNEES SUIVANTES");
info("Chargement des prochaines données...");
getDatabank("NouvellesIA").getNextDatabankRecord();
endStep();
Stop the user after this step and goto the finish section should not be a problem...
If I use the "When out of records" option, does it jump directly to the finish section ?
Thanks,
Benoit. -
How to get value when OAMessageLovInputBean Change
How to get value when OAMessageLovInputBean Change
I want to get lov value atfer user select value return pageAs you wanna get the value in process form request, get the value from the VO column attached to the bean, if not you can attach a tranient Vo attribute!
--Mukul -
How to update an app without changing drilling info in app store
how to update an app without changing drilling info in app store
Assuming you mean "billing info", why would would you need to change it?
-
How to write rfc when value change in the screen (browser) in webdynpro.
Hi,
I want to know how can i write an RFC when screen value change in webdynpro. I already designed a rfc where all the value can be seen in the webdypro screen. Now when user change the value how can i pick the changed value in R/3 so that i can save it into the respective database. Please send some code for understanding it easily as i am new to this field.
Regards
DeepHi Deepak,
Though I dint understand your requirment properly but as it is raised in Web Dynpro forum I considering that you want to send the data filled by the user to your backend using RFC calls. For this purpose you can refer to this two documents available on SDN.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf">Tutorial 4</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c">Tutorial 5</a>
Regards
Sid -
How to make a quick checkbox change work in a table?
Hello,
I have an af:table with some columns. In one column I specified a checkbox.
If I check or uncheck the checkbox for each record, the corresponding request is sent to the server and the checkbox change persists when the server has answered to the request.
However if I check many records too quickly during the period of one request, the checkings other than the first one which fired the request are not automatically enqueued and persisted: that is, the checkbox of those components changes their selection to the new value as soon as the click is intercepted and changes their selection back again to the old value when the first request has ended
Is there a way to "quickly" allow checkbox selections? I have tried to set "autosubmit=true" and "immediate=true" to both the table and the checkbox component, but this does not seem to solve the problem.we have done something similar to this in a table. .but guess its the same with the tree table.
<af:table value="#{bindings.S.collectionModel}"
var="row" rows="#{bindings.S.rangeSize}"
emptyText="#{bindings.S.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.S.rangeSize}"
rowBandingInterval="0"
styleClass="AFStretchWidth" columnStretching="column:c3"
partialTriggers=":::search"
id="t4" selectionListener="#{bindings.S.collectionModel.makeCurrent}"
selectedRowKeys="#{bindings.S.collectionModel.selectedRow}">
<af:column width="15"
inlineStyle="#{row.Selected eq 'true'?'background-color:#9CACC9;':''}">
<af:selectBooleanCheckbox text=""
label="" id="sbc4"
value="#{row.Selected}"/>
</af:column>1) Have SelectionListener and SelectedRowkeys
2) Donot have rowSelection
3) have a transient attribute from ur VO called 'selected' (String type)
4) in the button that you have - process the selection from the 'Selected' attribute -
Why do screen updates fail when MacOSX changes location?
With Firefox 4.0, when I change MacOSX system location (host name and IP), the Firefox screen no longer updates. It does appear that link selections are followed. My current work-around is to quit and restart Firefox losing all session state. Changing MacOSX location did not appear to effect Firefox 3.
The issue appears to have been resolved in the production release. Perhaps it was in some way related to the beta feedback plugin.
-
How to Update ECC when there is error in Receiver channel
Hello Experts,
I have a query like how to inform ECC when there is a error in Receiver channe.My interface is ABAP PROXY to JDBC in ECC moni message is through in PI moni also message is through but in Receiver JDBC Channel is in error saying for a particular column the data is not valid.
In this case directly PI should send the error in channel to ECC that payload has invalid data for this field will it be possible?
Please give your valuable suggestions.
Regards
Praveen ReddyHi,
implement logic in ABAP proxy to push data when validation check is correct, this is right approach to perform validation.
Even we can achieve this in PI Mapping.
Create ALERT rule for this interface and forward CC errors to ECC Team.
Regards,
Raj -
Got "HTTP - 404" error when apply change of report attributes
Environment:
Oracle 10g (not XE)
APEX 3.1.2.00.02
Oracle HTTP Server
I tried to modify a page in "101 - Sample Application", changed the report attributes (changed the heading type from Column Names to Customer), and when I applied the change, I got a "HTTP - 404 Page not found" error.
In error log file of Apach, the error message is "mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 ORA-25402......"
Anyone can help me? Thanks.Please tell us your first name and update your profile with it to help us. Thanks.
changed the report attributes (changed the heading type from Column Names to Customer)I don't follow that.
Can you install this application into your workspace on apex.oracle.com (request one if necessary) and reproduce this problem there?
Scott -
I had an interview question that is:
How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
Set up steps so inset, update or delete operation takes place across the servers.
It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
Also please describe would it be different for SQL Server 2012?
If so, then what are the steps?I had an interview question that is:
How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
Set up steps so that inset, update or delete operation gets done correctly across servers.
I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps? -
How to updates file when template is changed
Hello fellow dw users..
Is there somebody whocan help me. My problem is that I
created my website by using a template,
now I need to chagne the color and some background images on
my template after updating the template
how would I let all my web pages be affected and follow and
use the updated the template instead of the old one? hope you can
help me . thanks a lot!!When you save the changed template, all changes to
NON-editable regions are
automatically propagated to all local child pages of that
template. Is that
not happening for you?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"teamse1" <[email protected]> wrote in
message
news:eb7ljd$12b$[email protected]..
> Hello fellow dw users..
>
> Is there somebody whocan help me. My problem is that I
created my website
> by
> using a template,
> now I need to chagne the color and some background
images on my template
> after
> updating the template
> how would I let all my web pages be affected and follow
and use the
> updated
> the template instead of the old one? hope you can help
me . thanks a lot!!
> -
How to update bookmarks when merging two PDF files?
We have a company catalog that gets generated once a night. It's three step process:
Step 1) A raw XML file gets generated from our main ERP software (Microsoft Dynamics).
Step 2) Then that raw XML file is ran against a stylesheet with XEP to produce a nice professional looking catalog.
Step 3) And the third step is a script that merges the front and back covers with the main catalog produced in step 2. Each cover is two pages (front and back).
My problem is when step 3 runs it produces a final catalog but all the bookmarks are off by 2 pages because the front cover adds two pages in the very beginning. This post may be premature because up until now I've been merging the PDF pages with a program called "GhostScript" and it allows me to merge them via line command. I'm just now trying out AcroExch.App COM Object for VBScript so I'll see if it works but wanted to fire this out for help to see if anyone has encountered this or can confirm if Adobe automatically updates them for you? When I "Merge" the PDF files through Acrobat Pro they get updated automatically, so hopefully it will work the same way with AcroExch.App Object. Thanks guy!I think you might be misunderstanding what I'm saying... we are not performing tasks for non-licensed individuals. We purchased a copy of Adobe Acrobat Standard so we could create a PDF of our catalog. That catalog we then put on our website and let people download it. Since our products change all the time, we generate a new catalog every night. The term "server" is just a place where a script runs, I could have it run on my desktop computer if that's really an issue but I think we're talking semantics. Acrobat is not what produces the main catalog PDF, that is done through XEP when it runs through the raw XML produced by our ERP software every night. The only thing we want Acrobat to do is an automated process to merge 3 PDF files together: Front Cover, Main Catalog and Back Cover. That's it. Are you saying that is against the EULA of Adobe for us to do that?
Now for the bookmark problem, what do you recommend I do then? When I merge all three of those PDF files in Acrobat Standard manually it works perfect. All I'm trying to do is automate that process once every night. I know how to automate with Acrobat, I just can't figure out how to fix the bookmark problem? -
How to update field when check box checked
Hi All,
I am using oracle Forms 10g,
I have a block with 20 fields.So first 10 Fields are not updatable and remaining are Editable. So the user will enter the Data and changes the data.And check the Check box and save the data.
Inside the save button i have written the update code.
When the user Edit two or three records and click three Check box and click the save button only one record is getting entred in my custom table.
This is my code please correct me where i went worng.
This is my code inside my button
declare
Begin
If :ASSEMBLIES_BLOCK.CHECK_IN_OUT='Y' THEN
IF SHOW_ALERT ('UPDATE_ALERT') = alert_button1 THEN
LOOP
XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE;
EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
NEXT_RECORD;
END LOOP;
STANDARD.COMMIT;
fnd_message.set_string ('Transaction Saved Successfully');
fnd_message.show;
ELse
NULL;
END If;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
NULL;
END;
I have write a procedure in program unit.
XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE
Assemblies block is my current block that user enter the data and click the check box and save the data.
Update XXTLX_PO_ASSEMBLIES set CASE_NO=nvl(:assemblies_block.CASE_NO,Null),
PACKAGE_TYPE=nvl(:assemblies_block.PACKAGE_TYPE,null),
PACKAGE_QTY=nvl(:assemblies_block.PACKAGE_QTY,Null),
GROSS_WT=nvl(:assemblies_block.GROSS_WEIGHT,Null),
OPI_DATE=nvl(:assemblies_block.OPI_DATE,Null)
Where ponum=:DETAIL_BLOCK.PO_NUMBER
AND PO_LINE_NUM=:DETAIL_BLOCK.LINE_NUM
AND BOM_NO=:assemblies_block.BOM_NO;
So when we click the multiple check box and save the data only one data is entering.
Thanks & Regards
SrikkanthI guess I don't understand.
>
... my requirement is only the checked fields need to get updated. If in a block there are 10 records means ill update only the 3rd and 4th record and then click the check box.. and then ill click the save button.
>
Is this block a database block or a non-database block? If it is a database block then Oracle can handle updates to that block for you because if keeps tabs if a record was updated or not and you wouldn't need to do an UPDATE statement.
If it is a non-database block, and you are looping through each record and only updating the items that have checkboxes next to them you would still have to go to the first record then step through each record and see if it needs to be updated. I am just guessing here because I don't think I have a good grasp on what you are doing, but you could change your XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGISTICS_UPDATE package to only update the items that have checkboxes next to them, by checking each checkbox:
-- Check Case No
if nvl(:assemblies_block.chase_no_check,'N') = 'Y' then
update xxtlx_po_assemblies
set case_no = :assemblies_block.case_no
where ponum = :detail_block.po_number
and po_line_num = :detail_block.line_num
and bom_no = :assemblies_block.bom_no;
end if;
-- Check Package Type
if nvl(:assemblies_block.package_type_check,'N') = 'Y' then
update xxtlx_po_assemblies
set package_type = :assemblies_block.package_type
where ponum = :detail_block.po_number
and po_line_num = :detail_block.line_num
and bom_no = :assemblies_block.bom_no;
end if;
-- Check Package Qty
.
Maybe you are looking for
-
I upgraded from an iphone 4 to a 4s, after a few initial problems and two restores, everythings seemed to be working...until I went to play some music, all music loaded to itunes via CD's played, but ALL purchased music from itunes does not play...i
-
LabVIEW 8.2 classes do not work in LV 8.5?
I just switched to LabView 8.5 to take advantage of the new features in the Project Explorer. Unfortunately the conversion of my project from 8.2 to 8.5 seems to have completely destroyed all of my LVOOP classes in the project. Everthing was working
-
Apart from the obvious battery issues my green button has stopped working. i cant make calls or answer calls with it. the other day whilst taking a picture the red light on the camera came on and wouldn't go off either, so i had to remove the battery
-
I can't donlow geams from app store
I can't donlow geams from app store
-
Can't upload or download attachments
i have had no problem until yesterday and now suddenly can't upload or download any attachments on either my PC or laptop. I'm using internet explorer / btyahoo. Getting desperate - can somebody tell me what to do?