Dynamic SubTemplate Selection
Hi,
Is it possible to invoke subtemplate Dynamically.
Ex: Assume my subtemplate looks like
<?template:Header?>
From Sub Template Header
<?end template?>
<?template:Footer?>
From Sub Template Footer
<?end template?>
From Main Template we call this subtemplate as
<?call-template:Header?> --- Here "Header" is the template name
To display foooter we use <?call-template:Footer?>
In this scenario we are hardcoding the Templatenames(Header,footer). Instead i want to send this template name dynamically.
like,
<?call-template:Pick This value dynamically?>
Is it possible to do this?
Thanks in advance.
Hi,
I agree with your statement that we can use If statement. But in this case also we have to hardcode subtemplate name . ( My requirement is I want this value dynamically).
I have one kind of requirement. We have around 200 kind of templates.
assume one template contains company details, one for customer details, one for product details, one for T&C and etc....
Based on the incoming request we have to invoke multiple templates... some times it may be 5 , some time it may be 6, etc..(We are not sure the number of templates and also SEQUENCE in which these templates need to be called).
If i merge all these outputs then only it forms me the final document.
As a normal scenarion if i have to use 5 tempaltes , i have to submit 5 concurrent programs (one for one template) and once all output files are generated i have club them(usin PDF merger) and send the final document.
So i thought of using subtemplate concept. My Main template is a dummy template , which will have simply one "import" statement and one "call-template".
Which sub-template it should call comes via XML file. (i.e. dynamically passing the subtemplate deails).
If we can pass subtemplate name dynamically, we can increase the report performance, also no need to submit multiple programs. And also we don't need to write seperate program(PDF merger) to club all these output documents to generate one final document.
Any inputs / workarounds are highly appreciated..
Similar Messages
-
Dynamic bandwidth selection for PPPoE over Ethernet/VLAN
Hello all, hope you are doing great.
I'm planning to deploy PPPoE Server (Cisco Router 7609) for a ISP. This ISP will provide Internet connection for customer over Ethernet.
I have to provide a solution to assign bandwidth to each customer by RADIUS and I find some clues that Dynamic Bandwidth Selection (DBS) should be the answer. Unfortunately, DBS only support PPPoA or PPPoE over ATM.
If you have any experience with equivalent function, please help me. Thank you very much.
Regards,
Hiep Nguyen.Hiep,
I think I have figured this out. Here is the test config on my PPPoE server:
int lo1
ip address 172.25.25.25 255.255.255.255
ip radius source-interface Loopback1
aaa new-model
radius-server host 172.16.1.55 auth-port 1812 acct-port 1813 key cisco$$$
aaa group server radius RADIUS-ACT
server 172.16.1.55 auth-port 1812 acct-port 1813
aaa authentication login default group RADIUS-ACT local
aaa authorization exec default group RADIUS-ACT local
aaa accounting exec default start-stop group RADIUS-ACT
aaa accounting delay-start
aaa authentication ppp default if-needed group RADIUS-ACT local
aaa authorization network default group RADIUS-ACT local
aaa accounting network default start-stop group RADIUS-ACT
aaa accounting update periodic 5
bba-group pppoe global
virtual-template 1
interface fa0/1
pppoe enable group global
ip address 172.30.0.1 255.255.0.0
no shut
interface Virtual-Template1
mtu 1492
ip unnumbered FastEthernet0/1
peer default ip address pool GLOBALPOOL
ppp authentication chap
ip local pool GLOBALPOOL 172.30.0.2 172.30.127.255
policy-map POLICE-128K
class class-default
police 128000
policy-map POLICE-512K
class class-default
police 512000
Here are the attributes on the radius server, for a group the PPPoE customer belonged to:
Service-Type = Framed
Framed-Protocol = PPP
cisco-avpair="ip:sub-policy-In=POLICE-128K"
cisco-avpair+="ip:sub-policy-Out=POLICE-512K"
Here is the show policy-map on the virtual-access interface the client connected on:
sho policy-map int virtual-a 3
Virtual-Access3
Service-policy input: POLICE-128K
Class-map: class-default (match-any)
1000 packets, 1402000 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
police:
cir 128000 bps, bc 4000 bytes
conformed 799 packets, 1120198 bytes; actions:
transmit
exceeded 201 packets, 281802 bytes; actions:
drop
conformed 0 bps, exceed 0 bps
Service-policy output: POLICE-512K
Class-map: class-default (match-any)
911 packets, 1137746 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
police:
cir 512000 bps, bc 16000 bytes
conformed 799 packets, 1136178 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps
I was able to generate enough traffic with ping to meet the exceed action in and have it drop packets. -
Dynamic Date selection inactive
Hi,
I am not able to give dynamic date selection in a variant. (D: Dynamic date calculation).The traffic light is displayed in red and there is no options such as
current date etc. is there any need to do some settings to get these options.Hi,
have a look at the below link.. ( they have mentioned the steps of customer exit variable fassigning for reporting agent)
https://websmp110.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003598422003E
Regards,
Siva. -
Dynamic parameter selection from infoview not storing the sql password
We are having the problem of dynamic parameter selection from infoview not storing the sql password as it does for the actual report. We are using Crystal Reports XI Release 2 version 11.5.3.438 (Not sure of SP level, asked in separate thread).
To be more specific.
We have created a report that dynamically populates the parameters of the report by pulling the records from the Informix sql database and allowing selection from there.
In the Central Management Console for the report object we have set as follows:
Process - Database:
Use original database logon information from the report - the sql username and pw etc
Use same database logon as when report is run
Process - Parameters
In selecting a default selection there is the option to put in the sql password, however, this does not stick and clears after update.
As such the end result is that every time this report is run from infoview and a user chooses a parameter (there are 5), crystal goes through some timeout for about a minute or so and then requests the sql password, if a user then selects the next parameter, the same timeout and password dialog appears.
We need the crystal report to handle to the sql password for fetching the parameters as well as for the database section of running the report, however, the parameters insists on the end user always putting the password in.
This is 100% replicatable on our system.
Any way that we can fix this?
Will an update fix this issue? If so could you please advise which one?
ThanksHi,
I am having the exact same problem. Any help?
And what does "Use same database logon as when report is run" mean? For me that would be that no prompt is needed for getting values in a dynamic parameter...
Regards
Magnus -
I am building a radio list dynamically in TOOL code based upon certain
criteria. I can get the list built no problem. But, I want to "select" a
certain element based on an attribute I check on the object. So the element
I want to appear selected may be element 2 or element 5 or element x. Has
anyone ever done this? I can't seem to find anything in the Forte help that
will allow me to do this?? Any help would be greatly appreciated.
Thanks!!
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>Dale,
I knew it would be something easy!! I obviously can't read very well!!
Thanks for the help!!
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>
-----Original Message-----
From: Dale V. Georg [SMTP:[email protected]]
Sent: Tuesday, April 27, 1999 2:34 PM
To: [email protected]
Cc: [email protected]
Subject: Re: Dynamic RadioList selection
> [email protected] wrote:
>
> I am building a radio list dynamically in TOOL code based upon
certain
> criteria. I can get the list built no problem. But, I want to
"select" a
> certain element based on an attribute I check on the object. So
the element
> I want to appear selected may be element 2 or element 5 or element
x. Has
> anyone ever done this? I can't seem to find anything in the Forte
help that
> will allow me to do this?? Any help would be greatly appreciated.
> Thanks!!
This should be as simple as setting the IndexValue of the radio list
to
the item that you want to have selected. For example:
self.<theRadioList>.IndexValue = 2;
to select the second item. Make sure your window is already open
when
you do this, though. ie, make sure self.Open() has already been
called. The Open() method initializes a lot of the widget
information
on the window, and it may well set the index value of the radio list
back to 1.
Hope this helps,
Dale
===================================
Dale V. Georg
Senior Systems Analyst
Indus Consultancy Services
[email protected]
===================================
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
How-to Dynamic Hierarchy Selection.
Hi guys,
does anyone know how to implement "Dynamic Hierarchy Selection"? I have a main hierarchy but would like to filter it further while loading the hierarchy.
E.g. I have a financial statement verison with both Balance Sheet and P/L items, i would like to separate the main into two new hierarchies, one BS and P/L hierarchies instead, apparently the infopackage allows you to write small codes to dynamically select which hierarhcy you want.
Cheers.Hi,
We donot have this type selection at the time of upload. The thing we can do is upload both versions into BIW and in the report we can use Hierarchy variable to have dynamic selection of hierarchy.
with rgds,
Anil Kumar Sharma .P -
BMBC Dynamic Date selection Variant
Hello Team,
I want to create variant in BMBC -Batch Information Cockpit with Dynamic Date Selection. But it do not find the screen the to set-up variant attributes
This is the field where I want to have dynamic date selection, 1st Day of the month to Last day of the month.
Field name and program
I am using SE80
As you can see screen number 0100 is not showing up. and I have gone though all available screen but i could not find the field.
Please advise if dynamic date selection for this field is possible at all or there is other way.
ThanksI don't think that it is possible to have dynamic date selection here. The whole selection screen is just dynamic, it has only place holders and you define in customizing which field is on the selection screen.
You actually save a selection variant via this extra big button for selection variants, which is quite different to the disc icon where you usually save your selection variants and where you have the option to define dynamic date fields. -
Sample routine for dynamic flatfile selection in infopackage?
hello guys,
I tried to find one sample routine for Dynamic Flatfile selection at Infopackage level in forums,internet...but couldnot find it....(something like....we give one flatfile everyday...process chain runs everday...and whenever Infopackage executes...it selects that days flatfile basing on date or something and loads the data)....
can anyone give that sample routine ?
Thanks,
Rgards,
SHi,
You can select the dynamic flat file using routine at info package.
The routine here is to create dynamic file name, click the routine button beside the name of flat file.
create name and write the related code.
Eg: concatenate 'D:\BIFLATFILES\PRODUCTDATA_' SY-DATUM '.CSV' INTO P_FILENAME.
In this path you have to paste your file with name PRODUCTDATA_09.10.2009.CSV.
So if it is daily load we need change the file name with that date.Infopackage automatically picks up this file and loads the data.
Based on your requirement you need to change the code to select file with path.
Thanks,
Joseph -
Dynamic BULK SELECT/MODIFY
Hi,
When using EXECUTE IMMEDIATE with a dynamically
built SELECT/INSERT statement with varying
tablename, fieldnames, fieldtypes and fieldcounts
how do I make the BULK COLLECT INTO/USING parts
dynamic too?
Can I use RECTYPE arrays if the type depends on
the dynamic statement? Kind of like (pseudo-code)
procedure FETCH(p_Stmt VARCHAR2)
valueType TABLE OF p_Stmt%REC_TYPE INDEXED BY
BINARY_INTEGER;
values valueType;
LOOP
EXECUTE IMMEDIATE p_Stmt
BULK COLLECT INTO values LIMIT 1000;
FOR values LOOP
-- use values.a and values.b
END LOOP
END LOOP;
FETCH('SELECT a,b FROM t');
If I'm forced to use DBMS_SQL and bind OUT/IN arrays
of different types do I need to pre-allocate arrays
of each type against the chance that up to (say)
a 100 DATE columns end up in need of beeing bound?
Or can I reuse one array per type because the methods
copy the arrays? Or is there a generic type that can
be used to bind whatever type the column has?
regards,
SchenkeHi Justin,
So I gathered (my question mentioned this option).
I only had gotten the impression from some comments
that DBMS_SQL may be slower than EXECUTE IMMEDIATE
because of the extra layer of flexibility. Maybe
there will be more parsing too.
There seems to be no way to define the arrays needed
for the DBMS_SQL-IN/OUT-binds dynamically. I don't
think reusing the same array for different columns
will work either. That means arrays must be defined
against all possible columns or at least enough of
each type with a dynamic allocation process (i.e.
count the number of columns for each type and assign
arrays with names like date1, date2, date3, ... to
the 1., 2., 3... DATE column in the statement.)
regards,
Schenke -
Dynamic row selection based on Page member selection in Planning web-form
Hello experts
I have requirement where, user dont want 10 webforms to enter 2 accounts line for various sparse members. Below is the dimension detail and web-form current design
Account - Dense
Period - Dense
Year - Sparse
Scenario - Sparse
Version - Sparse
Entity - Sparse
Product - Sparse (600 level 0 members)
Product dim has family1 as parent and 40 level 0 mem like that there are 10 family level 1 members, now to enter account member (only 2 member) for 6 years projection ( it means 12 periods and 6 years in column ) , i can build 10 web-forms with one web-form has one family level-0 mem in rows,
however my question, is how can i achieve this in one web-form, instead of 10 web-forms for 400 products ?
your help is greatly appreciated.
Edited by: 859874 on Jul 18, 2012 8:58 PMIm not sure there is any simple way to get dynamic row selection based on what is selected in the page.
If I were designing the form based on what you have stated, I would probably stick both Account and Year in the page, and the 400 products in rows. This would require the user to select the different combinations of Year / Account, but would mean only 12 columns (instead of 72).
Alternatively you could stick Account in rows too - meaning 800 rows, but less combinations to select in Page....all depends what is deemed acceptable to the user.
Probably other approaches that may be better than above (put Product in the Page for fun!!)
Thanks
JB -
Linksys WRT-1900AC and Dynamic Frequency Selection(DFS)
Hello All
Does anybody know if the Linksys Router WRT-1900AC will support Dynamic Frequency Selection(DFS) by a newer Firmwareupdate?
I don't understand why this feature has not been added yet
Second why does i have to set the 5GHZ WLAN to mixed to use AC. for me it is better when there is a Mode AC only.
thanks for your helphttp://en.wikipedia.org/wiki/Channel_allocation_schemes
Your best bet would be to phone contact your regional Linksys support office and ask them about this. Ask them if this model doesn't support it, which one does, if any. Let us know how it goes please. -
Program to regenerate user variants for dynamic date selection!
Hello all:
We upgraded to ECC6.0 from 4.6C and there are some variants that user created in 4.6C in which they set dates like date = date - 1day something like that (basically dynamic date selection). These variants are not working in ECC6.0 unless the user clicks on the variant button and resaves it!! Does anyone know if there is any SAP program that I can run that does this automatically? Rewards assured.
Thanks.
MithunThanks for the reply Rob. We already ran RSVARDOC_610! Is there any specific program just for the issue I am having?
Thanks.
Mithun -
Policy-based Tunnel Selection and PBTS with Dynamic Tunnel Selection option
Unfortunately I can't test this feature on GSR 12k platform.
RP/0/0/CPU0:ios(config)#show config failed
!! SEMANTIC ERRORS: This configuration was rejected by
!! the system due to semantic errors. The individual
!! errors with each failed configuration command can be
!! found below.
interface tunnel-te1
policy-class 1
!!% The requested operation is not supported: Feature not supported on this platform
end
What is the difference between Dynamic Tunnel Selection and ordinary PBTS? It would be nice to see some real-world example.PBTS with DTS is supported only on the Cisco XR 12000 Series Router... you should rather test it on 12K platform.
-
Hi All,
Suppose I have table, whose structure changes frequently on daily basis.
For eg. desc my_table gives you following column name on Day 1
SQL > desc my_table;
Output
Name
Age
Phone
On Day 2, two more columns are added, viz, Address and Salary.
SQL > desc my_table;
Output
Name
Age
Phone
Address
Salary
Now I want to create an Dynnamic RTF report which would fetch data from ALL columns from my_table on daily basis. For that I have defined a concurrent program with XML as output type and have attached a data template/data definition to it which takes in XML as input and gives final output of conc program in EXCEL layout. I am able to do this for constant number of columns, but dont know how to do it when the number of columns to be displayed changes dynamically.
For Day 1 my XML file should be like this.
<?xml version="1.0" encoding="UTF-8"?>
<dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
<dataQuery>
<sqlStatement name="Q2">
<![CDATA[
SELECT Name
,Age
,Phone
FROM my_table
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_my_table" source="Q2">
<element name="Name" value="Name" />
<element name="Age" value="Age" />
<element name="Phone" value="Phone" />
</group>
</dataStructure>
</dataTemplate>
And my Day 1, EXCEL output from RTF template should be like this.
Name Age Phone
Swapnill 23 12345
For Day 2 my XML file should be like this. With 2 new columns selected in SELECT clause.
<?xml version="1.0" encoding="UTF-8"?>
<dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
<dataQuery>
<sqlStatement name="Q2">
<![CDATA[
SELECT Name
,Age
,Phone
,Address
,Salary
FROM my_table
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_my_table" source="Q2">
<element name="Name" value="Name" />
<element name="Age" value="Age" />
<element name="Phone" value="Phone" />
<element name="Address" value="Address" />
<element name="Salary" value="Salary" />
</group>
</dataStructure>
</dataTemplate>
And my Day 2, EXCEL output from RTF template should be like this.
Name Age Phone Address Salary
Swapnill 23 12345 Madrid 100000
Now, I dont know below things.
Make the XML dynamic as in on Day 1 there must be 3 columns in the SELECT statement and on Day 2, 5 columns. I want to create one dynamic XML which should not be required to be changed if new columns are added in my_table. I dont know how to create this query and also create their corresponding elements below.
Make the RTF template dyanamic as in Day1 there must 3 columns in EXCEL output and on Day 2, 5 columns. I want to create a Dynamic RTF template which would show all the columns selected in Dynamic XML.I dont know how the RTF will create new XML tags and how it will know where to place it in the report. Means, I can create RTF template on Day 1, by loading XML data for 3 columns and placing 3 XML tags in template. But how will it create and place tags for new columns on Day 2?
Hope, you got my requirement, its a challenging one. Please let me know how I can implement the required solution using RTF dynamically without any manual intervention.
Regards,
Swapnil K.
Message was edited by: SwapnilKHi All,
I am able to fulfil above requirement. Now I am stuck at below point. Need your help!
Is there any way to UPDATE the XML file attached to a Data Definition (XML Publisher > Data Definition) using a standard package or procedure call or may be an API from backend? I am creating an XML dynamically and I want to attach it to its Data Definition programmatically using SQL.
Please let me know if there is any oracle functionality to do this.
If not, please let me know the standard directories on application/database server where the XML files attached to Data Definitions are stored.
For eg, /$APPL_TOP/ar/1.0/sql or something.
Regards,
Swapnil K. -
Dynamically Aggregations Selection during runtime in OBIEE 11g
Can anyone help me how to choose aggregations dynamically in OBIEE 11g while runtime.
Say i have SUM and AVG as two aggregations, and depending on any one of selection my column total should vary.
I acheived this using Variable prompt, but i want it as a drop down and just by toggling between the two my report should change with out using go / apply button.
I tried and came to conclusion that these are static text and doesn't have any database value it can't be showed as dropdown.
Thanks,
Swathishud be simple...Simply Create 2 Pivot Views for same Criteria in Single report and perform SUM and AVG for each. Now use View Selector to toggle between two Pivot to get SUM and AVG reports.
Maybe you are looking for
-
Installing Photoshop 6 via Creative Cloud on OS X 10.8 - Exit 7 / Payload?
I have attempted several methods found in the forums, and have managed to whittle my extremely long original error list down to this: Exit Code: 7 Please see specific errors and warnings below for troubleshooting. For example, WARNING: DW017, DW020
-
Mapping issues with soap sender adapter
Scenario SOAP->XI-> file. I have configured a sender soap adapter. When the soap message is sent to XI from third party system using the 'DOC' , SXMB_MONI shows the following format <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap
-
32-bit emulation in ArchLinux?
According to the "Vordiplom, 64 Bits and Beryl" section at http://lhyanor.org/ Arch64 doesn't support 32-bit emulation. I believe, however, this may be old news. If this is the case, where is 32-bit emulation in Arch? As an example, I just recently i
-
Desc in SQL Developer behaves slightly differently than desc in SQLPlus
Hi All, Didn't see any posts for this, so I wanted to bring it up here. We use nls_length_semantics=char, and therefore our varchar2 cols routinely show up in products with the datalength as charlengthx4 or the actual bytelength for the col. However
-
Can I widen an iWeb template?
Is it possible to widen a template? iWeb seems to assume a 12" screen. I would like my entire page to fit on a screen and it would if I could widen the text box a few inches. Is there any way to do this? Also, this site has great discussions, but I f