Dynamic Source Multicast Script
Hello and thanks in advance for any advice.
I am developing a presentation broadcasting application with annotation/inking functionality. The important thing is that the inking is live.
My question is whether there is a simple way to have FMS receive many incoming streams from every client connected to the FMS application, but then dynamically change the publishing multicast stream source to the client that is currently drawing on the screen. I am thinking that it might be possible to modify the already existing multicast application, but it seems very complex so a simpler solution would be great.
If you have another approach to broadcasting live drawings to 100+ clients, this would be great too.
Hi,
All you can do is to put any condition while calling that window with that element.
To ways to achive this.
1. In your print program put any condition while calling WRITE_FORM.. Like below:
if condition 1 = 'True'.
call function 'WRITE_FORM'
exporting
element = 'TEXT'
window = 'DYNAMIC_TEXT'
exceptions
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
others = 7.
endif.
2. Or Just in the script editor in that window , put any if condition to print that text. It means it will print your text only when any condition is setisfied.
/: IF &CONDIITION& = 'TRUE'
PF &ZZ_TEXT_TO_BE_DISPLAY&
/: ENDIF
Reg,
Lokesh.
Similar Messages
-
Quicktime with "dynamic" source
This is driving me nuts.
I'm building an HTML application for my iPad, but I can't make it play .wav files which are returned from either a Java servlet or an ASP handler (I'm sure I'm setting the "content-type" correctly - "audio/wav" or "audio/x-wav")
If you set the data source for the object to a static file it works fine e.g. "/foo/bar/baz.wav", but if you set it to a dynamic source e.g. "/foo/bar/GetWav?audioFileId=123" the component just goes into an error state and doesn't play anything.
Does anyone know if this is a formal restriction of the Quicktime tag? Any workarounds?Hi,
Here's a little sample I put together:
[code]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init();">
<mx:DataGrid x="10" y="10" width="233" id="myDG"
change="myDGChangeHandler(event)" dataProvider="{dp}">
<mx:columns>
<mx:DataGridColumn headerText="Character"
dataField="name"/>
</mx:columns>
</mx:DataGrid>
<mx:Image scaleContent="false" showBusyCursor="true"
x="10" y="200" width="200" height="300" id="myImg"
source="{imgSrc}"/>
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dp:ArrayCollection;
[Bindable]
private var imgSrc:String;
private function init():void {
var myAry:Array = [
{name:"Homestar Runner", data:"
http://sandbox.mc.edu/~ewilliam/internet_www/Homestar_Runner_logo.jpg"},
{name:"Strong Bad", data:"
http://www.contagiousgraphics.com/Stickers/stickerSamples/HRStrongBadClearStix.jpg"},
{name:"Stinkoman", data:"
http://www.hrwiki.org/images/thumb/8/84/stinkoman.PNG/220px-stinkoman.PNG"}
dp = new ArrayCollection(myAry);
private function myDGChangeHandler(evt:Object):void {
imgSrc = evt.target.selectedItem.data;
]]>
</mx:Script>
</mx:Application>
[/code]
Good luck -
Want to use dynamic sources for the rss feeds instead of hard
coding the URLs into the script. How can I use PHP within the
javascript. The below doesn't work.
RSS Replay is the dreamweaver extension
<script language="JavaScript1.2"
type="text/javascript">
<!-- hide script from non-js browsers
//RSS Replay v 1.5 by RNSoft
//MethodName:AJAX-Proxy-PHP
//SettingName:
rssReplayFeed("rss",
10,
"<div><span <<headlineclass>>><a
href=\"<<link>> \"\" target=\"_blank\"
onMouseOver=\"flvXAS1(0)\"
onMouseOut=\"flvXAS1(1,1,50,1)\"><<headline>></a>"+"\n"+
"</span>",
"<br><span
<<storyclass>>><<strip_story>></span></div><br>"+"\n"+
""+"\n"+
rrpBuildSourceList("<?php echo
$row_rsNewsFeed['source1']; ?>",
"<?php echo $row_rsNewsFeed['source2']; ?>",
"<?php echo $row_rsNewsFeed['source3']; ?>",
"<?php echo $row_rsNewsFeed['source4']; ?>",
"<?php echo $row_rsNewsFeed['source5']; ?>"),
true,
-1,
true,
"d-date")
// end hide of script -->
</script>.oO(jsteinmann)
>hmmmmm......
>
>can you give me an example?
Like you can use PHP to output HTML, you can also use it to
generate JS.
There's not much of a difference. If the script is embedded
in the HTML
with a 'script' element like in your case, it's particularly
easy. Here
is a short example:
http://www.alt-php-faq.org/local/33/
Of course the entire page has to be passed through PHP,
usually by
simply giving it a .php extension. Whether the embedded PHP
outputs
some HTML or JS doesn't really matter from the browser's
point of view.
Here's a more advanced example of using PHP in an external JS
file:
http://javascriptkit.com/javatutors/externalphp.shtml
The key point in both is that PHP is used to write JS
statements, which
are then interpreted by the browser.
For more informations and examples try a Google search for
keywords like
"generate javascript with php"
Micha -
Hi,
I want to display some text in a script window dynamically.
Is it possible to have a dynamic window in script.
Please help in this regard.
Thanks & Regards,
RajeshHi,
All you can do is to put any condition while calling that window with that element.
To ways to achive this.
1. In your print program put any condition while calling WRITE_FORM.. Like below:
if condition 1 = 'True'.
call function 'WRITE_FORM'
exporting
element = 'TEXT'
window = 'DYNAMIC_TEXT'
exceptions
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
others = 7.
endif.
2. Or Just in the script editor in that window , put any if condition to print that text. It means it will print your text only when any condition is setisfied.
/: IF &CONDIITION& = 'TRUE'
PF &ZZ_TEXT_TO_BE_DISPLAY&
/: ENDIF
Reg,
Lokesh. -
Cost estimate and Dynamic Sourcing
We have multiple levels of sourcing in R/3 and the cost estimate is using this info to determine the cost at a distribution center. The special procurement key is used in R/3. We are now in the process of implementing APO/SNP and dynamic sourcing will be used. So, the question is how to use the sourcing from SNP when running a cost estimate. The business users want to have the most accurate sourcing data when running the costing run. There are over 600 production and distribution facilities and multiple levels of sourcing today, so updating this info manually in R/3 would be a challenge. Is there any intergration between SNP and PC or is custom development the only option?
Hi Jeff,
in SAP you never know, but I am almost sure that there is no such integration. In product costing there is a call into the ERP procurement to determine the best source of suuply and the associated costs. Might be that there is a user-exit to feed in alternative information, but probably no call into SNP.
I have heard this requirement the first time now. Sounds interesting...
best regards,
Udo -
Dynamic source value for uix frame
Hi all,
I have UIX page with two frames, left is for navigation (includes tree) and right one is for content.
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:http="http://www.w3.org/TR/REC-html40">
<content>
<frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
<left>
<frame source="Tree.uix" name="tree" width="30%"/>
</left>
<center>
<frame name="contents" data:source="${sessionScope.startPage}"/>
</center>
</frameBorderLayout>
</content>
</page>I'm trying to use ${sessionScope.startPage} to get source value, but it doesn't work. I am sure that there's such a parameter in http session and I can't understand why this happens.
Could anyone please say if it's possible to use dynamic source for frame?
Did anyone meet such problems?
Is there any other way to set the source value?
thanx in advance
RenatHi again,
So far I've found such a solution:
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:http="http://www.w3.org/TR/REC-html40">
<content>
<frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
<top>
<frame source="Top.uix" name="top" height="10%"/>
</top>
<left>
<frame source="Tree.uix" name="tree" width="30%"/>
</left>
<center>
<frame name="contents" source="startPage.uix"/>
</center>
<bottom>
<frame source="Bottom.uix" name="bottom" height="10%"/>
</bottom>
</frameBorderLayout>
</content>
</page>where startPage.uix is:
<?xml version="1.0" encoding="windows-1251"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
</provider>
<contents>
<document>
<metaContainer>
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<pageLayout title="">
<contents>
</contents>
<pageHeader>
<globalHeader/>
</pageHeader>
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<event name="*">
<method class="myPack.PageUtils.RedirectAction" method="redirect2anotherPage"/>
</event>
</handlers>
</page>and redirect2anotherPage is:
public static EventResult redirect2anotherPage (BajaContext context, Page page,
PageEvent event) throws Throwable {
HttpSession hs = context.getServletRequest().getSession();
Page otherPage = new Page((String) hs.getAttribute("startPage"));
return new EventResult(RedirectUtils.getRedirectPage(context,
otherPage));
}This seems to be working, but I am not sure if this is the correct solution (lonely solution).
Is there a way to use only UIX EL syntax?
Any ideas about this?
Renat -
Dynamic Source NAT for multiple POOLS
I am setting up Dynamic Source NAT with a few Pools and Access-list to translate according to the Access-list. However when configure some ACL don't work anything. And the ACL don't "match" any. I know that the correct way would be to apply the ACL about interface with "ip access-group <ACL-name> in/out" however in this case would be impossible to apply more one ACL with ip access-group command.
FurthermoreI have tested to creating a route-map named TEST with all ACLs; but cannot to create all "ip nat inside source route-map... " with the same route-map name. Also checked the cisco example: http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation-nat/13739-nat-routemap.html...
Attach the all configurations.
I need your help,
Thanks in advance!Oh my God!! Already works fine! I hadn't thought that "log" would be a painful
Thanks John Marshall!
Attach my troubleshooting:
INET#show ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 195.77.205.33:49529 10.55.0.1:49529 4.2.2.2:22 4.2.2.2:22
tcp 200.200.200.1:62978 10.55.1.1:62978 4.2.2.2:4343 4.2.2.2:4343
tcp 195.77.205.20:13493 181.70.12.18:13493 195.47.200.32:443 195.47.200.32:443
Furthermore we can to check the "rotary option also works!"
"INET#show ip nat translations
Pro Inside global Inside local Outside local Outside global
tcp 195.77.205.33:57238 10.55.0.1:57238 4.2.2.2:22 4.2.2.2:22
tcp 195.77.205.33:16393 10.55.1.1:16393 4.2.2.2:22 4.2.2.2:22"
Thanks again! -
Hi,
I have a script which currently prints a number of item details.
Users want to change the layout so that the result is given in tabular format,i.e, the item details need to be displayed in rows and column format. As the number of items can vary, could you please help me with the logic of displaying this using script?
Thanks in advance,
NeethuHi,
Creating dynamic boxes in script is possible but formatting and getting proper allignment is very tedious job. I had similar requirement for creating dynamic boxes in SAP Script, but getting right allignment of those boxes was not possible and hence I switched to smartform. So I would advise you the same to use smartform for such type of requirement. In smartforms it becomes very easy.
Still try the following syntax:
/:POSITION XORIGIN '5' CM YORIGIN '5'CM
/:SIZE HEIGHT '0' CM WIDTH '0' CM
/:BOX FRAME 10 TW INTENSITY 10
Hope this helps.
Reragds,
Abhijeet -
JSP taglibs from dynamic source
Hello folks,
i wonder if it is possible to use taglibs that come form a dynamic source during request time, like this:
<%
String myOtherTag = "<bla:myOtherTag/>"; // the string could come from a database or form
%>
<bla:myTag>
<%= myOtherTag %> <!-- do not outout as string, rather perform <bla:myOtherTag/> -->
</bla:myTag>The idea is, that users can write a string into a database with jsp tags, and the jsp reads it out at request time and performs them. I understand that they are actually translated to code at compilation time, but as far as i can tell, a dynamic binding should be possible.
If it is, what is it called and where can i find more information on this topic?
Thanx!No not normally possible.
The tags need to be translated/compiled into java code.
It does this at translation time - before the code is run.
The only way to do something like this would be to generate the tag to a jsp file, and then <jsp:include> that file.
You might be able to do it with JSP2.0 tag files as well.
Good luck,
evnafets -
Dynamic source and destination tables
Hi all
I've got to import 142 tables from csv into SQL 2008 on a regular basis.
I was looking at building a 142-part SSIS package to do this, then thought there must be a dynamic way of doing it.
Is there any way of dynamically changing the source and and destination tables?
The csv filenames will remain identical, the SQL tables will be the same names but with "_Staging" at the end of them (e.g. SRSection.csv will always go into SRSection_Staging).
I can then write MERGE statements to update the main tables from the staging data.
Any help on this would be greatly appreciated.
I get the the feeling I would need a FOREACH LOOP container but I'd really aprreciate a step-by-step guide if you can.Please check this :- http://sql-bi-dev.blogspot.com/2010/07/dynamic-database-connection-using-ssis.html
STEP1:
To begin, Create two tables as shown below in on of the environment:
-- Table to store list of Sources
CREATE TABLE SourceList (
ID [smallint],
ServerName [varchar](128),
DatabaseName [varchar](128),
TableName [varchar](128),
ConnString [nvarchar](255)
GO
-- Local Table to store Results
CREATE TABLE Results(
TableName [varchar](128),
ConnString [nvarchar](255),
RecordCount[int],
ActionTime [datetime]
GO
STEP 2:
Insert all connection strings in SourceList table using below script:
INSERT INTO SourceList
SELECT 1 ID,
'(local)' ServerName,
--Define required Server
'TestHN' DatabaseName,--Define DB Name
'TestTable' TableName,
'Data Source=(local);Initial Catalog=TestHN;Provider=SQLNCLI10.1;Integrated Security=SSPI;Auto Translate=False;' ConnString
Insert as many connections as you want.
STEP 3:
Add new package in your project and rename it with ForEachLoopMultipleServers.dtsx. Add following variable:
Variable
Type
Value
Purpose
ConnString
String
Data Source=(local);
Initial Catalog=TestHN;
Provider=SQLNCLI10.1;
Integrated Security=SSPI;
Auto Translate=False;
To store default connection string
Query
String
SELECT '' TableName,
N'' ConnString,
0 RecordCount,
GETDATE() ActionTime
Default SQL Query string.
This can be modified at runtime based on other variables
SourceList
Object
System.Object
To store the list of connection strings
SourceTable
String
Any Table Name.
It can be blank.
To store the table name of current connection string.
This table will be queried at run time
STEP 4:
Create two connection managers as shown below:
Local.TestHN: For local database which has table SourceList. Also this will be used to store the result in Results table.
DynamicConnection: This connection will be used for setting up dynamic connection with multiple servers.
Now click on DynamicConnection in connection manager and click on ellipse to set up dynamic connection string. Map connection String with variable
User::ConnString.
STEP 5:
Drag and drop Execute SQL Task and rename with "Execute SQL Task - Get List of Connection Strings". Now click on properties and set following values as shown in snapshot:
Result Set: Full Result Set
Connection: Local.TestHN
ConnectionType: Direct Input
SQL Statement: SELECT ConnString,TableName FROM SourceList
Now click on Result Set to store the result of SQL Task in variable User::SourceList.
STEP 6:
Drag and drop ForEach Loop container from toolbox and rename with "Foreach Loop Container - DB Tables". Double click on ForEach Loop container to open Foreach Loop Editor. Click on Collection and select
Foreach ADO Enumerator as Enumerator. In Enumerator configuration, select User::SourceList as ADO object source variable as shown below:
STEP 7: Drag and drop Script Task inside ForEach Loop container and double click on it to open Script Task Editor. Select
User::ConnString,User::SourceTable as
ReadOnlyVariables and User::Query as
ReadWriteVariables. Now click on Edit Script button and write following code in Main function:
public void Main()
try
String Table = Dts.Variables["User::SourceTable"].Value.ToString();
String ConnString = Dts.Variables["User::ConnString"].Value.ToString();
MessageBox.Show("SourceTable = " + Table +
"\nCurrentConnString = " + ConnString);
//SELECT '' TableName,N'' ConnString,0 RecordCount,GETDATE() ActionTime
string SQL = "SELECT '" + Table +
"' AS TableName, N'" + ConnString +
"' AS ConnString, COUNT (*) AS RecordCount, GETDATE() AS ActionTime FROM " + Dts.Variables["User::SourceTable"].Value.ToString() +
" (NOLOCK)";
Dts.Variables["User::Query"].Value = SQL;
Dts.TaskResult = (int)ScriptResults.Success;
catch (Exception e)
Dts.Log(e.Message, 0,
null);
STEP 8:
Drag and drop Data Flow Task and double click on it to open Data Flow tab. Add OLE DB Source and Destination. Double click on OLE DB Source to configure the properties. Select
DynamicConnection as OLE DB connection manager and
SQL command from variable as Data access mode. Select variable name as User::Query. Now click on
columns to genertae meta data.
Double click on OLE DB Destination to configure the properties. Select Local.TestHN as
OLE DB connection manager and Table or view - fast load as
Data access mode. Select [dbo].[Results] as Name of the table or the view. now click on
Mappings to map the columns from source. Click OK and save changes.
Finally DFT will look like below snapshot:
STEP 9: We are done with package development and its time to test the package.
Right click on the package in Solution Explorer and select execute. The message box will display you the current connection string.
Once you click OK, it will execute Data Flow Task and load the record count in Results table. This will be iterative process untill all the connection are done. Finally package will execute successfully.
You can check the data in results table:
Here is the result:
SELECT *
FROM SourceList
SELECT *
FROM Results
Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/ -
Hi all,
I am planning to load data from a flat file using an external table in an OWB mapping. Will my mapping work correctly if my file name changes at every load...as an example file name in October is sales_200310 in november it will be sales_200311.
In case OWB cannot handle this kind of variable file name then does it allow to include a pre mapping script (shell script or batch command) to change the flat file name to a standard name each time the mapping is executed.
Pls. suggest a workaround for this problem.
My environment -- Oracle 9i, OWB 9.2
Thanks in advance.
Regards,
Amit.Amit,
OWB does not support dynamic file names at the moment. You will have to rename the file(s) into a static, pre-defined name either by running a pre mapping process in the mapping or by running an external process from a process flow.
Regards:
Igor -
Dynamic source directory in sender adapter
Hi Experts,
I have a File to File scenario, where my source directory needs to be dynamic. The directory structure is like:
Y:\ParentDrive\<DynamicFolder>\<DynamicFolder>\<DynmicFileName>
And then on the receiver side, I need to create the DynamicFolders and the file.
Please let me know if this can be achieved using modules or if there is any other approach.hi,
refer my article:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
it shows using filename. similarly u can use directory attribute.
[reward if helpful]
regards,
latika. -
I have a folder in which I have a .Zip file which come to that folder on a periodical basis. The file name varies from time to time. But I am making sure that there is only one file (.Zip) in that folder. I want that file to be copied to a different location
with datetime stamp as a suffix.
Source Path: c:\users\kishoremcp\ssis\
destination path(Network Path) : \\user123ud\backup\
SO, how to select the file name dynamically and do the above task.
I am new to SSIS, so I request some one to help me (Steb by Step)
Thanks in advance.
Regards,
Kishoresee this blog
http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
This explains how to get files coming from folder using For Each Loop. In your case just change filetype to .zip inside foreachloop. You dont require any additional logic to determine valid file in your case as article explains
For the second part (move file) add a file system task with operation move file. Set Issourcepathvariable property to true and map to variable you use inside loop to retrieve filename. And set destination to folder you want file to be moved by appending
filename to it.
You can use this as a reference
http://visakhm.blogspot.in/2012/12/selective-file-archiving-using-ssis.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Dynamic photo gallery script?
Can anyone suggest a good photo gallery script?
My client is a photographer and needs a user-friendly system
where he can
create galleries, upload images. He also needs to assign
usernames/passwords
to each gallery. I was going to use Coppermine, but it has
too many bells
and whistles. I need to keep it very simple.
Thanks for you help.
J.P. Luisi
Lulu Digital Design
Making You Stand Out Online!
www.luludigital.com
905-832-2428Sorry for not beeing to respond to your issue sooner, but i'm having some deadlines that needed to be worked on.
This works to display the dynamic Galleries but, the links do not connect to the specific galleries.
Can anyone please help with this?
Can you resend me the url again, as i needed clear my inbox because i reached maximum amount of messages. -
Apex 3.2 Tree Dynamic Source
Hello,
I am looking for an example or any code snippet to have a logic PL/SQL souce in a tree in APEX 3.2.
IF condition = A
SELECT * FROM tbl where <condition1>
ELSE IF condition = B
SELECT * FROM tbl where <condition2>
END IF
Is this possible in tree source ? How and what Source type to use : PL/SQL Function or Expression | PL/SQL Function Body | SQL Query ? Please let me know if you have ideas ?
Regards,
EricHi,
Dynamic actions are introduced on Apex 4 and there is not anything similar on Apex 3.2.
But you can write your own JavaScripts. See e.g. this
Apex 3.2 hook javascripts to IR and execute those when report is refreshed
Regards,
Jari
Maybe you are looking for
-
Getting error 36331 while running prebuilt etl for first time
Hi all, I have installed BI apps 7.9.6 and OBIEE 10.1.3.4.1, DAC 10.13.4.1 on a Linux machine with Oracle 10gR2 as data base and EBS 11 i as the data source. I am running the prebuilt ETL for the first time for a new execution plan created with Finan
-
I recently started having problems with safari. I try opening it up and won't even load the apple homepage. I've deleted some of the cookies but still nothing seems to work. The funny thing is that safari does work under the new account i created. an
-
Not able to Import data using "clear and replace"
Hi, If I import data using the data admin package "Import" and "Merge" as 'method for importing' the process runs without problems. If I change the 'method for importing' to "Clear and Replace" the process fails. See message: TOTAL STEPS 2 1. Conver
-
Dear all If posting periods are APRIL TO MARCH 1 to 12 and special periods are 13,14,15,16 can any one explain about special periods with a simple example please?
-
Reset Host Name buffer on WebAS Java
Hello everyone. I'm currently planning the move of a production server to a new hardware. We need to reuse the old host name of the SAP server but it will be associated to a new IP address. I know that in ABAP it is possible to clear / reset the host