Dynamic fxml "source" in fx:include
Is it possible to have a dynamic source in the <fx:include> ? Setting a controller for this source can be achieved by using controller factories.
<VBox prefHeight="412.0" prefWidth="352.0" xmlns:fx="http://javafx.com/fxml" fx:controller="fxminclude.ParentController">
<children>
<HBox alignment="CENTER" prefHeight="47.0" prefWidth="352.0">
<children>
<Label text="Value" />
<TextField fx:id="valueField" prefWidth="200.0" />
</children>
</HBox>
<Pane prefHeight="312.0" prefWidth="352.0">
<children>
<fx:include fx:id="title" source="<SOME_PLACEHOLDER_FILE>" layoutX="42.0" />
</children>
</Pane>
</children>
</VBox>
You may be able to provide the value in the resource bundle for your fxml file. See [url http://docs.oracle.com/javafx/2/api/javafx/fxml/doc-files/introduction_to_fxml.html#resource_resolution]Resource Resolution in the FXML reference.
Similar Messages
-
Can we change source of fx:include tag from controller class?
Is it possible to change source of <fx:include> tag from controller class? The requirement is to dynamically change certain section of a page.
Thanks Daniel.
Is it possible to load <fx:include> into Anchor Tag from controller class?
Edited by: Ravi_Teja on Jun 15, 2012 3:45 AM -
Can we set the dynamic data source when using getReportParameters() ?
Hello!
I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
Regards,
Stephaniereport_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
This should load the saved report identified by report_id and you can get rid of javascript
Regards,
Vishal
http://obiee-oracledb.blogspot.com
http://www.packtpub.com/oracle-apex-4-2-reporting/book
Kindly mark the reply as helpful/correct if it solves your problem -
Dynamic data source in Excel Pivot Table
Hello there,
I am trying to have dynamic data source in pivot table using INDIRECT but getting the error "Reference not valid". Here is how I setup the reference:
Named range: ConsolLink = "'R:\Root\Sub1\Sub2\Consol File.xlsm'!Source_OpexConsol"
"Source_OpexConsol" is defined in the source file as a dynamic name using offset formula.
In the pivot data source, I have tried "=INDIRECT(ConsolLink)" as the data source but that does not work.
I have also tried using INDIRECT in ConsolLink and just referencing "ConsolLink" as the data source. That does not work either.
I am not using Power Pivot. Appreciate it if someone can help.
Thanks.If it is open, then try
Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
And if it is not currently open, then try
Dim W As Workbook
Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
File.xlsm")
Named range: ConsolLink =
Range("Consol File.xlsm'!Source_OpexConsol")
W.Close False -
Using an Excel file as a dynamic data source? Opinions needed...
I have posted this topic before, but as always; in order to get the relevant correct answer you have to ask the correct question.
I'm trying to create a number of Pricelists linked to an Excel/CSV file. I have a Excel file that contains Pricelist information which is Product specific.
I have had a number of suggestion that follow:
A direct link to the Excel file. PROs: Excel file can be uploaded on FTP and overwritten if (and when) amended. Linking this is easy peasy in Dreamweaver. Person browsing can download info straight away on request - no hassle. CONs: Simply, not everyone has Excel and those who don't can not access the information.
Import Excel file as tabular data. PROs: Fairly easy to do in Dreamweaver. Person browsing can see info straight away. CONs: Can be time consuming on larger Excel files. NOT amendable (so a number of price changes becomes a big job). Can't simply overwrite Excel file on FTP. Larger Excel files can take a lot of page space and thus require tonnes of scrolling).
Use the Excel file as a dynamic data source. --Not entirely sure how I would go about doing this (any suggestions/links/tutorials etc)-- PROs: ? CONs: Contributor added this suggestion is not a good idea as it performs poorly on the web.
Create a dynamic page using a database and import the Excel file to that....or maintain the price list in the database rather than an Excel file. --Again not entirely sure how I would go about doing this (any suggestions/links/tutorials etc)-- My understanding of this option is that it will require XML data and SPRY work. Is this correct? Can this be someone who is not an advanced user?
If once again, I'm off the mark and better suggestions can be thought - please do so.
As you can see I'm at a bit of a crossroads so an suggestions, comment, help, links, tutorials or applause would be greatly received.
Thanks in advance and looking forward to seeing the comments this throws up!Hi
Although not everyone has excel just about everyone can open csv files in some way, if not offer the option to download "open office" which is free for the pc, as for the mac they have a program installed by default to use csv files.
The import tabular data is not really an option for the reasons stated.
Use excel as data source - not a good idea, requires asp.net to work correctly otherwise it does run slow and is not recommended if you are expecting more than a very small number of users.
As for the dynamic with database, this can be done with xml and spry but if you have a large amount of data this is almost as bad as the option above. You are probably better creating a database and importing your excel spreadsheet into this, for tutorials on creating a php/mysql database and set-up of testing server see - http://www.adobe.com/devnet/dreamweaver/application_development.html.
No matter which way you go with the last option it will require a fair amount of knowledge and experience to do correctly, efficiently and securely.
PZ
www.pziecina.com -
Dynamic XSLT source code generation based upon internal table
Hi,
Is there anyway to generate dynamic XSLT source code based upon final structure of output internal table and call dynamic generated XSLT in program?
CALL TRANSFORMATION z_transformation
PARAMETERS
p_shared_string = lo_shared_str_nodeset
SOURCE XML g_sheet_data
RESULT lt_data = i_data[].
Source code example of XSLT transformation -
<xsl:template match="/">
<asx:abap version="1.0">
<asx:values>
<LT_DATA> "Internal table
<xsl:for-each select="ss:worksheet/ss:sheetData/ss:row">
<xsl:if test="position() > 1">
<item>
<FIELD1>
<xsl:variable name="cell_id" select="concat('A', position())"/>
<xsl:variable name="v_index" select="ss:c[@r=$cell_id][@t='s']/ss:v"/>
<xsl:if test="$v_index">
<xsl:value-of select="$V_SHARED_STRING/sst/si[$v_index + 1]/t"/>
</xsl:if>
<xsl:if test="not($v_index)">
<xsl:value-of select="ss:c[@r=$cell_id]/ss:v"/>
</xsl:if>
</FIELD1>
</item>
</xsl:if>
</xsl:for-each>
</LT_DATA> "internal table
</asx:values>
</asx:abap>
</xsl:template>
</xsl:transform>In addition,
We are converting binary data of excel from application server into internal table but currently we created two XSLT transformation to achieve this one for deleting name space and other for converting data into internal table format.
We want to make our source code for future use also,Is there anyway to generate XSLT source code dynamically?Above mentioned code is snippet of data extracting which we are doing but this transformation is hard coded.
Any help is appreciated.
BR,
Praveen -
Hi
I have a DLL function acting as a dynamic data source within a LabVIEW application (see attachment) - I am using DSNewHandle to dynamically allocate 2D array handle storage via the LV memory manager for the arbitrary size data arrays to be passed into the application. I had assumed that these memory blocks would (magically) be disposed when appropriate by the LabVIEW built in processing blocks that sit downstream, however this is not the case and the LabVIEW system memory usage keeps increasing until LabVIEW environment is exited (not simply if just the offending application is stopped or closed).
So my question is how and where to mop up the used up array buffers in the application processing chain and how do I know when the buffers are actually exhausted and not being reused downstream (for instance the two 2D arrays are first combined into a complex 2D array by the re+im to complex labview operator - is the data memory out of this stage totally different from the inputs or is it some modified version of the input arrays - if totally different and the input 2D arrays are not wired into any other blocks why does the operator not dispose the input data stores?)
Perhaps Im going about this the wrong way having the DLL data source dynamically allocate the data space arrays? Any advice would be gratefully received
Regards
Steve
Solved!
Go to Solution.
Attachments:
DataGetFloat.PNG 23 KBThen instead of doing:
DLLEXPORT int32_t DataGetFloatDll(... , Array2DFloat ***p_samples_2d_i, ...)
if ( p_samples_2d_i )
// *p_samples_2d_i can be non NULL, because of performance optimization where LabVIEW will pass in the same handle
// that you returned in a previous call from this function, unless some other LabVIEW diagram took ownership of the handle.
// Your C code can't really take ownership of the handle, it owns the handle for the duration of the function call and either
// has to pass it back or deallocate it (and if you deallocate it you better NULL out the handle before returning from the
// function or return a different newly allocated handle. A NULL handle for an array is valid and treated as empty array.
*p_samples_2d_i = (Array2DFloat **) DSNewHandle( ( sizeof(int32_t) * 2 ) + ( sizeof(float) * channel_count * sample_count ) );
// Generally you should first try to insert the data into the array before adjusting the size
// the most safe would be to adjust the size after filling in the data if the array gets bigger in respect to the passed in array
// and do the opposite if the adjusted handle happened to get smaller. This is only really important though if your C code can
// bail out of the code path because of error conditions between adjusting the handle size and adjusting the array sizes.
// You should definitely avoid to return from this function with the array dimensions indicating a bigger size than what the
// handle really is allocated for, which can happen if the array was resized to a smaller size and you then return because of errors
// before adjusting the dimension sizes in the array.
(**p_samples_2d_i)->Rows = channel_count;
(**p_samples_2d_i)->Columns = sample_count;
you should be doing:
DLLEXPORT int32_t DataGetFloatDll(... , Array2DFloat ***p_samples_2d_i, ...)
MgErr err = NumericArrayResize(fS /* array of singles */, 2 /* number of dims */, (UHandle*)p_samples_2d_i, channel_count * sample_count);
if (!err)
// Fill in the data somehow
// Adjust the dimension sizes
(**p_samples_2d_i)->Rows = channel_count;
(**p_samples_2d_i)->Columns = sample_count;
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Change a region source url to include P2_TRACTNO
Hi all,
I have an html region in which I am referencing a map. My region source is as follows:
<iframe id="mframe" src="http://nwo26.nwo.usace.army.mil:7778/gis/g6imxgsc.navmaponly.map?p_unique_id=J-920&map=garr&p_layers=garr_tracts&p_layer=garr_tracts
" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:600; display:block; height:500;"></iframe>
J-920 is a tract number.
I am wanting to dynamically insert my P2_TRACTNO item in place of the J-920 of the p_unique_id=J-920 part of the URL listed above.
How can I modify the code to change
p_unique_id= my P2_TRACTNO item?
Thanks,
KirkHi,
You can include:
&P2_TRACTNO.wherever you want the value to appear on the page. So:
src="http://nwo26.nwo.usace.army.mil:7778/gis/g6imxgsc.navmaponly.map?p_unique_id=&P2_TRACTNO.&map=garr.......etc
{code}
Andy -
Dynamically choosing source datastore column from variable
Hi Everybody.
I have a source table which contains 12 columns - one for each month of data. I want to load the columns as rows in the target table. For example:
Source Table:
ACCNO M01 M02 M03 M04 M05 M06 M07 M08 M09 M10 M11 M12
00001 1 2 3 4 5 6 7 8 9 10 11 12
00002 13 14 15 16 17 18 19 20 21 22 23 24
Target Table:
ACCNO Month Value
00001 JAN 1
00002 FEB 2
I am thinking of constructing a package that will loop 12 times - in each iteration it will change the interface mapping column to the desired one.
Seeking your wise suggestions and solutions.Hi,
Hi,
From the example its not clear what you are looking for ....(can you please give some more data in your output example)
I guess the below is one of the sample which you are trying for ...
INPUT:-
accno|m01|m02|m03
100|1|2|3
200|10|20|30
OUTPUT :-
accno|mon|Value
100|JAN|1
100|FEB|2
100|MAR|3
200|JAN|10
200|FEB|20
200|MAR|30
If yes :-
Create a table/View
create table test (Mon varchar(20) )
insert into test values('JAN')
insert into test values('FEB')
insert into test values('MAR') ...
In interface level - In source tab join the main table and test table (inner join)
Mapping (taregt):-
ACCNO = ACCNO
Month = MON (from test table)
Value =
case when Mon = 'JAN' then M01
when Mon = 'FEB' then M02
when Mon = 'MAR' then M03 END (include all the mon .....)
Regards,
Rathish -
MPN Material - Source list not included issue
Hi,
I am trying to create a purchase order for a material which has a MPN material # specified in the source list. When I create the purchase order, I get the error "Source not included in list despite source list requirement".
I do not get the error when I remove the MPN material # from the source list.
I looked at MM03 for MPN material # and it looked correct.
Please help.
NickyHi
There are 2 settings for source list requirment mandatory at PO.
1) Material Master record > Purchasing view
2) IMG>MM>Purchasing>Source list>Define at plant level
if the setting is active then you have maintain the source list for that particular material.
if the above setting are not there and still you are getting error then you have to check if any enhancements done .
Hope it helps
Karthik
Edited by: Karthik on Jun 28, 2011 9:56 AM -
POJO Data Source where POJO includes reference to another POJO
<p>All of the samples and webinars I have seen that deal with using a POJO as a data source, use a POJO that includes int, String, or Date fields. Suppose you have an OrderItem class, which contains a product (class Product) and numOrdered (type int). The Product class has a description and so forth. Is it possible to use both POJOs in the report? For example, can you link the two classes together? In the demos I've seen, one POJO is dragged to the report, then a productId is linked to a column in a database table. We want to design reports that are database-independent, so we would like to use POJOs. Also, can you use POJOs in reports outside of Crystal Reports for Eclipse?</p>
Hi,
I am new to Crystal.
I have similar requirements as the original post. POJO in Crystal is useful only when you can transparently deal with your existing POJO model and navigate all the relationships you need for the report. If I have to "flatten" complex object graph of my complex POJO model, then what benefit am I getting here?
We already have mechanism in our webapp to populate our POJOs with data from our Database using JPA/JDO queries. Basically, we dont want to hardcode any SQL or direct knowledge of database.
ReportMill (another report engine) lets you navigate all relationships in your OO model as you would in any Java class. Without such support, for each report, I have to "somehow" flatten complex model into essentially a "Row" object to satisfy Crystal? Is that what I am hearing?
Someone please help with what is possible or what is not.
Thanks
-Chris -
Dynamic Data Source with Flash file
I have a MySQL database which I am using to create a dynamic
table for a shopping website. One of the fields of the database is
for a video of each product. In the videos directory is a bunch of
flash movies (.swf).
In Dreamweaver I have a dynamic table that is using the data
from my MySQL database. When I preview the site all the dynamic
data works fine and appears correctly. However the video does not
work when I preview the site. The steps I made to create the dyamic
video link in dreamweaver are as follows:
Insert>Media>Flash
Select File Name From: Data Sources
Field: Recordset>Video
I've checked the information in my MySQL database and the
data there seems to be correct. If I remove the dyamic video
information and manually place the necessary flash video and
preview the site it works fine.
So why won't my flash videos work dynamically?If it is open, then try
Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
And if it is not currently open, then try
Dim W As Workbook
Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
File.xlsm")
Named range: ConsolLink =
Range("Consol File.xlsm'!Source_OpexConsol")
W.Close False -
Dynamic XML Source to a Fixed Target Table
Hi gurus,
Please help me on this one, I've been trying to work it around for 2 weeks now, and unfortunately, I can't think of any solutions anymore.
So here is the case:
I'm using ODI 11g and I'm loading XML files to Oracle Tables.
But in this case I have a dynamic XML file (number of columns varies, depends on the user input) as the source and I have to load it into a fixed Target Table.
Example:
XML SOURCE FILE (dynamic number of columns):
Column_A1 | Column_B1 | Column_C1 | Column_A2 | Column_B2 | Column_C3 | Column_A3 | Column_B3 | Column_C3 | | **
**means I don't have idea how many columns in one XML would be. It can be 6 columns, 9 columns, 3 columns. I do reverse engineer to get the latest XML structure.*
FIXED TARGET OUTPUT TABLE (3 columns only):
Column_A1 | Column_B1 | Column_C1
Column_A2 | Column_B2 | Column_C2
Column_A3 | Column_B3 | Column_C3
** | * | **
--END OF EXAMPLE*
So what I want to happen is that, everytime ODI detects that it is already the 4th column, 4th - 6th columns would append to the next row and 7th-9th would append to the next row, and goes on and goes on.
What do you think is the best way to do this? Or if there is any way?
Please please help me, it would be of great great help to the project I'm working.
If there's no way, I'm thinking of creating a PL/SQL within a KM for this one.
Thank you gurus'!
Regards,
-Vince
Edited by: Vindi on Aug 22, 2012 2:45 AM
Edited by: Vindi on Aug 23, 2012 6:57 PMWhat is the minimum number of columns from source side..if the minimum number of column will be 3 then my logic may work.
Please confirm.
Because in case of odi reverse, odi will add the extra column to the datastore. If initially the souurce file has 3 columns then the target datastore will 3. In next reverse if the source file has 5 column then in the next reverse it will add 2 more column to the datastore. Again nexttime if the source file has 2 column ODI is not going remove/drop these 3 extra column. -
Dynamic data source on 10g requires valid data source associated in report
I'm currently using the dynamic JDBC data source feature of PublicReportService_v11 in BI Publisher 10.1.3.4.1 (March 2011 patch applied) and it seems that the BIP report still requires a valid JDBC data source associated with it before the specified dynamic one can be properly used.
Using SoapUI, I tried sending a runReport request with a dynamic JDBC data source for a BIP report that is associated to an invalid/dummy JDBC data source and got the following fault string:
oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to java.sql.SQLException: ORA-01017: invalid username/password; logon deniedAssociating the BIP report to a valid JDBC data source but different from the specified one on the runReport request does make this feature work - data in the BIP report does come from the specified dynamic JDBC data source. I'm just wondering if this is the right behavior for this feature? It seems a little counter intuitive because you already specified a JDBC data source in the request message which I'm assuming will be used by the report you're requesting instead of whatever is the currently associated data source on the report.If it is open, then try
Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
And if it is not currently open, then try
Dim W As Workbook
Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
File.xlsm")
Named range: ConsolLink =
Range("Consol File.xlsm'!Source_OpexConsol")
W.Close False -
Using CASE WHEN THEN in dynamic Region Source area
Hi all,
I've been knocking my head around on this one for a while. Hope someone can show me some guidance. So far, the SQL Query in the Region Source works ok except after the THEN ''||'LINK'||'' . All text between the single quotes displays, and not just the hyperlink LINK. (My goal is to this simple test working, then go back an substitute in APP_ID, Page#, SESSION variables.) But I'm stuck with this problem. Searched the forum but this is as far as I got. Below is the code I'm using in the Region Source area. Perhaps a region attribute setting is needed but I'm unsure. Thanks for any assistance. -Mike
select DISTINCT
AWARD,
CASE
WHEN WINNER_NAME = 'India Retail Support Team'
THEN '<A HREF="http://www.hotmail.com">'||'LINK'||'</A>' *----------------HREF link (LINK) is working fine here but doesn't work ok in Region Source.
ELSE WINNER_NAME
END WN,
GBU_WINNER,
DORDER
from GBUSERVICEPACESETTERAWARDS
where FY = '2012'
and TYPE = 'Service Award'>
As previously requested, please update your forum profile with a real handle instead of "user10734329".
I've been knocking my head around on this one for a while. Hope someone can show me some guidance. So far, the SQL Query in the Region Source works ok except after the THEN ''||'LINK'||'' . All text between the single quotes displays, and not just the hyperlink LINK.Not clear from this what the problem is. It appears to me that LINK is all of the "text between the single quotes". What do you mean by "all text"? (An example on apex.oracle.com is a good way to resolve such ambiguities...)
The usual cause of unexpected results when the separation of concerns is breached and HTML is directly generated in report queries is having the Display Text As report column attribute wrongly set. Ensure it is Standard Report Column rather than the default Display as Text (escape special characters).
Maybe you are looking for
-
I am afraid I am going to wipe out my apps on my Ipod Touch.
I have had my Ipod Touch 3rd Gen 64 gig for about a month now and its about the most amazing thing i have ever used, however there is one annoying thing I would love to have fixed. When i connect the touch to my pc to charge it, itunes automatically
-
Accesso to Apache Local Web Server Problem
Hi, i have a problem related to the set up of Apache Local Web Server on Mac OS X Lion 10.7.5. I have correctly installed Apache (2.2.24) php (5.3.26) and MySql (5.5.22) but during the web access i get this message: 403 Forbidden and in the error_log
-
I created a survey using pdf forms that I am testing out. There is a submit button at the end of the survey that is linked to my email address. Once someone hits save, a window pops up giving the option to submit by outlook or through an internet ema
-
Quality Intergrtion with other Modules
Dear Gurus, I have activated quality inspection for all the incoming raw material. GRN is carried out in two step i.e.103+105. At 105 inspections lot are generated. 1. When the Material is accepted what is effect on the MM+FI Module? 2. When
-
Not seeing credit card screen on Order screen in E-Commerce B2B webshop
Hi Gurus, I am new to SAP E-Commerce 5.0 B2B application. I am trying to see the credit card payment screen while ordering in Order page. We are not using CRM system, but we are using ECC6.0 SD module. Could you please guide me how to activat