Interaction, View with SUD
Hello,
my plan is to create a view sheet with integrated dialog (as you can see below). What i would like to have is, that when the user klicks on the Button "Goto", a Interaction starts (InteractionOn) so that the user can select a point in the diagramm. My problem is to combine InteractionOn with the Button klick event?! Interaction should not start until the user klicked on the Button.
My second question: Is there a easy way to go somewhere backwards in a program, or e.g. go back to main-menu (dialog) or "start"
Thanks a lot
Hi Brad_Turpin,
i think in my case it's a bit more difficult. First i'm not quite shure if get right what you mean with "callback code of a SUDialog" ?!
In my matter I'm starting a Script (main script), in this script at the beginning i call my "main" dialog with Suddlgshow(.....,oDlgVar), then the user makes some settings and after that klicks on a button to start one of some different "evaluation programms" -> transfer back to main script, where the evaluation codes are in subroutines (better performance than in Dialog) -> show results (view with SUD)
Call Main
Sub Main
Call Suddlgshow("Dlg1",sPathDocuments & "MainSUD.SUD",oDlgVar)
If DlgState="IDOk" then
If oDlgVar.bstart1 then
Call Program1
Elseif oDlgVar.bstart2 then
Call Program2
End if
End if
End Sub
Sub Program1
End Sub
Sub Program2
End Sub
What I'd like to have is the opportunity to "go back" to "main" Dialog preferably with a button in View with SUD, so that the user can start a different programm or change settings.
I appreciate every idea or suggested solution for my issue
Thanks a lot
Similar Messages
-
Does Safari support interactive PDFs with layers? Through the use of hidden layers and buttons we built in interactivity that allows the viewers to click on buttons to display different content. When I view the PDF in Safari 5.0.3 on my Mac OS 10.5.8 the PDF displays fine and the interactivity works. However our web design firm tell me the PDF displays all the hidden layers when they view it in Safari. Who's right?
Try updating your Safari to the latest version, 5.0.5.
Also check whether the rest of your system is up to date by going to Software Update in the Apple menu. -
Control VIEW cursor with SUD Dialog
Hello,
I've developed a little SUD dialog and sticked into the bottom of VIEW. I the TopArea I've "CurveChart2D".
With the dialog I want to change the cursor type and mode (see code below)
If I try to change the cursor from this script (the script is inside the embedded VIEW dialog I get the message of DIAdem "error"
If I try now to change the cursor with the VIEW buttons I get the message "Schwerwiegender Fehler".
In fact this little script crash DIAdem. I've to restart.
If I use the Dialog standalone (not as a part of VIEW), everything works fine.
I believe the problem is, that you can't change something from an ActiveArea (Dialog in Area : 2) inside an InactiveArea (2D Graph in Area :1)
But this works (graph change something inside the dialog)
Sub ViewConnector_EventCursorPosChanged(ByRef This) 'Erzeugter Event-Handler
'todo change the label and value controls for the different cursor and trim methods
edtXPosVal.Text = View.ActiveSheet.Cursor.X1
edtYPosVal.Text = View.ActiveSheet.Cursor.Y1
edtChnPos.Text = View.ActiveSheet.Cursor.P1
End Sub
So the point is,
1. how is it possible to control VIEW with an embedded SUD dialog?
2. The script engine shouldn't crash DIAdem. It should just abort or shouldn't be executable.
Sub Button1_EventClick(ByRef This) 'Erzeugter Event-Handler
iTrimMethod = rdbtnTrimMethods.Value
Dim oSheets
Dim oChart
oSheets = View.Sheets
sSheetName = View.ActiveSheet.Name
Select Case iTrimMethod
Case 0
MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
Set oChart = View.Sheets(View.ActiveSheet.Name).Areas("Area : 1").DisplayObj
View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Crosshair"
View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
View.Refresh
Case 1
MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
View.ActiveSheet.Areas(1).Active = True
View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Band"
View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
View.Refresh
Case 2
MsgBox View.ActiveSheet.Name & " Index= " & View.ActiveSheet.Index
View.ActiveSheet.Areas(1).Active = True
View.Sheets(View.ActiveSheet.Name).Cursor.Type = "Crosshair"
View.Sheets(View.ActiveSheet.Name).Cursor.Mode = "GraphPoints"
View.Refresh
End Select
End Sub
Best regards
Thomas Plöger
BASF Catalysts Germany GmbHHallo Mr. Plöger,
I've double-checked the described behavior. In general, the script code you've developed is OK. But there was a bug in DIAdem that causes the problem. It will be fixed with the DIAdem 2010 service pack that we can provide soon.
Greetings
WalterRick -
Problem refreshing reports with params in the Interactive viewer from ASP
I have a problem getting reports to refresh by clicking the Interactive Viewer's refresh button and reusing the supplied parameters. I am seeing this exact same problem on both V9.2 and 11.5 unmanaged RAS servers.
I am using the following function code to set the reports parameters:
Public Sub PassParameter(param_index, param_value, param_is_multi,param_range_kind)
Dim param_old ' parameter field in the report
Dim param_new ' parameter field that will replace old parameter
Dim paramValue ' discrete parameter value
Dim aValues
Dim rValues
Dim iLoop
Set param_old = clientDoc.DataDefinition.ParameterFields.Item(param_index)
Set param_new = objFactory.CreateObject("CrystalReports.ParameterField";)
If param_range_kind = 1 then
Set paramValue = objFactory.CreateObject("CrystalReports.ParameterFieldDiscreteValue";)
paramValue.Value = param_value
else
Set paramValue = objFactory.CreateObject("CrystalReports.ParameterFieldRangeValue";)
rValues = split(param_value, "|")
paramValue.BeginValue = rValues(0)
paramValue.EndValue = rValues(1)
paramValue.LowerBoundType = 2
paramValue.UpperBoundType = 2
end if
param_old.CopyTo param_new
if param_is_multi = 0 then
param_new.CurrentValues.Add paramValue
else
aValues = split(param_value, ",")
For iLoop = LBound(aValues) to UBound(aValues)
param_new.CurrentValues.Add Trim(aValues(iLoop))
Next
end if
clientDoc.DataDefController.ParameterFieldController.Modify param_old, param_new
' Clean up
Set paramValue = Nothing
Set param_new = Nothing
End Sub
and then redirecting to another ASP page to invoke the viewer (the report "clientDoc" object is passed to the viewer asp page a s a session variable). The code of the viewer page is:
<%
Response.ExpiresAbsolute = Now() - 1
Response.Charset=";UTF-8"
Dim clientDoc
Set clientDoc = session("clientDoc")
Dim ObjFactory, RptAppSession
Set ObjFactory = CreateObject("CrystalReports.ObjectFactory";)
Dim viewer
Set viewer = ObjFactory.CreateObject("CrystalReports.CrystalReportInteractiveViewer";)
viewer.PageTitle = "Interactive Report - " & Request("rptnam")
viewer.IsOwnForm = true
viewer.IsOwnPage = true
viewer.HasRefreshButton = true
viewer.EnableParameterPrompt = false
viewer.ReuseParameterValuesOnRefresh ; = true
viewer.HasExportButton = false
' viewer.HasPrintButton = false
viewer.ReportSource = clientDoc.ReportSource
Dim BooleanSearchControl
Set BooleanSearchControl = ObjFactory.CreateObject("CrystalReports.BooleanSearchControl";)
BooleanSearchControl.ReportDocument = clientDoc
viewer.BooleanSearchControl = BooleanSearchControl
viewer.ProcessHttpRequest Request, Response, Session
%>
If I set viewer.EnableParameterPrompt = false then I get an erro upon clicking the viewer's refresh button (error is: Missing parameter values. webReporting.dll error '8004100e' ), but if I set viewer.EnableParameterPrompt = true, then I get the automatically generated prompts appear but they are all empty. Either way, RAS doesn't remember the supplied parameters. I know the parameters are being read by RAS as the report's contents prove this fact, but they are not remembered after refreshing. If the automatically generated prompts are filled in and submitted, subsequent refreshes work correctly.
How do I get the report viewer to reuse the parameters that have been set programmatically after a refresh? BTW, changing my implementation to anything other than using ASP against an unmanaged RAS server is not an option at this time.
Thanks in advance!
Dave.Hi Dave,
I don't have a "nice" set of code lines but below hard codes one parameter name and value:
ISCRParameterField newParameterField = new ParameterFieldClass();
newParameterField.ParameterType = crParameterFieldTypeEnum.crParameterFieldTypeReportParameter;
newParameterField.Name = "YourParamName"; // you can make a collection here
newParameterField.ReportName = "";
newParameterField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField;
newParameterField.AllowMultiValue = true;
newParameterField.AllowCustomCurrentValues = true;
Fields parameterFields = reportClientDocument.DataDefinition.ParameterFields;
ISCRField existingParameterField;
RowsetMetaData rowsetMetaData = new RowsetMetaDataClass();
Fields fields = new FieldsClass();
ArrayList defaultValues = new ArrayList();
reportClientDocument.DataDefController.ParameterFieldController.SetCurrentValue("", @"YourParamName", @"YourParamValue");
Thanks again
Don -
Interactive Report with PL/SQL Function Source
Is it possible to create interactive report with PL/SQL function source returing a query? If not, has anyone done any work to simulate the interactive reporting feature for a normal report using API?
I haven't tried that before but you could:
1. create a collection from your result set returned by a dynamic query,
2. create a view on that collection,
3. use the view in your interactive report.
The usability of this proposal depends from a question how "dynamic" your query is - does it always have the same number of columns or not.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Problems with Long Interactive PDFs with Extensive Interactivity via Buttons and Hyperlinks
I have inherited a project which requires the creation of large interactive pdfs with lots of buttons and hyperlinks. I am having continuing problems with buttons not working and long periods of wasted time as attempted exports fail.
Background:
The largest books range from 264 MB to 411 MB – (764 to 1024 pages). Per book, the maximum number of buttons on each page is 16, linking separate files (subsections) in the book via text anchors. The buttons are created using Master Pages which are set for each file (subsection) in the book. 50% to 60% of the pages in each file (subsection) will also be referenced as 2 hyperlinks. One is the source page hyperlink on each workflow and the second is a listing on the source page as a possible navigation path. I have created hyperlink destinations for each page which is used to generate the source and navigation hyperlinks. With 2 hyperlinks representing 50%-60% of the pages - that means the largest book contains a maximum of 1200 hyperlinks. Each file (subsection) also has it’s own separate TOC and the bookmarks that are created (optionally) during the TOC creation process. As currenlty formatted, the book is primarily images of workflows which mean 50%-60% of the pages contain pdf images.
Several questions:
1. How do I get my buttons to work consistently? There is nothing worse than working hard and then ending up with faulty product. I have been thinking about combining all the files into 1 document per book. Then I could change the buttons to objects, add a hyperlink over each one and set them for a specific hyperlink destination. Can I do that if the buttons are on Master Pages? Can InDesign handle a document with 1024 pages? I can't fix the problems in Acrobat later because it would mean 1024 fixes for just 1 button correction.
2. How do I stop InDesign from freezing when exporting these large pdfs? It seems to wait until the final steps to crash which sometimes means a 4-6 hour waste of time per export.
3. Are we making a mistake using pdfs as our workflow images? I'm not pleased with the quality of the images we have and wonder if we switched to another image format if this would improve the results. Would it be worth the effort and relinking? I have been reading different information on what the preferred source image format is for InDesign. One article I found yesterday says using pdf images is a problem. Another site said the Photoshop, TIF and JPG are preferred but PDFs were also acceptable.
4. Do I need to propose scrapping InDesign as the source of the project? If so, what application can better meet my needs?Those are the limitations you have to put up with.
Apple doesn't follow the PDF spec. It chooses which PDF features it will support.
As to the version number (v5 or v6 or the new multimedia features in v9), there is different support in different versions of Reader/Acrobat as the product has developed. You just need to post a message to downloaders that they need to view the file in Adobe Reader version X or above to get the best experience.
Other industry standards face the same problem: How can you add new feature like multimedia? You can't always be backwards compatible. -
Enable and encourage user input in PDFs (viewed with Adobe Reader)
with FrameMaker-to-Acrobat TimeSavers + Form Assistant
Half-hour webinar (free; no fluff, no hype, no nonsense)
Wednesday, June 5, starting 9am PDT
Register at: https://www3.gotomeeting.com/register/157658438
Enabling PDFs for various types of user input can strengthen the interaction between users and the content, and improve satisfaction due to greater user involvement/control. In addition, designated avenues for user input can contribute to documentation quality and provide outlet for frustration, for example by sending inputs regarding the documentation or the product directly from within the PDF.
Techniques demonstrated in this webinar include features that are all embedded in PDFs that are viewed with the free Adobe Reader:
• text fields where users can record data values and options
• checkboxes to track progress
• page marks and notes (optionally e-mailed)
• embedded grading/feedback forms
• storing of useful search queries within the PDF for future use
Shlomo Perets
MicroType, http://www.microtype.com
FrameMaker/Acrobat/Captivate training & consulting • FM-to-Acrobat TimeSavers/Assistantshttps://crash-stats.mozilla.com/report/index/bp-0a0b872f-5127-4ee1-a355-ca3cb2120721
https://crash-stats.mozilla.com/report/index/bp-9cd87dd7-205f-4844-9e6d-3ce262120721
https://crash-stats.mozilla.com/report/index/bp-8c07c846-b2ed-4535-8db4-4ee072120720
https://crash-stats.mozilla.com/report/index/bp-f29a89ed-f8b1-4a62-ba3e-983e22120720
https://crash-stats.mozilla.com/report/index/bp-e16d2b91-0f7d-4e5a-9e25-255852120718
https://crash-stats.mozilla.com/report/index/bp-1226c709-5f87-41c6-95d3-4310d2120718
https://crash-stats.mozilla.com/report/index/bp-4de2a0da-dd36-4ec8-8e53-c42742120714
https://crash-stats.mozilla.com/report/index/bp-e16d2b91-0f7d-4e5a-9e25-255852120718
https://crash-stats.mozilla.com/report/index/bp-4de2a0da-dd36-4ec8-8e53-c42742120714
https://crash-stats.mozilla.com/report/index/bp-eac1c5a5-2dce-4415-b645-07a1f2120714
https://crash-stats.mozilla.com/report/index/bp-1ede5bd3-8c72-4362-8d79-4f29c2120714
https://crash-stats.mozilla.com/report/index/bp-d4fd5dae-dacd-45f8-9549-2c3702120722
https://crash-stats.mozilla.com/report/index/bp-ca510991-de29-44b3-be02-0255a2120722
https://crash-stats.mozilla.com/report/index/bp-8600c221-3fd3-4eaa-a5af-a602b2120722
With Hardware Accelaration in Flash turned off. Still crashing. -
How do I create/host interactive articles with embedded video for use in browsers?
I'm seeking a little guidance -
How do I create/host interactive articles with embedded video for use in browsers?
The aim is to bring together video, design, images and writing in one place. A little like Born Presents, but very accessible and user friendly.
I'm happy using InDesign but want to create interactive articles / magazines that have embeded video files as required. I've been looking at .SWF files but I've come unstuck.
I want people to view the articles via a blog, ideally with them opening in a lightbox style viewer. It's not intended for tablet viewing and people should be able to view and interact with the files with little effort on their part.
I think I know how to create these files within InDesign, but I'm not so hot on web design and I'm not sure how to host these online. Does this start coming into the realms of Flash?
If anyone could point in the right direction I'd really appreciate it - Thank you in advance.PDF is one thing. Folios for DPS is another. There is a little bit of
overlap but not much.
The interactivity in the folio overlays panel is for DPS only. -
Creating interactive PDFs with page turn,issue with PDF
I recently watch a video on adobe tv titled "indesign : creating interactive PDFs with page turn and flash animation". The video was great,simple to follow with great results, I was able to create a document with interactive page turns that was viewable in a web browser,the next step was to then create the same document but be able to view it in PDF format. I followed the above mentioned video and everything worked apart from one issue once I exported the indesign file out as an interactive PDF it opened up in adobe acrobat pro with no problem but when I went to turn the page it would lag and slow down to the point were it was almost impossible to turn the page, the page turning didn't seem to flow as well as when viewing it in a web browser. The document I am creating is a catalogue and I am happy with the interactive version for the web but I am looking at putting the catalogue on a CD/ USB and need it to open and work with PDF, it would be a great help if anyone could advise me on the reason why the interactive page turning runs so poor in PDF format. I am currently running on a very powerful computer with the adobe CS5 master suit.
Any help would be much appreciatedThe page flipping is an SWF effect, so essentially you now have an entire SWF embedded inside a PDF.
If you forget about this garish effect (which, I can guarantee you, by next year will be "so 2012") you can send out a standard PDF which can be easily viewed on otherwise sub-standard computers, and using very straightforward PDF readers, such as the ones currently available for the iPad and its clones. -
Query rewrites with Nested materialized views with different aggregations
Platform used : Oracle 11g.
Here is a simple fact table (with measures m1,m2) and dimensions (a) Location (b) Calendar and (c) Product. The business problem is that aggregation operator for measure m1,m2 are different along location dimension and Calendar dimension. The intention is to preaggregate the measures for a product along the calendar dimension and Location dimension and store it as materialized views.
The direct option is to define a materialized view with Inline queries (Because of the different aggrergation operator, it is not possible to write a query without Inline query). http://download-uk.oracle.com/docs/cd/B28359_01/server.111/b28313/qradv.htm#BABEAJBF documents the limitations that it works only for 'Text match' and 'Equivalent queries' and that is too limiting.
So decided to have nested materialized view, with first view having just joins(my_dim_mvw_joins), the second view having aggregations along Calendar dimension (my_dim_mvw_calendar) and third view having aggregations along the Location dimension(my_dim_mvw_location). Obviously I do not want the query I fire to know about materialized views and I fire it against the fact table. I see that for the fired query (Which needs aggregations along both Calendar and Location), is rewritten with just second materialized view but not the third. (Had set QUERY_REWRITE_INTEGRITY as TRUSTED) .
Wanted to know whether there are limitations on Query Writes with nested materialized views? Thanks
(Have given a simple testable example below. Pls ignore the values given in 'CALENDAR_IDs', 'PRODUCT_IDs' etc as they are the same for all the queries)
-- Calendar hierarchy table
CREATE TABLE CALENDAR_HIERARCHY_TREE
( "CALENDAR_ID" NUMBER(5,0) NOT NULL ENABLE,
"HIERARCHY1_ID" NUMBER(5,0),
"HIERARCHY2_ID" NUMBER(5,0),
"HIERARCHY3_ID" NUMBER(5,0),
"HIERARCHY4_ID" NUMBER(5,0),
CONSTRAINT "CALENDAR_HIERARCHY_TREE_PK" PRIMARY KEY ("CALENDAR_ID")
-- Location hierarchy table
CREATE TABLE LOCATION_HIERARCHY_TREE
( "LOCATION_ID" NUMBER(3,0) NOT NULL ENABLE,
"HIERARCHY1_ID" NUMBER(3,0),
"HIERARCHY2_ID" NUMBER(3,0),
"HIERARCHY3_ID" NUMBER(3,0),
"HIERARCHY4_ID" NUMBER(3,0),
CONSTRAINT "LOCATION_HIERARCHY_TREE_PK" PRIMARY KEY ("LOCATION_ID")
-- Product hierarchy table
CREATE TABLE PRODUCT_HIERARCHY_TREE
( "PRODUCT_ID" NUMBER(3,0) NOT NULL ENABLE,
"HIERARCHY1_ID" NUMBER(3,0),
"HIERARCHY2_ID" NUMBER(3,0),
"HIERARCHY3_ID" NUMBER(3,0),
"HIERARCHY4_ID" NUMBER(3,0),
"HIERARCHY5_ID" NUMBER(3,0),
"HIERARCHY6_ID" NUMBER(3,0),
CONSTRAINT "PRODUCT_HIERARCHY_TREE_PK" PRIMARY KEY ("PRODUCT_ID")
-- Fact table
CREATE TABLE RETAILER_SALES_TBL
( "PRODUCT_ID" NUMBER,
"PRODUCT_KEY" VARCHAR2(50 BYTE),
"PLAN_ID" NUMBER,
"PLAN_PERIOD_ID" NUMBER,
"PERIOD_ID" NUMBER(5,0),
"M1" NUMBER,
"M2" NUMBER,
"M3" NUMBER,
"M4" NUMBER,
"M5" NUMBER,
"M6" NUMBER,
"M7" NUMBER,
"M8" NUMBER,
"LOCATION_ID" NUMBER(3,0),
"M9" NUMBER,
CONSTRAINT "RETAILER_SALES_TBL_LOCATI_FK1" FOREIGN KEY ("LOCATION_ID")
REFERENCES LOCATION_HIERARCHY_TREE ("LOCATION_ID") ENABLE,
CONSTRAINT "RETAILER_SALES_TBL_PRODUC_FK1" FOREIGN KEY ("PRODUCT_ID")
REFERENCES PRODUCT_HIERARCHY_TREE ("PRODUCT_ID") ENABLE,
CONSTRAINT "RETAILER_SALES_TBL_CALEND_FK1" FOREIGN KEY ("PERIOD_ID")
REFERENCES CALENDAR_HIERARCHY_TREE ("CALENDAR_ID") ENABLE
-- Location dimension definition to promote query rewrite
create DIMENSION LOCATION_DIM
LEVEL CHAIN IS LOCATION_HIERARCHY_TREE.HIERARCHY1_ID
LEVEL CONSUMER_SEGMENT IS LOCATION_HIERARCHY_TREE.HIERARCHY3_ID
LEVEL STORE IS LOCATION_HIERARCHY_TREE.LOCATION_ID
LEVEL TRADING_AREA IS LOCATION_HIERARCHY_TREE.HIERARCHY2_ID
HIERARCHY PROD_ROLLUP (
STORE CHILD OF
CONSUMER_SEGMENT CHILD OF
TRADING_AREA CHILD OF
CHAIN
-- Calendar dimension definition
create DIMENSION CALENDAR_DIM
LEVEL MONTH IS CALENDAR_HIERARCHY_TREE.HIERARCHY3_ID
LEVEL QUARTER IS CALENDAR_HIERARCHY_TREE.HIERARCHY2_ID
LEVEL WEEK IS CALENDAR_HIERARCHY_TREE.CALENDAR_ID
LEVEL YEAR IS CALENDAR_HIERARCHY_TREE.HIERARCHY1_ID
HIERARCHY CALENDAR_ROLLUP (
WEEK CHILD OF
MONTH CHILD OF
QUARTER CHILD OF
YEAR
-- Materialized view with just joins needed for other views
CREATE MATERIALIZED VIEW my_dim_mvw_joins build immediate refresh complete enable query rewrite as
select product_id, lht.HIERARCHY1_ID, lht.HIERARCHY2_ID, lht.HIERARCHY3_ID, lht.location_id, cht.HIERARCHY1_ID year,
cht.HIERARCHY2_ID quarter, cht.HIERARCHY3_ID month, cht.calendar_id week, m1, m3, m7, m9
from retailer_sales_tbl RS, calendar_hierarchy_tree cht, location_hierarchy_tree lht
WHERE RS.period_id = cht.CALENDAR_ID
and RS.location_id = lht.location_id
and cht.CALENDAR_ID in (10,236,237,238,239,608,609,610,611,612,613,614,615,616,617,618,619,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477)
AND product_id IN (5, 6, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20)
AND lht.location_id IN (2, 3, 11, 12, 13, 14, 15, 4, 16, 17, 18, 19, 20)
-- Materialized view which aggregate along calendar dimension
CREATE MATERIALIZED VIEW my_dim_mvw_calendar build immediate refresh complete enable query rewrite as
select product_id, HIERARCHY1_ID , HIERARCHY2_ID , HIERARCHY3_ID ,location_id, year, quarter, month, week,
sum(m1) m1_total, sum(m3) m3_total, sum(m7) m7_total, sum(m9) m9_total,
GROUPING_ID(product_id, location_id, year, quarter, month, week) dim_mvw_gid
from my_dim_mvw_joins
GROUP BY product_id, HIERARCHY1_ID , HIERARCHY2_ID , HIERARCHY3_ID , location_id,
rollup (year, quarter, month, week);
-- Materialized view which aggregate along Location dimension
CREATE MATERIALIZED VIEW my_dim_mvw_location build immediate refresh complete enable query rewrite as
select product_id, year, quarter, month, week, HIERARCHY1_ID, HIERARCHY2_ID, HIERARCHY3_ID, location_id,
sum(m1_total) m1_total_1, sum(m3_total) m3_total_1, sum(m7_total) m7_total_1, sum(m9_total) m9_total_1,
GROUPING_ID(product_id, HIERARCHY1_ID, HIERARCHY2_ID, HIERARCHY3_ID, location_id, year, quarter, month, week) dim_mvw_gid
from my_dim_mvw_calendar
GROUP BY product_id, year, quarter, month, week,
rollup (HIERARCHY1_ID, HIERARCHY2_ID, HIERARCHY3_ID, location_id)
-- SQL Query Fired (for simplicity have used SUM as aggregation operator for both, but they will be different)
select product_id, year, HIERARCHY1_ID, HIERARCHY2_ID,
sum(m1_total) m1_total_1, sum(m3_total) m3_total_1, sum(m7_total) m7_total_1, sum(m9_total) m9_total_1
from
select product_id, HIERARCHY1_ID , HIERARCHY2_ID , year,
sum(m1) m1_total, sum(m3) m3_total, sum(m7) m7_total, sum(m9) m9_total
from
select product_id, lht.HIERARCHY1_ID , lht.HIERARCHY2_ID , lht.HIERARCHY3_ID ,lht.location_id, cht.HIERARCHY1_ID year, cht.HIERARCHY2_ID quarter, cht.HIERARCHY3_ID month, cht.calendar_id week,m1,m3,m7,m9
from
retailer_sales_tbl RS, calendar_hierarchy_tree cht, location_hierarchy_tree lht
WHERE RS.period_id = cht.CALENDAR_ID
and RS.location_id = lht.location_id
and cht.CALENDAR_ID in (10,236,237,238,239,608,609,610,611,612,613,614,615,616,617,618,619,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477)
AND product_id IN (5, 6, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20)
AND lht.location_id IN (2, 3, 11, 12, 13, 14, 15, 4, 16, 17, 18, 19, 20)
GROUP BY product_id, HIERARCHY1_ID , HIERARCHY2_ID , HIERARCHY3_ID , location_id, year
) sales_time
GROUP BY product_id, year,HIERARCHY1_ID, HIERARCHY2_ID
This Query rewrites only with my_dim_mvw_calendar. (as saw in Query Plan and EXPLAIN_MVIEW). But we would like it to use my_dim_mvw_location as that has aggregations for both dimensions.blackhole001 wrote:
Hi all,
I'm trying to make my programmer's life easier by creating a database view for them to query the data, so they don't have to worry about joining tables. This sounds like a pretty horrible idea. I say this because you will eventually end up with programmers that know nothing about your data model and how to properly interact with it.
Additionally, what you will get is a developer that takes one of your views and see's that of the 20 columns in it, it has 4 that he needs. If all those 4 columns comes from a simple 2 table join, but the view has 8 tables, you're wasting a tonne of resources by using the view (and heaven forbid they have to join that view to another view to get 4 of the 20 columns from that other view as well).
Ideally you'd write stored routines that satisfy exactly what is required (if you are the database resource and these other programmers are java, .net, etc... based) and the front end developers would call those routines customized for an exact purpose.
Creating views is not bad, but it's by no means a proper solution to having developers not learn or understand SQL and/or the data model. -
How to create an interactive magazine with CS3
I am trying to create an interactive magazine with CS3 and don't know how to do it. First of all, is this possible with CS3 or do I need to upgrade to CS4? And if it is possible, can anyone tell me a step by step plan to follow? Or is there a book or download I can get for more information which is recommended?
ThanksGoogle is your friend: Interactive Newsletters
You can make digital newsletters for PDF in CS3 or 4. To make a digital newsletter that can be viewed in a browser (export to swf) you need CS4. Big advantage of swf is much smaller file size than PDF.
One free bit of advice: design your file horizontally (11 w x 8.5h) since that works best for reading a PDF or swf online. -
Prefill interactive form with data upon displaying out
Hi,
Let's say if i have a web dynpro application, with a view containing an interactive form. I would like to prefill the interactive form with data by calling a webservice or thru RFC before it display the form out. So that when the form is first displayed out, it is already prefilled with data. Is this possible?
Is there any guide out there which is similar to this scenario?
Btw, currently i only managed to consume the webservice and prefill the form with data after clicking a button which will execute the webservice.
Regards,
CindyHi,
A Presentation from tech ed
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/26e9dc90-0201-0010-a790-a7048c8bba95
A blog
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/88e7ea34-0501-0010-95b0-ed14cfbeb85a
Adobe Online Interactive Forms Integration into Web Dynpro for Java Applications - Webinar Details
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf8dc795-0801-0010-ae97-af93a0795b3f
Regards
Ayyapparaj -
Interactive Form with ABAP DDIC Interface
Hi,
I'm new on adobe interactive forms and I have some problems. I have a form with a abap dictionary based interface.
When I test my web dynpro application with the interactive form, it is not interactive. :-P
And yes the property "enabled" of the UI-Element is marked.
First I watched an e-Learning an build a web dynpro application with a from which has a interface based on xml.
I generated the inteface of the form from my context. It works fine.
But with a interface based on xml I dont't know how I can get a table on my PDF in the Adobe Lifecycle Designer.
So I searched snd n the forum and found a tutorial (InteractiveForm_and_Dynamic_Tables). Like in this tutorial I created a interface based on ABAP Dictionary and a form with a table. Then I choose this form on my UI-Element as templateSource and generate the context from the interface. But as i mentioned above, now the PDF isn't interactive.
Any idea?
Thx Florian
PS: when someone can tell/help me in german it would be much easier for me to understand...You can create Interactive form with ABAP dictionay based interface. You need to add following code in method "WDDOMODIFYVIEW" of your view.
DATA: LR_INTERACTIVE_FORM TYPE REF TO CL_WD_INTERACTIVE_FORM,
LR_METHOD_HANDLER TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
CHECK FIRST_TIME = ABAP_TRUE.
LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'TEST' ).
LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
Refer:: http://help.sap.com/saphelp_nw70/helpdata/en/42/c247dc6227311ce10000000a1553f7/content.htm -
F4 Value Help on Adobe Interactive Form with Web Dynpro ABAP
Hello,
I have created an Interactive Form with ZCI type.
I placed a text field MATNR on the form.
Then I placed a Native WD UI element 'Value Help' as mentioned in the below link: http://help.sap.com/saphelp_nw70/helpdata/EN/42/fb2fe500553ee4e10000000a1553f7/frameset.htm
This form was then embeded into Web Dynpro ABAP view.
The problem is that when I click on the F4 button, nothing happens.
Is anything else needs to be done?
Thanks
SagarHi Amol,
After binding the Context variable in the view, and in the Adobe Layout Designer from the Library go to WebDynpro Native Tab and drag and drop the Value Help and for this automatically JavaScript is being generated, go that script and edit the line
Var fieldname = "yourfieldname";
Note: Don't forget to link the context attribute to search help. ie. in the context properties of the attributes select the input help mode as dictionary search help and specify the name of the search help present in data dictionary.
And now go to Utilities and click on u201CInsert Web Dynpro Scriptu201D.
Also make sure that you specify the Layout as ZCI Layout in the Propertioes of the Adobe Form.
Ragards,
Amol Patil. -
Interactive form With a dynamic table inside that
Hi Experts,
i have an Adobe interactive form With a dynamic table inside that. Add/ Delete button is there inside the form to add and delete rows from the table. This is working fine when iam viewing the form in the preview of adobe designer. when i deploy and run the application, the dynamic table is not working, internally the rable rows are creating, but the rows are not displaying in the form.. iam getting messages(which i set) when the row is created or deleted, but its not updating on the form ..
iam using wdj
please suggest asap.
Regards
SarathHi Sarath,
Seems to be an issue with ACF. Please intall the ACF from the below link:
https://sapmats-de.sap-ag.de/download/download.cgi?id=F9RUZ3Q7TERUBSMHSXWT3UMEM59IJYIPA931VQD32A1UNAKZ6B
And also refer to the SAP note no. 1104060 and do the needful configuration.
Regards,
Arafat
Maybe you are looking for
-
I am running Firefox 9.0.1 in a windows 7 environment. This is a problem that I had with Firefox 8, as well, though it was only when I opened my home page, not any new window. I prefer new window viewing to tabbed viewing and when I click a link to a
-
Blinking Folder Icon with a Question Mark . . .
So, my macbook kept giving me messages that my startup disk was full, so I tried to make sure that my startup disk was in fact my harddrive and not another device like my ipod. when i canged the startup disk it asked to restart and i clicked yes. Aft
-
Wet MacBook Air... running very slow
Recently my 11" MacBook Air (mid 2010) had some wine spilled on it. The screen went black immediately and the power would not turn on. Put it in a giant bag of rice over night which did nothing except get rice stuck in the hinge. A friend took it all
-
Duplicated BP using BBP_SP_SUPP_INI having different BP #
I was finally able to get transaction BBP_SP_SUPP_INI working and was able to duplicate a business partner from SRM to SUS. But the business partner in SUS does not have the same business partner number as the original one in SRM. In SRM I'm seeing t
-
Hi, I have placed a Tablecontrol modifying SAP Standard Screen that fetches required data from DDIC Table. Now i would like to see this table on ITS Page too. how do i accomplish this via BHTML on ITS Page? Thanks, Shankar