Report program with detail list and GUI status.
Hi,
I am working on type 1 program (report) and want to use detail lists.
I want to use a GUI status and want to use AT LINE-SELECTION. But AT LINE-SELECTION does not work when I use a GUI status.
How do I achieve this?
Thanks.
Hi
In the secondary windows, it is not possible to have GUI Status.
If you need like that, you should go for ALV Reports.
Here, You can have GUI Status only in the selection-screen as below..
REPORT zak014 LINE-SIZE 60 LINE-COUNT 20(2).
TABLES: sscrfields.
* Appliction Tool Bar Elements
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY 2.
* Selection Screen
PARAMETERS: matnr TYPE matnr.
INITIALIZATION.
sscrfields-functxt_01 = 'TEST1'.
sscrfields-functxt_02 = 'TEST2'.
START-OF-SELECTION.
WRITE:/20 'CLICK HERE TO NAVIGATE'.
AT LINE-SELECTION.
WINDOW STARTING AT 5 5
ENDING AT 50 18.
CASE sy-lsind.
WHEN 1.
WRITE:/ 'This is First window'.
WHEN 2.
WRITE:/ 'This is second'.
ENDCASE.
TOP-OF-PAGE.
WRITE:/5 'LINE SELECTION'.
Similar Messages
-
Report Row With Detail (AJAX) by Carl - How to implement?
I just had a look at Carl's example place and I'd like to implement his Report Row With Detail feature. But how, it's made up of 3 sections:
1. a query
2. javascript
3. application process
The query on which the report is based and where I want this feature is:
select leverancier, artnr, vendorcode from plijst where productgroep = :p1_assortiment_tree or subgroep = :p1_assortiment_tree
A break is defined on Leverancier
I understand the query and the application process part. But where goes the Java part???
Peter
Message was edited by:
PeteTried to upload your example application, unfortunately it does not seem to upload properly in my APEX v2.0 environment
Can you please confirm if your example works with APEX version 2
and does the Javascript go in the Page Header or Region Header/ Footer area
thankyou
Frank -
Report Row With Detail (IFRAME)
Hi,
I am trying to implement the Report Row with Detail but not successful.
I have gone thru the various threads in the forum.. but i am unable to
get it. It would be great if I could know the step by step process to do the same.
I have created two regions. The first region (the query to it) also
has a show_region link.. I have copied and pasted the javascript given
by Carl.
Thanks,
shilpa.Hello,
Ok then you are almost there so when you submit the form to update your data on a sucessful save you are going to create a plsql region that just uses htp.p() to write out the javascript to update the report in the main page.
a simple example would be something like this.
Lets say I'm getting back values to update the two first table cells on my parent report.
<script>
/*set up call back function*/
function ReportRowUpdate(){
var lRow = parent.g_LastRowOpened; /* hook to last row clicked */
lRow.cells[0].innerHTML = 'SOME VALUE FROM DATABASE 1';
lRow.cells[1].innerHTML = 'SOME VALUE FROM DATABASE 2';
/*call call back function*/
ReportRowUpdate();
</script>
And that should be it.
Carl
Message was edited by:
Carl Backstrom -
Report row with detail (AJAX)
Hi,
In Carl's report row with detail (AJAX) demo, is there any way to show all detail row by default when the page is loaded?
http://apex.oracle.com/pls/otn/f?p=11933:13
Thanks.
AndyHi Andy,
In Carl's example, the "details" content seems to be from a table that has a one-to-one relationship with the main table. If this is the case, you would probably find it easier to use a "Named Column (row template)" type of report template and lay out the report as you need it rather than use Ajax
Otherwise, I'm sure it would be possible to loop through a report and make a series of Ajax calls to retrieve the details should there be multiple records required.
Andy -
Use parameters in SQL Server reporting services with sharepoint lists
I want to make report from sharepoint 2010 list and forms library in sql server reporting services.
but also want to apply parameters.
I tried but parameters but it is not working.
How I can apply sharepoint lists parameters in sql server reporting services ?
How to run or view report of sharepoint lists or form library in sqlserver reporting services with required parameters?Hi John,
When we use SharePoint list as datasource in SSRS it has two method to add parameter. Suppose we have a dataset (DataSet1) get data from SharePoint list. Please refer to the methods below.
Method 1: We can add parameter in the Query Designer dialog box to add parameter.
Click “Add Filter” icon in the “Applied filters” dialog box in Query Designer.
Select the corresponding field (Title), fill with specific conditions, and select Parameter option in the end of the row.
Create a dataset (DataSet2) fill with Title field.
Double click the parameter we create above, set the available values from DataSet2 field Title.
(Note: In the situation, we are get the single-value parameter.)
Method 2: It is a general method to add parameter in SSRS report.
Create another dataset (DataSet2) in the report fill with Title field.
Add a parameter (Title) get available values from DataSet2 Title field.
Add filter in the DataSet1.
(Note: This method, we can configure multi-values parameter.)
Reference:
http://technet.microsoft.com/en-us/library/aa337432(v=sql.105).aspx
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
Background Report Program with Variants to be Overwritten
I have an Following Scenario.
I have an Report program with the Selection Screen displaying an Input Parameter of date type sy-datum.This particular program is scheduled as an Background Job.
Now when i execute the program in background the existing variant date must be overwritten with any new values . So please provide an solution for this.
Thanks
K.Nadesh Kumarhi nadesh,
enter date on your selection screen , then save variant.
tick the selection variable check box i.e L.
now click on pushbutton SELETION VARIABLE.
Then select type D and select the criteria current date or whatver of your choice.
if you are not clear then search for the thread "daily background job". I think you will get the answer from there.
Regards
Abhinesh -
Carl's Report Row with Detail Example
Hi,
Hoping someone can assist, I am looking at using Carl's "Report Row with Detail" example at:
http://apex.oracle.com/pls/otn/f?p=11933:1
The only thing that I am unsure about is that , instead of using the words show comments/hide comments, I would actually like use an image that will toggle, i.e initially have a plus.gif (+) image to expand row and then toggle to a minus.gif (-) image to hide the row.
Using Carl's example, would really appreciate some help on achieving this. I tried replacing the innerhtml with an image file but had no luck.
Thanks.
Tony.Hello,
There you go http://apex.oracle.com/pls/otn/f?p=11933:107 just make sure the images have a plus and a minus in the filename,
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
Urgent : program to copy or download GUI status
Hi Experts,
I have to copy Screens and GUI status, GUI titles from one SAP sysytem to another SAP system. Do anyone have the solution for it.
Or any program that could download to local system and then to upload the GUI Status and Screens to another syatem....
Thanks,
GovindHi Govind,
You can download the entire code one by one in simple flat file and can upload the same in the target system. It will reduce a lot of effort on your part. But as for the screens I think you need to put the data elements again. But you can check it as I have never tried.
The process to upload and Download the entire code is given below:
To download
SE80->Utilities->More Utilities->Upload/Download->Download. ( use this to download in a simple flat file.)
To Upload
SE80->Utilities->More Utilities->Upload/Download->Upload. ( now upload the simple file in the target system in the same way.)
Thanks and Regards,
Samantak.
Rewards points for useful answers. -
Report Row With Detail (IFRAME) - How to reload Main Page within iFrame
Hi,
Based on Carl's example - Report Row With Detail (IFRAME), i.e:
http://htmldb.oracle.com/pls/otn/f?p=11933:17
Within my scenario, I have a button within the iframe section of my report that calls a pl/sql process that performs some database processing.
What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed. In Carl's example, that would be page 17.
As mentioned, I call a PL/SQL process within the iframe, but unsure how to then refresh the main page - parent page.
Any help would be appreciated.
Thanks.
Tony.Tony,
you could insert the following script to the region footer of a region located on your "iframe"-page.
<script>
parent.location.reload();
</script>
But this is dangerous because everytime the parent is being reloaded, the iframe is loaded, too. Risk of loop...
A possible solution is to conditionally display a html region (with the script) on your iframe-page basing on a request. You could post the request as a result after your plsql processing in a branch.
Regards,
Jens -
COPA Report Layout with Object List (ALV)
Hi,
I have question about the COPA report layout with object list (ALV). Everytime I executed the report with ALV format, the amount for quantity column always shows with 3 decimal number, menwhile for amount column always follow by 2 decimal number.
Can anyone help me regarding this matter? I do not know how to turn off the decimal number to be 0 in this type of layout, although in the form itself I already put 0 decimal number.
Thanks.Hi,
Better to raise this issue in CO Forum. You can expect some solution.
regards -
Did the lastest Apple update and now my Mac has gray screen with spinning gear and a status bar goes to half then turns computer off....help?
Thanks for your help.
Same thing happen when I hold the button, it idle for a while and then turn off by itself. Any more suggestions?
I got the disc.. -
Regarding module pool programming,reports and gui status
hi,
I have created a mpp program in which i called a report using the SUBMIT statement.In the Report i have used Gui status for BACK.When i execute the MPP and press BACK it should call a another screen of the MPP,but it leaves to the program i.e., it comes out.
example,
case sy-ucomm.
When 'BACK'.
CALL SCREEN 0002.
endcase.
This is what i have used in my report program.
Please help me,
Thanks in advance,
ArunaHi.
Change the name BACK because it is standard FCode.
Try Changing the Fcode.
Awrd Points if useful
Bhupal -
ALV grid to list processing and GUI status
Hi,
In a customized program the report output is in ALV grid which is interactive. On selecting a record and pressing SAVE button a BAPI runs in background. In order to display BAPI error message the leave to list-processing has been used. But GUI status is not working in list display and can not exit or go back from here to main selection screen.
when try to see program name & screen no it displays
Program - SAPLKKBL
Menu - STANDARD_FULLSCREEN
pls advise how to go back from list to main screen or ALV output.
thanks
anyaHi Anya,
As per my understanding, this is your prog flow:
*Main ALV Display.
*Select record.
*Click on Button SAVE.
*Handle Event.
*Call BAPI for processing based on selection.
Now at this point why dont you colect the error messages from the BAPI, and display it in a POP-UP ALV display?
You need not e very much worried about the PF status and all. Also this POP-UP will be placed on the MAIN ALV. So when you close the POP-UP it will come back to the main ALV.
By this when you press the BACK button of the main ALV, it will take you back to the selection scree.
Please let me know if i am missing something.
ags -
Report with select list and link to call another report
Hi,
I am trying to do 2 reports (REPORT1 and REPORT2).
The first is a summary report (REPORT1).
This report will display sales figures for the year. Now, I need to have a select list in the result set that will have 2 options, depending on which option is chosen, I want to call REPORT2 with the select list as a parameter. How can I do this ?
Let me try to explain what I did.
I created REPORT1 on Page 100
SELECT YEAR, sum(YTD_SALES), APEX_ITEM.SELECT_LIST(1,'DEPARTMENT','Department;DEPARTMENT,Division;DIVISION') Drilldown FROM SALES_ANALYSIS WHERE YEAR > 2000
GROUP BY YEAR ORDER BY YEAR
I created 2 hidden items namely P100_YEAR and P100_DRILLDOWN
I also made the column YEAR as a link and specified both P100_YEAR and P100_DRILLDOWN as parameters to be passed.
Next, I created REPORT2
SELECT YEAR, DECODE(:P100_DRILLDOWN, 'Department', department, 'Division', Division) dept_div, sum(YTD_SALES) ytd_sales
FROM SALES_ANALYSIS
WHERE YEAR = :P100_YEAR
When I run Report 1, it's fine, when I choose either Department or Division from the Select List and click on the link to call Report 2, report 2 is displayed, but the value being passed for P100_DRILLDOWN is not correct and as a result, I am unable to get correct results for Report 2
Am I missing something ? Are there any alternate ways to do what I'm doing ?
Thanks,
AshokHi Ashok,
The link definition will not know the value selected in the list as it is constructed only when the page is being rendered. You would need to create some javascript to handle this. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:182]
The link on the EMPNO column has been defined in the HTML Expression setting for the column instead of the Link section. The HTML Expression that I have used is:
<a href="#" onclick="javascript:doDrilldown('#EMPNO#',this);">#EMPNO#</a>And, in the page's HTML Header setting, I have added in:
<script type="text/javascript">
function doDrilldown(empno,group)
var g;
var p = group.parentNode;
while (p.tagName != "TR")
p = p.parentNode;
var x = p.getElementsByTagName("SELECT");
if (x.length > 0)
g = x[0].value;
var url = "f?p=&APP_ID.:183:&SESSION.::::P183_EMPNO,P183_GROUP:" + empno + "," + g;
document.location.href = url;
</script>When a link is clicked, the doDrilldown function is called passing in the EMPNO value and the "this" object (which identifies the object triggering the call). The function starts from that object and goes up in the HTML tag tree to the nearest TR tag (the row tag that the link is on) and then finds the first SELECT list item on the row and gets its value. It then constructs a URL using this and the EMPNO value and performs a redirect to the second page (page 183 in this example).
Andy -
How to save varaint in a report program with tabstrip in selection-screen
Hi Gurus,
We have a custom report program and selection screen of this program has a tabstrip of 9 tabs. This program will run in background job and we are facing problem to save variant for this report program.
We saved one variant with 'TAB2' populated. But when we execute the report and select that variant and we are not navigated to 'TAB2' automatically. So, code for TAB2 is not triggerd and we are not getting desired output.
When we set this program with variant in Job, program is not navigated to 'TAB2' as per variant setup.
Is there any way to save variant for this kind of report ?
Please help with your suggestions
Thanks & Regards
ChandanThanks for your help.
I found during debugging that it is holding the sy-ucomm of the first tab as default value. So, I declared a new field in selection screen with No-Display option. When user will select a tab, this new field will hold the value of that sy-ucomm. As this field is in selection screen, it is getting stored in variant also.
In start-of-selection of program I am checking this field value and accordingly set the TABSTRIP.
Thanks again for your help.....
Regards,
Chandan
Maybe you are looking for
-
Recently I updated my iMac to OS X Yosemite 10.10.1. All was operating smoothly for a few weeks until one day i started up and logged in my dock was nowhere to be seen. The desktop screen started flashing black replacing my desktop image. None of my
-
Keeping songs in the same album together
Because I am traveling for a while, I moved my iTunes library from my iMac to my MacBook Pro. Now, when I open it up, I find that a number of albums have their songs scattered over several different albums, all of the same nsme (even though the libra
-
First off, I am very technically challenged..My printer is connected by wireless to two computers. Both are not able to print anything. They both printed until we put a new computer in then one worked for a little while and the older one worked. Now
-
Item renderer for specific rows
I need to have a checkbox item renderer for a spark datagrid column. I am using the following to get an item renderer into column: var checkBoxRenderer:ClassFactory = new ClassFactory(GridCheckBoxItemRenderer); column.itemRenderer = checkBoxRenderer;
-
Dear Friends, I know that we can use do_sum in the fieldcatalog to make AVG calculation, e.g do_sum = 'C' but the function will automatically divide the total with the total line, what if I want to divide using static number, like 2? Please advice. T