I need to create joomla 1.5 module with textfields wrapped with default texteditor. Could anyone help me, please? Here is my mod_...xml
<params>
<param name="felicitation" type="text" default="Желаем хорошего настроения и счастья:)!" label="Текст поздравления" description="укажите текст поздравления" size="60">
</param>
<param name="message" type="textarea" default="Дорогой друг! От всей души поздравляем тебя с Днём рождения! Желаем благополучия, личностного самосовершенствования, достижения намеченных целей.Сотрудники Центра развития молодёжных волонтёрских программ." cols="30" rows="7" label="Текст письма" description="текст поздравления в письме">
</param>
<param name="image" default="" type="imagelist" label="Выберите картинку" description="" directory="images/stories" >
</param>
</params>
The editor field isn't part of the standard field elements in Joomla 1.5 although it is available in Joomla 2.5 and above.
In your case, you will need to create a custom parameter type. See this response on how to setup a custom field element for the editor.
Related
I am trying to deselect files based on the value of the param name "filter_param" within the section. Example input file:
<What>
<Param name="filter_param" value="1" />
<Param name="other_param" value="2" />
<Param name="yet_other_param" value="1" />
...
</What>
The 'filter_param' can have any integer value between 1 and 100 and I am trying to get rid of only the ones that have certain values (e.g. 1 and 2). I am trying filters like
"//Param[#name='What/filter_param' and #value!=1] and //Param[#name='What/filter_param' and #value!=2]"
but without success... Any hints?
Use and inside predicates:
//Param[#name="..." and #value != 1 and #value != 2]
If I understand you correctly, assuming your xml looks like this:
<What>
<Param name="filter_param" value="1" />
<Param name="other_param" value="2" />
<Param name="yet_other_param" value="1" />
<Param name="filter_param" value="100" />
</What>
This xpath expression
//What/Param[not(.[#name="filter_param"][#value<3])]
should output:
<Param name="other_param" value="2"/>
<Param name="yet_other_param" value="1"/>
<Param name="filter_param" value="100"/>
Is that what you are looking for?
In XPath 2.0 you can do
//Param[#name="filter_param" and not(#value=(1, 2))]
to select Param node that contains name attribute that equals to "filter_param" and value attribute is not equal to 1, not equal to 2
Is there any way to save the oracle forms(3-tier) .fmx file running from a server, accessed using a web browser..
what i am getting is some tags containing the .fmx file location . on accessing those files i get the .fmx running. i need dump of the .fmx
Following is the code received by the browser:
<!-- Forms applet definition (start) -->
<OBJECT classid="clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF"
codebase="/forms/jinitiator/jinit.exe#Version=1,3,1,22"
WIDTH="800"
HEIGHT="600"
HSPACE="0"
VSPACE="0">
<PARAM NAME="TYPE" VALUE="application/x-jinit-applet;version=1.3.1.22">
<PARAM NAME="CODEBASE" VALUE="/forms/java">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
<PARAM NAME="ARCHIVE" VALUE="frmall_jinit.jar,JCalendarJinit.jar,jcalendar.jar,jacob.jar,frmwebutil.jar,icons.jar" >
<PARAM NAME="serverURL" VALUE="/forms/lservlet?ifcfs=/forms/frmservlet?form=PR_SC_3T_LOGIN_EDB.fmx&acceptLanguage=en-US,en;q=0.8,hi;q=0.6,ms;q=0.4">
<PARAM NAME="networkRetries" VALUE="0">
<PARAM NAME="serverArgs"
VALUE="escapeParams=true module=PR_SC_3T_LOGIN_EDB.fmx userid= sso_userid=%20 sso_formsid=formsApp_appserv5.vsp.org_E90504F17EA811DFBFFD1B9BE00D2215 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term=">
<PARAM NAME="separateFrame" VALUE="True">
<PARAM NAME="splashScreen" VALUE="">
<PARAM NAME="background" VALUE="NO">
<PARAM NAME="lookAndFeel" VALUE="Oracle">
<PARAM NAME="colorScheme" VALUE="teal">
<PARAM NAME="serverApp" VALUE="default">
<PARAM NAME="logo" VALUE="NO">
<PARAM NAME="imageBase" VALUE="DocumentBase">
<PARAM NAME="formsMessageListener" VALUE="">
<PARAM NAME="recordFileName" VALUE="">
<PARAM NAME="EndUserMonitoringEnabled" VALUE="">
<PARAM NAME="EndUserMonitoringURL" VALUE="">
<PARAM NAME="heartbeat" VALUE="">
<COMMENT>
<EMBED SRC="" PLUGINSPAGE="/forms/jinitiator/us/jinit_download.htm"
TYPE="application/x-jinit-applet;version=1.3.1.22"
java_codebase="/forms/java"
java_code="oracle.forms.engine.Main"
java_archive="frmall_jinit.jar,JCalendarJinit.jar,jcalendar.jar,jacob.jar,frmwebutil.jar,icons.jar"
WIDTH="800"
HEIGHT="600"
HSPACE="0"
VSPACE="0"
serverURL="/forms/lservlet?ifcfs=/forms/frmservlet?form=PR_SC_3T_LOGIN_EDB.fmx&acceptLanguage=en-US,en;q=0.8,hi;q=0.6,ms;q=0.4"
networkRetries="0"
serverArgs="escapeParams=true module=PR_SC_3T_LOGIN_EDB.fmx userid= sso_userid=%20 sso_formsid=formsApp_appserv5.vsp.org_E90504F17EA811DFBFFD1B9BE00D2215 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term="
separateFrame="True"
splashScreen=""
background="NO"
lookAndFeel="Oracle"
colorScheme="teal"
serverApp="default"
logo="NO"
imageBase="DocumentBase"
formsMessageListener=""
recordFileName=""
EndUserMonitoringEnabled=""
EndUserMonitoringURL=""
heartBeat=""
>
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!-- Forms applet definition (end) -->
</BODY>
</HTML>
Using .fmx files:
Cannot edit or view the code written.
Running offline cannot be useful is some case: if the form uses queries and needs to be connected to the database.
Maybe the main reason why using fmx files, is too use the same form on multiple endpoint within an intra-network
For the fmx on the server, you can try to access that link /forms/frmservlet?form=PR_SC_3T_LOGIN_EDB.fmx and try to download it from the server.
Hope it helps you.
I'm hoping you can help with this. I tried a number of XPath testers online and wasn't able to find a solution.
I'm trying to get the value of the first node with the '~tid' attribute from this XML:
<Response status="ok" version="1.1">
<Action>
<Page>
<Params>
<Param name="~tid" value="1345811517165"/>
<Param name="~action-type" value="DATA"/>
<Param name="~from-page" value="login"/>
<Param name="~from-act" value="submitData"/>
<Param name="login_USERNAME" value="" type="0"/>
<Param name="login_PASSWORD" value="" type="0"/>
</Params>
</Page>
<Data name="clientData" method="POST">
<Params>
<Param name="timezoneoffset" value=""/>
<Param name="daylightsavings" value=""/>
</Params>
</Data>
</Action>
<Action>
<Page>
<Params>
<Param name="~tid" value="1345811517165"/>
<Param name="~action-type" value="NAV"/>
<Param name="~from-page" value="login"/>
<Param name="~from-act" value="resetPassword"/>
<Param name="~to-page" value="login_resetPassword"/>
</Params>
</Page>
</Action>
<Action>
<Page>
<Params>
<Param name="~tid" value="1345811517165"/>
<Param name="~action-type" value="NAV"/>
<Param name="~from-page" value="login"/>
<Param name="~from-act" value="newUser"/>
<Param name="~to-page" value="login_newUser"/>
</Params>
</Page>
</Action>
</Response>
The XPath I'm using is:
//Params[1]/Param[#name='~tid']/#value
It gets all three values. How can I get just the first one?
Try
/descendant::Params[1]/Param[#name='~tid']/#value
From the W3C XPath specification:
NOTE: The location path //para[1] does not mean the same as the location path /descendant::para[1]. The latter selects the first descendant para element; the former selects all descendant para elements that are the first para children of their parents.
This is the second most FAQ in XPath.
Use:
(//Params/Param[#name='~tid'])[1]/#value
Or even:
(//Param[#name='~tid'])[1]/#value
Explanation:
The XPath pseudo-operator // has lower precedence (priority) than the [] operator.
The usual solution in any laguage when default priority needs to be overriden is to use brackets that explicitly specify the new, wanted priorities.
we are migrating our Oracle Forms 10g application to APEX 4.1.
We need to include some Forms into APEX.
We have a PL/SQL function call_form (see below), called from an APEX region, that simply writes the applet to load the form, passing the form name as parameter.
It works, but it always reload Forms services and it takes arround 10s each time, the Oracle Application Server Forms Services logo appears each time :
It is really a pain for users...
I thought it was because it was reloading jar files each time, so I have tried to use cache options when writting the applet (cache_option, cache_archive, ...) to cache the files in the JVM, without success.
I don't get the applet security warning each time, in the java cache viewer I can see the 4 jar files frmall.jar, frmwebutil.jar, FDialogPJC.jar and jacob.jar.
Here is the content of the Java console when calling a form, and then reloading the page, it seems it loads webutil 2 times :
RegisterWebUtil - Loading WebUtil Version 10.1.2.3
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.3
RegisterWebUtil - Loading WebUtil Version 10.1.2.3
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.3
My JVM is 1.6.0_31.
The call_form procedure :
procedure call_form(in_form_name in varchar2) is
begin
htp.p('
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://javadl-esd.sun.com/update/1.6.0/jinstall-6-windows-i586.cab" width="0" height="0" hspace="0" vspace="0">
<param name="type" value="application/x-java-applet">
<param name="codebase" value="http://myhost.ch/forms/java">
<param name="code" value="oracle.forms.webutil.common.RegisterWebUtil">
<param name="cache_option" value="Plugin">
<param name="cache_archive" value="frmwebutil.jar,jacob.jar">
<param name="cache_version" value="">
<comment>
<embed src="" pluginspage="https://java.sun.com/javase/downloads/index.jsp"
type="application/x-java-applet"
java_codebase="http://myhost.ch/forms/java"
java_code="oracle.forms.webutil.common.RegisterWebUtil"
cache_option="Plugin"
cache_archive="frmwebutil.jar,jacob.jar"
cache_version=""
width="0"
height="0"
hspace="0"
vspace="0">
</embed>
<noembed>Registration applet definition</noembed>
</comment>
</object>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://javadl-esd.sun.com/update/1.6.0/jinstall-6-windows-i586.cab" width="1015" height="745" hspace="0" vspace="0">
<param name="type" value="application/x-java-applet">
<param name="codebase" value="http://myhost.ch/forms/java">
<param name="code" value="oracle.forms.engine.Main">
<param name="cache_option" value="Plugin">
<param name="cache_archive" value="frmall.jar,FDialogPJC.jar,frmwebutil.jar,jacob.jar">
<param name="cache_version" value="">
<param name="serverURL" value="http://myhost.ch/forms/lservlet?ifcfs=http://myhost.ch/forms/frmservlet?config=myconfig&form='||in_form_name||'.fmx&acceptLanguage=fr">
<param name="networkRetries" value="0">
<param name="serverArgs" value="escapeParams=true module='||in_form_name||'.fmx userid= sso_userid=%20 sso_formsid=%25OID_FORMSID%25 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term=">
<param name="separateFrame" value="False">
<param name="splashScreen" value="">
<param name="background" value="">
<param name="lookAndFeel" value="Oracle">
<param name="colorScheme" value="teal">
<param name="serverApp" value="default">
<param name="logo" value="">
<param name="imageBase" value="DocumentBase">
<param name="formsMessageListener" value="">
<param name="recordFileName" value="">
<param name="EndUserMonitoringEnabled" value="">
<param name="EndUserMonitoringURL" value="">
<param name="heartBeat" value="">
<param name="WebUtilLogging" value="off">
<param name="WebUtilLoggingDetail" value="normal">
<param name="WebUtilErrorMode" value="Alert">
<param name="WebUtilDispatchMonitorInterval" value="5">
<param name="WebUtilTrustInternal" value="true">
<param name="WebUtilMaxTransferSize" value="16384">
<comment>
<embed src="" pluginspage="https://java.sun.com/javase/downloads/index.jsp"
type="application/x-java-applet"
java_codebase="http://myhost.ch/forms/java"
java_code="oracle.forms.engine.Main"
cache_option="Plugin"
cache_archive="frmall.jar,FDialogPJC.jar,frmwebutil.jar,jacob.jar"
cache_version=""
width="1015"
height="745"
hspace="0"
vspace=""
serverURL="http://myhost.ch/forms/lservlet?ifcfs=http://myhost.ch/forms/frmservlet?config=myconfig&form='||in_form_name||'.fmx&acceptLanguage=fr"
networkRetries="0"
serverArgs="escapeParams=true module='||in_form_name||'.fmx userid= sso_userid=%20 sso_formsid=%25OID_FORMSID%25 sso_subDN= sso_usrDN= debug=no host= port= buffer_records=no debug_messages=no array=no obr=no query_only=no quiet=yes render=no record= tracegroup= log= term="
separateFrame="False"
splashScreen=""
background=""
lookAndFeel="Oracle"
colorScheme="teal"
serverApp="default"
logo=""
imageBase="DocumentBase"
recordFileName=""
EndUserMonitoringEnabled=""
EndUserMonitoringURL=""
heartBeat=""
WebUtilLogging="off"
WebUtilLoggingDetail="normal"
WebUtilErrormode="Alert"
WebUtilDispatchMonitorInterval="5"
WebUtilTrustInternal="true"
WebUtilMaxTransferSize="16384">
</embed>
<noembed>Forms applet definition</noembed>
</comment>
</object>
');
end;
Have you any idea on how I can prevent that ? Or do you think there is a better way to include Oracle Forms into APEX ?
Any help would be much appreciated.
Thanks.
Greetings Community!
<object id="myExperienceXXXXXXXX" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="448" />
<param name="height" value="251" />
<param name="playerID" value="XXXXXXXXXX" />
<param name="playerKey" value="XXXXXXXXXXX" />
<param name="isVid" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="#videoPlayer" value="XXXXXXXXXXXXX" />
</object>
Notice the last line , I get the following error:
Compiler Error Message: CS0103: The name 'videoPlayer' does not exist in the current context
This value is Required by Camtasia to embed my video in my page. I'm sure there is a simple solution, but I need the "#" sign before the videoPlayer value.
Thanks in advance for any assistance.
# is a reserved character in Razor which should normally be followed by a server side expression. Double it if you want to output it literally:
<param name="##videoPlayer" value="XXXXXXXXXXXXX" />
The # symbol is a reserved character in the Razor view engine. If you want to output a # symbol you can use two # characters to escape the first.
For example:
<param name="##videoPlayer" value="XXXXXXXXXXXXX" />
Not work with the above answers!
It should be the format like this:
<param name="#("#videoPlayer")" value="XXXXXXXXXXXXX" />