Report to Mintenance CREATE Button
We created the tutural application where a Report TAB(P1) is linked to the maintenance Page(P2). When this is done the "ID" is passed from the report page to the maintence page. The CREATE button disapears because the pages are linked and there is a CREATE BUTTON test to see if the ID is set. If we Click on the Minatence TAB one of two things happens.
A) if the is the first time using the application in the session then we get an Error as the P2_ID is not set.
B) the last ID used will be displayed.
How can we change the application so the when the mainence TAB is press it Clears the ID and runs with a CREATE Button, but if navigated from the report page if shows the row to be changed?
if your tabs are Parent Tabs, you could easily set the URL target of your tab to clear the cache for page 2. you'd do that from your Edit Parent Tab screen. you can't do that with a standard tab, though, so you might want to consider clearing your cache on page 2 in an HTML DB process that fires after your current last process on that page. this way your value for P2_ID is consistently cleared after users leave that page. when a user comes back into that page w/o providing a P2_ID value, your create buttons and such should show.
hope this helps,
raj
[Edited by: rmattama on Dec 22, 2003 9:28 AM]
i wanted to post this part of my answer originally, but i wasn't sure about a specific point. anyhow:
as a third option, you can consider using the value of :REQUEST to conditionally fire a process or computation that clears P2_ID. if you pay attention to the way your tabs are working, you'll see that clicking on them either submits your current page to then branch to the next or that they're simply links to your other pages. if your current page has no form fields on it, then html db implements your tabs as the simple links to their associated pages. if the current page does have form fields on it, you'll notice that clicking a standard tab submits the page with the value of :REQUEST being equal to the name of the tab. it's that value of :REQUEST that you can use to conditionally fire a process or computation to clear P2_ID. a conditionally fired after_submit computation on page 1 would do it, for instance.
hope this helps, too,
raj
Similar Messages
-
Hide/Show Create button on a report/form page
Hi, I included one form and the related report on one page.
When I create a new record, it will show in the report below.
I make the ID column as the link, which assign the ID to the ID item in the form. DML will do the rest work for display.
However I got a issue. when I click the edit button for one row, the create button doesn't disappear. Although it has a condition of "VALUE OF ITEM IS NULL". I un-hidden the ID item and it do have value when I edit some row.
Is this because of some refreshing reason or...?
Your help will be great appreciated.
Edited by: Gadfly on 2009-3-16 下午8:02BTW, this hide/show pattern of 'KEY VALUE is null' works well when I use two pages(one form and one report.)
-
APEX 5: Problem displaying breadcrum (Create) button on interactive report
Hello There
I am trying to build a small app in APEX 5. I am taking the default 'Sample Database Application' (SDA) as an example for design.
In SDA the interactive report of Customer a breadcrumb 'Create which is displayed on the top right corner. I am trying to replicate the same in my interactive report, but in vain.
I have attached the printscreen for your reference. Could you please guide and advise me on how to get the same functionality of breadcrumb create button,etc same as in displayed in SDA into my custom app in APEX 5?
Thanks a lot for helping me out
Regards
Donhi ,
i had used like this .. it is working...
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
R_SELFIELD TYPE SLIS_SELFIELD.
clear : v_flag.
CASE R_UCOMM.
WHEN 'DATA'.
LOOP AT IT_TEMP.
if it_temp-checkbox = 'X'.
v_flag = 'X'.
v_pernr1 = IT_TEMP-PERNR.
*--Get compensation data and populate final internal table
refresh it_fin.
CALL FUNCTION 'Z_HR_COMP_STATEMENT'
EXPORTING
PERNR = v_pernr1
BEGDA = s_date-low
ENDDA = s_date-high
TABLES
FINAL = it_fin.
if not it_fin[] is initial.
delete adjacent duplicates from it_fin comparing pernr.
read table it_fin index 1.
move-corresponding it_fin to it_final.
append it_final.
clear it_final.
endif.
endif.
enddo.
ENDLOOP.
if not v_flag is initial.
*------ display final data
PERFORM final_display.
else.
message s000 with 'Select atleast one pernr'.
endif.
endcase.
ENDFORM. "USER_COMMAND
regards,
venkat. -
Create button to see report!!!
Hei
I´m a beginner in oracle!!!
So i have a web application, where i wanted to creat a page with 5 buttons, each button should call one different report "view"!!!
The problem is that i have the view, i have the first page with one report and i have a button!!
but i dont know how to conect the view to the button, so i can chenge the current report, calling an other report"view" with a button!!!
need some help!!This is not a development forum, but an RDBMS forum. You may want to post this thread in the proper forum. You don't specified the tool you used to work with this partially developed application, but in case it is an Oracle tool, you may want to find out which Oracle forum better fits your requirements http://forums.oracle.com .
All your rdbms related questions are welcome here.
Madrid. -
How do I create a report with a search button
All,
This may be a dumb question, but I am trying to create a report in Portal 3.0.9 with
a search button. I created the report using the 'create report by query' option and
that was fine. But what I really want to see is the customization page that shows
a field and 'run report' that a user can insert a record he/she is looking for.
For example:
Employee Id: ________
| Search |
Results if user enters a valid number
Employee Id : 1
Employee Name : John Smith
Employee Address: 111 Anywhere St. Anyplace USA
I can alter the customize page to make the search page fit my needs, but how do I create
a portlet out of the customize page and stick on my main page? When I run my report it
calls and returns all employees.
Thanks,
DanHi,
You cannot publish the customization form as a portlet. The only way you can do this is to call the customization form from the dynamic page in the <oracle> tags. You can then publish this dynamic page as a portlet on the page.
Here is an example which calls the customization form of new_rpt2.
<HTML>
<HEAD>
<TITLE>Example</TITLE>
</HEAD>
<BODY>
<H2>Example of A Dynamic Page</H2>
<ORACLE>
begin
<schema_name>.NEW_RPT2.show_parms;
end;
</ORACLE>
</BODY>
</HTML>
Hope this helps.
Thanks,
Sharmila -
Hi i have a requirement like to disable one CREATE Button(Creating of Business Partner IS-FS-CM) which is in standard ALV report.I can eliminate that button from PF status of that screen but we are not supposed to change the existing code.But that screen is BDT implemented.
Can you please help out me how to disable that button w/o changing the standard SAP codeHi Krishna,
For example say your PF sataus name is 'STATUS-100' and function code for create is 'CREATE'.
then in your part of code use the following syntax,
SET PF-STATUS 'STATUS-100' EXCLUDING 'CREATE'.
I hope this will help you.
Regards,
Manoj Kumar P -
Open a Crystal Report preview using a button
Hello. I need to open a Crystal Report preview using a button from my add-on. I've already created my report, so I need to create the object, pass the parameters and open an screen with my preview. Does anyone has a C# example? Thank you.
hi,
this is code for open the crystal report press the button.
First import the crystal report using Report and layout manager
goto administration->setup->general--->Report and layout manager
create one button in add-on form.when we press the button the following event triggered.
get the docnumber for that particular form and pass it.
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
If pVal.ItemUID = "btnPrint" Then
Dim strAcNcmr As Integer
strAcNcmr = objForm.Items.Item("txtDocNo").Specific.Value
Dim oRS As SAPbobsCOM.Recordset
oRS = objSBOAPI.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = ' Purchase Indend' AND Type = 'C'")
objSBOAPI.SBO_Appln.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString())
Dim oForm1 As SAPbouiCOM.Form
oForm1 = objSBOAPI.SBO_Appln.Forms.ActiveForm
oForm1.Items.Item("1000003").Specific.String = strAcNcmr
oForm1.Items.Item("1").Click()
oForm1.Items.Item("1").Visible = False
oForm1.Items.Item("2").Click()
End If
this is easy solution for open the crystal report for add-on form
Thanks & regards
B.lakshmi narayanan -
Report With Multiple Radio Button ,How to reset the values of when selected
Reaching out to the experts here. I have a report which i created a radio group which saves the value rownum when the radio buton is selected to a hidden item based on an on click event. There are currently 3 radio button , i need to be able to "reset" the value of the other items when more than of the button are selected .I.E. There are 3 buttons, user clicks button one , but then decides they need to click button two , then realizes they really wanted to perform button 3 , I want to be able to "reset" the value of the 1st two hidden items so the only value populated is the 3rd hidden item. I am new to working with these features and scenarios so any and help would be appreciated.
Here is the report
SELECT APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN1'').value=' || ROWNUM|| '"') UPDATE_RECORD
,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN2'').value=' || ROWNUM|| '"') DELETE_RECORD
,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN3'').value=' || ROWNUM|| '"') SET_PRIMARY
,papf.first_name
,papf.last_name
,hl.meaning
,pp.phone_number
,case when phone_type is not null then (select meaning from hr_lookups where lookup_type ='PHONE_TYPE' and pp.phone_type=lookup_code)
end as phone_type
,emrg.primary_contact_flag
from hr.per_all_people_f papf
,apps.hr_lookups hl
,apps.per_contact_relationships pcr
,apps.per_phones pp
,(select contact_person_id,primary_contact_flag
from apps.per_contact_relationships pcr
where pcr.person_id = :P5_PERSON_ID
and contact_type = 'EMRG') emrg
where pcr.contact_person_id in emrg.contact_person_id
and pcr.personal_flag='Y'
and contact_type <> 'EMRG'
and trunc(sysdate) between date_start and NVL(date_end,'31-DEC-4712')
and pcr.contact_type = hl.lookup_code
and hl.lookup_type='CONTACT'
and pcr.contact_person_id = papf.person_id
and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
and pcr.contact_person_id = pp.parent_id
and pp.phone_type in (select lookup_code from hr_lookups where lookup_type ='PHONE_TYPE')Related thread here How to Pass values from SQL Report into TEXT ITEM ?
Regards, -
New to APEX and I'm still getting the hang of things, so many thanks in advance for any help!
I have the following scenario:
I have a page with two regions. First is a simple report with an edit link that refreshes the second region (using a Hidden and Protected field "P_ITEM_ID"). The second region has form fields used to edit the details of the selected record. Updating records works, as does "Cancel Changes".
When I try the Create button (generated by APEX), I get the following error:
ORA-00001: unique constraint (PK_NAME) violated
When I try to use the Delete button (also created through the Wizard), I get the following error:
ORA-02292: integrity constraint (FK_NAME) violated - child record found
I guess I have two questions:
1. How do I make (and allow) the Delete action to also delete the child record? (As I want it to do)
2. How do I get the Create button to conform to the primary key for the field? I did edit the Create button to not be Conditional - is this why it is broken? I could never get the Create button to appear otherwise, because the condition was looking for P_ITEM_ID to be null, which it never is.
Thanks!Thank you for the feedback. I will take a look into the cascade delete. Is there a way to limit it to only certain delete actions?
I am working on getting something up in apex.oracle.com so I can have a better demonstration. Thanks! -
Report navigation after creating hyperlink
Hi,
I am using Webi rich clinet XI R3.1. I have one main report with six dashboards and associated detailed reports. I created hyperlink for each of the dashboard and linked to detailed report in infoview.
If i need to see main report i've to close this detailed report.Now how can i make the detailed report open in same window and navigate forward and backward to the main report instead of closing.
I would appreciate if some one could provide any work around available if possible atleast.
Thanks,
EswarHi
Create two links one Back and one Next in each report.
Drag two free standing cells in the report and use opendocument syntax to create the links.
The thread Re: Hyperlink Back functionality may give an idea.
Regards -
Need to personalize the Remittance screen making 'Manual Create' Button invisible
Dear All,
I highly appreciate you people responding to my before questions. All are solved/clarified.
Below is the requirement from my friend, I am trying to help him. Please suggest.
In Receivables>Receipts>Remittance screen
Need to disable the 'Manual Create' button, if the user selects the 'Receipt Method' field as 'XX_REC_METH1'.
I tried just to disable the 'Manual Create' without the receipt Method condition, even that also doesnt work.
Version : R12.1.3
Function Name: AR_ARXRWMAI_REMITTANCES
Form Name: ARXRWMAI
Manual Create Button: AR_BATCHES_SUM. REMIT_MANUAL_CREATION <block>.<field>
Receipt Method: AR_BATCHES_SUM.M_REMIT_RECEIPT_METHOD_NAME <block>.<field>
Kindly suggest any work around.
Thanks a lot in advance.
Regards,
Afzal.Hi Afzal,
your question is about an eBusiness Suite form. Our forum here (and the team that moderates it) deals with Fusion Applications questions.
Please repost this question in one of these forums that deal with EBS:
Technology - General Discussion
Financials
Thanks for your understanding.
Regards,
Oliver
Fusion Apps Developer Relations
https://blogs.oracle.com/fadevrel -
How to print PDF report by clicking a button
Hi,
I'm using oracle 10g developer suite. i've developed a form clicking a button calling a PDF report. But i do not want to show PDF report. i want to auto print PDF report by clicking a button.
Plz help me.Just follow the Oracle reports 10g output directly to printer and you will able to print directly
Hope this helps
Hamid
If response is helpful or correct mark it. -
Need help in creating Buttons in ADF10g
Hi,
My questions are:
1. Is it possible to modify the width of row in ADF10g. Because the width of rows in my output are high. So I want to reduce it.
2. I need help in creating a new 'createbutton' to create a newlist for the table . for this I have used create button but didnot succed.
3. I also need help in creating 'save button' to save modified data into the table.
4. I need help in creating a select-one-choice and select-one-list for columns of table.
Please help me.
regards,
sanjana
sanjanathe Easy Tabs could be useful for your requirement
http://usermanagedsolutions.com/SharePoint-User-Toolkit/Pages/Easy-Tabs-v5.aspx
/blog
twttr @esjord -
Hi Everybody,
as my first experience in AS3 I'm bulding a photo multigallery. In that gallery I have some buttons, each one pointing to its respective set of images.
Each button is created with the for loop, that picks the information from a XML file. From this XML I get the text of the button, the position etc. What I did with some sucess. But there is a scary problem: I don't know how to make each button load the respective and unique set of images.
I've tryied several different methods, with no effect, to make each loop to give to each button an unique identity to load the respective set of images.
I imagine that the solution pass by the use of arrays. I wrote some code, and I guess that I'm almost there (but not sure). Here is my AS3 code until now:
// CREATE MENU CONTAINER //
var menuContainer:MovieClip = new MovieClip();
menuContainer.x=10;
menuContainer.y=300;
addChild(menuContainer);
// CREATE IMAGES CONTAINER //
var imagesContainer:MovieClip = new MovieClip();
imagesContainer.x=10;
imagesContainer.y=10;
addChild(imagesContainer);
//// LOAD XML ////
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, whenLoaded);
xmlLoader.load(new URLRequest("XML/roiaXML.xml"));
var xml:XML;
function whenLoaded(evt:Event):void {
xml=new XML(evt.target.data);
var mySetsList:XMLList=xml.children();
//// MENU BUTTONS ////
// CREATE ARRAYS //
var totalArray:Array = new Array();
var setNodesArray:Array = new Array();
var setNamesArray:Array = new Array();
// POSITIONING BUTTONS INSIDE MENU CONTAINER//
var rowsQuantity:Number=3;
var columnsQuantity:Number=Math.ceil(mySetsList.length()/rowsQuantity);
var cellWidth:Number=160;
// CREATE BUTTONS //
for (var i:int=0; i< mySetsList.length(); i++) {
var newSetButtonMC:setButtonMC=new setButtonMC();
//what do I do here to make it works? To give each button created a unique id.
setNodesArray.push(i);
//trace(setNodesArray);
var imageNodesArray:Array = new Array();
for (var j:int=0; j<mySetsList[i].IMAGE.length(); j++) {
imageNodesArray.push(mySetsList[i].IMAGE[j].attribute("imageTitle"));
totalArray.push(imageNodesArray);
newSetButtonMC.setButtonText.text=mySetsList.attribute("galeriaTitle")[i];
newSetButtonMC.setButtonText.autoSize=TextFieldAutoSize.LEFT;
var cellX:Number=Math.floor(i/rowsQuantity);
var cellY:Number=i%rowsQuantity;
newSetButtonMC.x=cellX*cellWidth;
newSetButtonMC.y=cellY*(newSetButtonMC.height+10);
newSetButtonMC.addEventListener(MouseEvent.CLICK, onClick);
menuContainer.addChild(newSetButtonMC);
totalArray.push(setNodesArray);
//// MENU BUTTONS ACTIONS ////
function onClick(mevt:MouseEvent):void {
trace(totalArray [0][0]);
trace(totalArray [0][0]);
// in the line above I achieved some success loading a specific info from XML.
// but I don't know what to do with it.
//what do I do here? To make each button to load its own node from XML.
Here is my XML:
<GALERIA galeriaTitle="galeria 01">
<IMAGE imageTitle="imageTitle01">feio.jpg</IMAGE>
<IMAGE imageTitle="imageTitle02">muitofeio.jpg</IMAGE>
<IMAGE imageTitle="imageTitle03">aindamaisfeio.jpg</IMAGE>
</GALERIA>
<GALERIA galeriaTitle="galeria 02">
<IMAGE imageTitle="imageTitle01">estranho.jpg</IMAGE>
<IMAGE imageTitle="imageTitle02">maisestranho.jpg</IMAGE>
<IMAGE imageTitle="imageTitle03">aindamaisestranho.jpg</IMAGE>
</GALERIA>
Thanks everyone . ABSTRATOyou can assign each newSetButtonMC and ivar property that points to its i value or, even easier:
// CREATE MENU CONTAINER //
var menuContainer:MovieClip = new MovieClip();
menuContainer.x=10;
menuContainer.y=300;
addChild(menuContainer);
// CREATE IMAGES CONTAINER //
var imagesContainer:MovieClip = new MovieClip();
imagesContainer.x=10;
imagesContainer.y=10;
addChild(imagesContainer);
//// LOAD XML ////
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, whenLoaded);
xmlLoader.load(new URLRequest("XML/roiaXML.xml"));
var xml:XML;
function whenLoaded(evt:Event):void {
xml=new XML(evt.target.data);
var mySetsList:XMLList=xml.children();
//// MENU BUTTONS ////
// CREATE ARRAYS //
var totalArray:Array = new Array();
var setNodesArray:Array = new Array();
var setNamesArray:Array = new Array();
// POSITIONING BUTTONS INSIDE MENU CONTAINER//
var rowsQuantity:Number=3;
var columnsQuantity:Number=Math.ceil(mySetsList.length()/rowsQuantity);
var cellWidth:Number=160;
// CREATE BUTTONS //
for (var i:int=0; i< mySetsList.length(); i++) {
var newSetButtonMC:setButtonMC=new setButtonMC();
//what do I do here to make it works? To give each button created a unique id.
setNodesArray.push(i);
//trace(setNodesArray);
var imageNodesArray:Array = new Array();
for (var j:int=0; j<mySetsList[i].IMAGE.length(); j++) {
imageNodesArray.push(mySetsList[i].IMAGE[j].attribute("imageTitle"));
nextSetButtonMC.imageArray = imageNodesArray;
//totalArray.push(imageNodesArray);
newSetButtonMC.setButtonText.text=mySetsList.attribute("galeriaTitle")[i];
newSetButtonMC.setButtonText.autoSize=TextFieldAutoSize.LEFT;
var cellX:Number=Math.floor(i/rowsQuantity);
var cellY:Number=i%rowsQuantity;
newSetButtonMC.x=cellX*cellWidth;
newSetButtonMC.y=cellY*(newSetButtonMC.height+10);
newSetButtonMC.addEventListener(MouseEvent.CLICK, onClick);
menuContainer.addChild(newSetButtonMC);
totalArray.push(setNodesArray);
//// MENU BUTTONS ACTIONS ////
function onClick(mevt:MouseEvent):void {
var mc:setButtonMC=setButtonMC(mevt.currentTarget);
for(i=0;i<mc.imageArray.length;i++){
trace(mc.imageArray[i]);
Here is my XML:
<GALERIA galeriaTitle="galeria 01">
<IMAGE imageTitle="imageTitle01">feio.jpg</IMAGE>
<IMAGE imageTitle="imageTitle02">muitofeio.jpg</IMAGE>
<IMAGE imageTitle="imageTitle03">aindamaisfeio.jpg</IMAGE>
</GALERIA>
<GALERIA galeriaTitle="galeria 02">
<IMAGE imageTitle="imageTitle01">estranho.jpg</IMAGE>
<IMAGE imageTitle="imageTitle02">maisestranho.jpg</IMAGE>
<IMAGE imageTitle="imageTitle03">aindamaisestranho.jpg</IMAGE>
</GALERIA>
Thanks everyone . ABSTRATO -
Create a button symbol from text, a bitmap image, or a vector shape. Define keyframes for the up, over, down, and hit states of the button, and swap out the artwork for the different states.
http://adobe.ly/AsOppxI am watching the tutorial over "creating button symbols." When it gets to the part where while in the over keyframe you are supposed to click on swap, my properties panel looks different and does not have a swap button. Any suggestions?
Maybe you are looking for
-
Data extraction from SAP R/3 BAPI to BW
hi, i am extracting data from sap r/3 bapi into sap bw. can u please send me the link and documents of how to extract the data from bapi to sap bw. Answers will be rewarded Thanks sd shahid
-
IPod Nano (3rd gen) not recognized by iTunes
I've got a 933mhz iBook G4 running 10.5.1, I hooked up my brand new iPod Nano, iTunes recognized it, I was halfway through the syncing process when I decided to stop it during the photo sync. Now the iPod keeps shutting down right after it tries to s
-
Using the tag wrap shortcut (Command/Ctrl + T) works well. But, I've had to use <nobr> to wrap non-breaking text. This is useful for working on HTML emails and this always leaves the with uppercase letters in the ending tag like this, "</NOBR>". I un
-
Features should consider inthe dev of Mysap Erp 2005 sandbox for an Upg pro
Hi Gurus What are the factors and features we should consider in the development of the MySAP ERP 2005 release sandbox including the archiving activities for an upgrade proj. Will anybody will share and provide guidelines. Mail me at [email protect
-
Chrome Sharing in Safari?
Why does the share button in Safari open up to Google Chrome instead of the built-in Mail app, and how do I change it?