Use of SetFormattingSheet for selection of EPMFormattingSheet in BPC 10.0
I am trying to select a Formatting sheet to be applied based on the category selection. Can someone help me with the VBA code for the same? The code I have written is just refreshing the sheet and not applying the formating sheet. Is there any other option by which we can change the formatting based on selection in the Page Axis?
Private Sub CommandButton1_Click()
Dim category As String
category = Range("D3").Value
Dim client1 As New EPMAddInAutomation
If category = "Actual" Then
client1.SetFormattingSheet Worksheets("Sheet1"), "Default Report", "EPMFormattingSheet"
End If
If category = "Budget" Then
client1.SetFormattingSheet Worksheets("Sheet1"), "Default Report", "EPMFormattingSheet (2)"
End If
Dim client As New EPMAddInAutomation
client.RefreshActiveSheet
End Sub
Hi Alex,
The code was changed in BPC 10, please read How To Migrate BPC 7.x BADIs to BPC 10 | SCN
EXAMPLE: F
create_write_back
write_back
B.R. Vadim
Similar Messages
-
Folder Chooser reference (which uses a tree for selection)
is there a recommendation for a folder chooser which uses a tree for selection? all i've found so far are either:
* 3rd party folder choosers
* the file open dialog box of java where you use setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
i can't believe there is currently no folder chooser which uses a tree for selection in standard java. so probably i didn't find it. before i write my own, i thought i'd ask.
thanks for the help!No, it doesn't exist in the standard Java API. What's wrong with third party solutions, especially when some of them are open source? Google found quite a few.
db -
Using NAST info for selection screen design
Hi
I am doing customization for RFQ printing ( TCODE ME9A)
I want to know can I get the same selection screen as of ME9A using NAST info for my z driver program.
Which function module can be used?
Kindly provide sample code
Regards
HarshadaHi Piyush,
Add the below code in your program.
*Note: you have to take two parameters for files.
If you select check box then p_pc parameter is visible.
if you dont select check box then p_app parameter is visible.
PARAMETERS: p_chk1 AS CHECKBOX USER-COMMAND rusr.
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME.
PARAMETERS: p_pc LIKE rlgrap-filename MODIF ID abc.
PARAMETERS: p_app LIKE rlgrap-filename MODIF ID def.
SELECTION-SCREEN: END OF BLOCK blk1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'.
CLEAR: p_pc, p_app.
IF p_chk1 = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'DEF'.
CLEAR: p_pc, p_app.
IF p_chk1 <> 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_app.
PERFORM get_fname_app.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pc.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_pc.
*& Form get_fname_app
text
FORM get_fname_app.
DATA: c_fnh_mask TYPE dxfields-filemask VALUE '.',
search_dir TYPE dxfields-longpath VALUE '/sapglobal/users',
file_path LIKE dxfields-longpath.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A'
i_server = ' '
i_path = search_dir
filemask = c_fnh_mask
fileoperation = 'R'
IMPORTING
o_path = file_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc EQ 0.
p_app = file_path.
ENDIF.
ENDFORM. "get_fname_app -
Index used or not for selecting data from ODS in a start routine
Dear friends,
In the start routine of the update rules to a cube, I am reading some data of an ODS in to an internal table .
The ODS is indexed. But, I am not sure if the index is at all used in the Select statement (that gets the data from ODS to the internal table in the start routine) while loading data to the cube.
Any help is highly appreciated.
regards,
atlajHi Atlaj
You can findout this is display execution plan for SQL statement in DB02.
Goto DB02. and under diagnostic, you find explain. Select that and enter your query. Make sure that everything here is in capital format. Below is a sample query which I have entered.
SELECT "CRM_SALORG" "SALESORG" FROM "/BI0/QORGUNIT"
WHERE "SALESORG" = ? AND "OBJVERS" = ? AND "DATETO" >= ?
AND "DATEFROM" <= ?
The select parameters should be inside qoutes and in caps and even the from table. Once you enter your query in this format, click on explain. It will show the index scan if the index is present. the output for my query will be something like
0 SELECT STATEMENT ( Estimated Costs = 1,348E+01 [timerons] )
1 (COOR) RETURN
2 ( 0) TQ
3 ( 0) FETCH /BI0/QORGUNIT
4 ( 0) IXSCAN /BI0/QORGUNIT~Z1
Where my last statement (line 4) is showing index scan and the name of index read is Z1.
Hope this helps.
Please let me know if you have any problems entering the query in the specified format and u get any error.
Regards
Sriram -
APO DP - use of tables for selections and notes
I am using APO DP V5.
I note that tables for holding selections and notes are planning area specific and have tables names such as /1APO/S1nnnnnnnn and /1APO/F1nnnnnnnn respectively.
My questions:
1. What is the logic for the naming of these tables
2. For a given planning area, are the tables names the same as one moves from Development to QA to Production environments
Thanks,
Bob AustinBob
I think the answer for the notes part of this question is here. The logic for the selections should be the same
Re: Updating of Notes for cells in APO DP
The table names might not be the same in QA since they are created independently and dynamically. But one way to check is to try it out -
Using execute immediate for select
Hi all,
i am writing a procedure as follows:
create or replace procedure ( run_yr_mo in number) as
v_count number := 0;
begin
execute immediate 'select count(*)
from all_tables
where owner = ''MGR''
and table_name = ''FC_PR_'''||run_yr_mo||''
into v_count;
dbms_output.put_line(v_count);
end;
this is returning me an error at the execute immediate.
run_yr_mo = 200912
Can someone help me out with this.
ThanksJust to show it working:
SQL> create or replace procedure myproc ( run_yr_mo in number) as
2 v_count number := 0;
3 begin
4 select count(*)
5 into v_count
6 from all_tables
7 where owner = 'MGR'
8 and table_name = 'FC_PR_'||to_char(run_yr_mo,'fm999999');
9
10 dbms_output.put_line(v_count);
11 end;
12 /
Procedure created.
SQL> set serverout on
SQL> exec myproc('200910');
0
PL/SQL procedure successfully completed.
SQL> -
Using High-Level API, need to use KeyRelease just for Lists
I'm coding a MIDlet with High-Level API, but I found that is really annoying to press down 30 times in a long List to reach the item you want to select. So I thought "what about pressing right/left and make it working like pressing down/up like 10 times"?
Something like this:
Canvas canvas = new Canvas() {
public void paint(Graphics g) { }
protected void keyPressed(int keyCode) {
switch(keyCode) {
case -3:mylist.setSelectedIndex(mylist.getSelectedIndex()-10,true);break;
case -4:mylist.setSelectedIndex(mylist.getSelectedIndex()+10,true);
}; // end of anonymous class*/But I have no idea about how to implement this =(first of all, is there any particular reason you want to stick to the high-level API?
Well, I have already nearly 700 lines of code. I don't want to start from 0 :P
I think the best way to implement this would be to use customItems so you can control the view of the list.
I think that requires MIDP2.0 I'm trying to make it work in MIDP 1.0
The best you could do with high level UI is add navigation Commands to the List.
I have already 2 Commands per List. Not all phones have a button in the center of "cursors", so I use right button for select and left for back/exit.
Thanks for replies anyway -
From what I can tell, when I select the movie and hit the airplay button to move it to the apple TV, my iPad is still doing all the work of streaming the movie. Why can't the apple TV take over the heavy work at this point? I'd like to be able to use my iPad as more of a remote with an awesome interface for the apple TV. The netflix app on iPad is great, and the easiest way to browse movies, and pushing them to the apple TV is fantastic, but once the movie starts, I want to use my iPad for other things!!! Can this be put on the "to do" list for devs?
the guy behind you wrote:
From what I can tell, when I select the movie and hit the airplay button to move it to the apple TV, my iPad is still doing all the work of streaming the movie. Why can't the apple TV take over the heavy work at this point? I'd like to be able to use my iPad as more of a remote with an awesome interface for the apple TV. The netflix app on iPad is great, and the easiest way to browse movies, and pushing them to the apple TV is fantastic, but once the movie starts, I want to use my iPad for other things!!! Can this be put on the "to do" list for devs?
Have you tried the Remote app on iPhone/iPad to control AppleTV, do searches etc? Should be easier than the remote alone and this does not involve Airplay.
Please note, only users read/comment here - your idea is quite sensible in my view (maybe have a 'Continue viewing on AppleTV' option or something. I doubt this would be high on Apple's roadmap but send them feedback here:
http://www.apple.com/feedback/appletv.html -
I use i-tunes for backing tracks. How can I set up a play list to play only one song at a time and not go to the next one until I manually select it?
ThanksUncheck all the songs in the playlist. iTunes will then play one song and stop.
Regards. -
SSRS 2008, can I use exec sp and Select combo in dataset query pane for DataSet
Hi, I'm trying to use this combo for my dataset: i.e. call sp and then use table resulting from this sp, and it give me an error
<procedure or function has too many arguments specified> while generating report on Preview, but runs OK from query designer, I'm totaly lost.
Can it be done??
create table #temp (c1....c2)
insert #temp
exec sp_1000_Get_Mir
select c1, c2 from #tempYou need to use it like below if you want to select subset of columns from sp output
http://beyondrelational.com/modules/2/blogs/70/posts/10812/select-columns-from-exec-procedurename-is-this-possible.aspx
But I would still recommend using a wrapper procedure inside it create a temp table with structure some as your sp output and then select required columns from it
ie like below
CREATE PROC WrapperProc
AS
create table #temp (c1....c2)
insert #temp
exec sp_1000_Get_Mir
select c1, c2 from #temp
go
Then call the WrapperProc from your report
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Single Date Parameter, but using a date range for selection
Post Author: fireman204
CA Forum: Formula
I'm fairly new to Crystal Reports, so be gentle with me. I have a report that has 4 parameters. The report asks for data for a specific month, the YTD data to the end of the selected month, and the same data from the previous year. It seems there should be a way to enter a single parameter (ie., 2007-4-1), and off that date select all the data for the month, the current year to the end of that month, and then the data from the previous year for the same period. I know this will be a formula field needed to select the data, but not sure how to get there from here. Any ideas? Thanks in advance!Post Author: SKodidine
CA Forum: Formula
It should be possible for you to create just one parameter to have the user input a single date and then create formulae to create the begin and end dates for the month, YTD and PYTD. You can then use these formulae for record selection criteria.
For example, if the user inputs a date of 2007-04-01 for the single parameter then create formulae such as:
beginmonth
datevar beginmonth;
beginmonth := date(year({?My Parameter}),month({?My Parameter}),01);
endmonth
datevar endmonth;
endmonth := cdLastDayOfMonth ({?My Parameter});
To use the cdlastdayofmonth function, In the formula workshop window, click on "Repository Custom Functions" then under CRYSTAL and DATE right click on cdlastdayofmonth and click on ADD TO REPORT. Once that is done, then create the above "endmonth" formula. You should see this new function in your formula workshop window in the FUNCTIONS window under CUSTOM FUNCTIONS.
beginytd
datevar beginytd := date(year(currentdate),01,01);
endytd
datevar endytd;
endytd := cdLastDayOfMonth ({?My Parameter});
beginpytd
datevar beginpytd := date((year(currentdate)-1),01,01);
endpytd
evaluateafter({@endytd});
datevar endytd;
datevar endpytd;
endpytd := date(year(endytd)-1,month(endytd),day(endytd));
In your record selection criteria, you can use the above formulae like this:
in {@beginmonth} to {@endmonth}
or
in {@beginytd} to {@endytd}
or
in {@beginpytd} to {@endpytd};
This is one way of doing it, perhaps others might pitch in with a more efficient way. -
Hello experts,
I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
while (allFiles.Contains(tempFileName ))
tempFileName = String.Format("{0} ({1})", fileName, count++);
output = Path.Combine(folderPath, tempFileName );
string fullPath=output + ".xml";
However, it gives the following compilation errors
for the Select and Contain methods respectively.:
'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
(are you missing a using directive or an assembly reference?)
'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
found (are you missing a using directive or an assembly reference?)
I googled on these errors, and people suggested to add using System.Linq;
I did, but the errors persist.
Any help and information is greatly appreciated.
P. S. Here are the using clauses I have:
using System;
using System.Data;
using System.Windows.Forms;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Linq;Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace consAppFileManipulation
class Program
static void Main(string[] args)
string fullPath = @"c:\temp\trace.log";
string folderPath = @"c:\temp\";
string fileName = "trace.log";
string output = "";
string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
string extension = Path.GetExtension(fullPath);
string path = Path.GetDirectoryName(fullPath);
string newFullPath = fullPath;
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
//THIS IS AN INFINITE LOOP
while (allFiles.Contains(fileNameOnly))
tempFileName = String.Format("{0} ({1})", fileName, count++);
//THIS CODE IS NEVER REACHED
output = Path.Combine(folderPath, tempFileName);
fullPath = output + ".xml";
//string fullPath = output + ".xml";
UML, then code -
I have a dual boot lab that I set up for a school. The partitions consist of Mountain Lion OSX and Windows 7 Ent. I use bootpicker software for choosing the operating system at startup. When I select the windows partition, it take just under 2 minutes from selection to the windows login screen. It seems to take incredibly long for the mac to "shut down and hand over the operating system to windows.
Do you have any suggestions on how to get this timing faster?
Thanks for any ideas/inputThe only suggestion I can make is to look ar ReFind (previuosly ReFit). Startup mamangement is one of its features.
But
It is very powerful so test it for yourself before deploying it. Some of the functions are best kept out of the hands of the curious, or 'playful'
And you never answered this question.
Tell me what the needs are, do the users always need to choose Windows or is this a variable? -
I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages. If I type it won't continue in Hebrew. I have tried downloading several fonts, including those from professional societies, but the only way to get Hebrew in my document is to cut and paste. Does anyone know how to fix this? I use an older MacBook running OS 10.9.1. I used to do my Hebrew work in Word, but it is no longer supported by Mac OS.
Just clarifying:
Pages '09 has bad support for Hebrew, Arabic etc but will accept pasted text.
Pages 5 has much better support but with bugs.
If you have columns they are in the wrong order ie Text starts in the left column and ends in the right column.
If you type English into Hebrew text it tends to fall in the wrong position eg instead of to the left of Hebrew punctuation it goes to the right.
As Tom recommends the only real solution on the Mac is Mellel.
Peter
btw Tell Apple, they are amazingly slow to fix this running sore which has been broken since RtoL was supposedly introduced in OSX 10.2.3 over a decade ago.
Peter -
I have to enable cookies in order to have an online purchase credited to my mileage account. So, I opened Firefox Tool and selected Options then Privacy. There, I changed "Remember history" to "Use custom settings for history," as, this will achieve what I am trying to do. However, when I press "OK" the box jumps back to the Privacy box and I see that "Remember history" is still the setting. What steps do I take to prevent the Privacy box from defaulting to "Remember history" when I want to change that setting to something else?
The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
"Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
Do you have a problem with the cookies?
You can inspect and manage permissions for the domain in the currently selected tab via these steps:
*Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
*Click "More Information" to open "Tools > Page Info" with the Security tab selected
*Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
Maybe you are looking for
-
SQL Loader error while loading a date field
Hi, I am getting the below error while I am trying to load a table with a date field using SQL Loader Record 1: Rejected - Error on table RPT_HOST_USAGE, column USAGE_TIMESTAMP. ORA-01861: literal does not match format string My input file is as belo
-
Hi all, I need to do high-frequency, high-channel-count acquisition. Specs Signals: 10 MHz, 60 channels Controller: PXIe-8135 (Windows 7) Chasses: PXIe-1085 (2x) Input cards: PXIe-7962R FlexRIO base with NI-5734 digitizer (15x) Description Each FlexR
-
TS2446 When i go to buy an app i get a verification is required????
When i go to buy an app i get a verification is required
-
Getting message for every record while pressing the down arrow
Hi, when i query the form and when I am going through the records by pressing the down arrow of the keyboard I am getting the message 'Do you want to Save the records' for every record. How to avoid the message? I developed the form in oracle applica
-
Inspection lot created with inspection lot origin 14(equipment) after result recording when i m trying to save the lot the error i found CODES A DOES NOT EXISTS IN SELECTED SET 01,i checked the task list inspection key has been assigned with 300 type