How to include custom css in js file
Hi,
We have a JS view and we want to include custom css in the same. How can we achieve the same.
Hi Saket,
You can use this in your view
jQuery.sap.includeStyleSheet("custom.css","MyCustomCSS");
or if it is in a package called css
jQuery.sap.includeStyleSheet("css/custom.css","MyCustomCSS");
MyCustomCSS is just an alias to call the css file
Thanks,
Roshini
Similar Messages
-
How to refer Custom css from the custom file say xxcm_sc_custom.xss
I want to refer all the custom css from other file xxcm_sc_custom.xss, which i created in my project directory and deployed in mds, The client wants all the css to be here, so how to refer this file from custom.xss file which is in java_top, i tried giving <import href="path of my file"> but there is no effect in pages, what are the exact steps for it...
Thanks
BabuYes, thats what i tried first...can you tell me what am i doing wrong...
This is the header part of my login page template which i am trying to edit...
The default css that the page is using is theme_3_1.css. My css file and images are in the same directory as theme_3_1.css
<html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">
<head>
<title>#TITLE#</title>
<!--[if IE]><link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/ie.css" type="text/css" /><![endif]-->
#HEAD#
<link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/mystylesheet.css" type="text/css">
<link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_20/theme_3_1.css" type="text/css">
</head>
It is not pulling my images.
I know my html is right, because, if i create a separate html file (away from apex) and use the above two css, again on the same directory..i am able to get the images displayed!!!! -
How to include custom taglib in javascript on a given jsp page
Hi,
How to include custom taglib in javascript on a given jsp page?
i have a jsp page on which i am adding selectboxes using javascript.
But now i have created my own custom select box and want to add it on a given jsp page.
is the code to create the box box.
<sample:pickListOptions employeeId="abcs123"/>
but how should i embed it in javascript, so that i will be able to add it on the give jsp page.
Thanks,
Javaqueuewhen the jsp page is loaded for the first time it contains a select box containg names created by a taglib.but there is a feature i want to add wherein though javascript the name selectebox will keep on coming on each row i want to add. and this is row addition and deletion is being handled by the javascript. there i encounter the bug how to interact the javascript with taglib so tha with each row addition i will have populated taglib created select box on each row.
Thanks,
Javaqueue -
How to Including custom text in the step "User Decision"
Hi All
Please help me in this regards I got problem
How to Including custom text in the step "User Decision"
Regards
Poonam
Edited by: Julius Bussche on Feb 2, 2009 1:59 PM
Please use the corect forum, meaningfull subject titles and use the search before asking questionsHi Poonam,
If I understood your problem correctly...
When you create a user decision a screen will appear.
In the decision tab under Title you can give your custom text.
Even if you want to give some variable (value of which will be determined at runtime) you can give that as well.
Like you have created a container for BOR objects MAT_DETAIL, in that object there is a field MATERIAL.
You can define your custom text as below:
Title: Would you like to create new material or display material &
Parameter 1: &MAT_DETAIL.MATERIAL&;
In Title you can give as max. as 4 &(ampersand). And each & will be replaced by each Parameter at runtime in same sequence.
In parameters you use to select the container defined by you earlier.
Hope this will help. -
How to include custom application.xml in JDev9i project
Can anybody explain to me how to include a custom application.xml file when deploying to an .ear file? I need to include application wide security roles, and I can't see where in Jev9i how to do this.
After searching this forum, I see that jdev9i can't include the orion-application.xml, but I want to include just the standard J2EE application.xml. Is this possible?
Thanks,
mattThe standard application.xml file unfortunately can't be customized in JDev 9.0.2. The reasons why this capability was left out of JDev 9.0.2 are same reasons why the other EAR-level XML files were excluded. The OTN thread
Re: Regarding 11i and E-business suite
has a summary of those reasons, which you've probably seen. We know this is an area in need of improvement and will be adding this functionality in the JDev 9.0.3 release. Until then, you'll have to go with a work-around like an Ant build file, batch file, Java application, or some other kind of script.
Below is a sample Java application which can be used to insert <security-role> elements into an EAR file's application.xml. Modify the main() method to customize for your purposes, and put xmlparserv2.jar on the classpath (in a JDev project, add the "Oracle XML Parser v2" library):
package mypackage4;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import oracle.xml.parser.v2.*;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
public class PostProcessEAR
public static void main( String[] args ) throws IOException
final String earFile = "C:\\temp\\myapp.ear";
final PostProcessEAR postProcess = new PostProcessEAR( earFile );
postProcess.addSecurityRole( null, "first_role" );
postProcess.addSecurityRole( "Description for the second role", "second_role" );
postProcess.commit();
System.out.println( "Done." );
private final File _earFile;
private final ArrayList _securityRoles = new ArrayList();
public PostProcessEAR( String earFile )
_earFile = new File( earFile );
public void addSecurityRole( String description, String roleName )
if ( roleName == null )
throw new IllegalArgumentException();
_securityRoles.add( description );
_securityRoles.add( roleName );
* Write out modified EAR file.
public void commit() throws IOException
if ( _securityRoles.size() == 0 )
return;
final ZipFile zipFile = new ZipFile( _earFile );
final Enumeration entries = zipFile.entries();
final File outFile = new File( _earFile.getAbsolutePath() + ".out" );
final ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( outFile ) ) );
while ( entries.hasMoreElements() )
final ZipEntry entry = (ZipEntry) entries.nextElement();
final InputStream in = zipFile.getInputStream( entry );
if ( "META-INF/application.xml".equals( entry.getName() ) )
final XMLDocument modifiedApplicationXml = insertSecurityRoles( in );
final ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
modifiedApplicationXml.print( byteOutput );
final int numBytes = byteOutput.size();
entry.setSize( numBytes );
if ( entry.getMethod() == ZipEntry.STORED )
entry.setCompressedSize( numBytes );
final CRC32 crc32 = new CRC32();
crc32.update( byteOutput.toByteArray() );
entry.setCrc( crc32.getValue() );
out.putNextEntry( entry );
byteOutput.writeTo( out );
else
// Copy all other zip entries as they are.
out.putNextEntry( entry );
copy( in, out );
in.close();
out.close();
private XMLDocument insertSecurityRoles( InputStream in ) throws IOException
final DOMParser domParser = new DOMParser();
domParser.setAttribute( DOMParser.STANDALONE, Boolean.TRUE );
try
domParser.parse( in );
final XMLDocument doc = domParser.getDocument();
final Element docElem = doc.getDocumentElement();
final Iterator iter = _securityRoles.iterator();
while ( iter.hasNext() )
final String desc = (String) iter.next(); // might be null
final String roleName = iter.next().toString(); // must not be null
final Element securityRoleElem = doc.createElement( "security-role" );
if ( desc != null )
securityRoleElem.appendChild( createPcdata( doc, "description", desc ) );
securityRoleElem.appendChild( createPcdata( doc, "role-name", roleName ) );
docElem.appendChild( securityRoleElem );
return doc;
catch ( SAXException e )
e.printStackTrace();
return null;
private Element createPcdata( XMLDocument doc, String elemName, String pcdata )
final Element elem = doc.createElement( elemName );
elem.appendChild( doc.createTextNode( pcdata ) );
return elem;
private final byte[] buffer = new byte[4096];
private void copy( InputStream in, OutputStream out ) throws IOException
while ( true )
final int bytesRead = in.read( buffer );
if ( bytesRead < 0 )
break;
out.write( buffer, 0, bytesRead ); -
In LSMW how to include customer fields in BAPI method ?
Hi all,
We have a requirement to use BAPI method in LSMW. We have some custom fields defined needs to be handled in BAPI structures.Please tell me how to handle BAPI extension structures(EXTENSIONIN/OUT) in LSMW.Hi Venugopal,
You can use the sold to party field fiield for your requirement.
Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
If can enter the customer name, which will sort out the sold to party number whihc you can use.
If this is not wat is required you have to copy the transaction and create a new Zreport.
Hope this helps you.
Thanks
Arun -
How to include an image or pdf file in a message for this forum
Can someone please tell me how to include in a message like this one an image or a pdf file?
ThanksRead here _[Help and terms of Use|http://discussions.apple.com/help.jspa]_ which you can also can find in the right panel in the forum
You can put your image on flickr.com or imageshack.us or similar sites. -
How to include custom modules in eclipse
Hi,
We have ATG 10.1.2 knowledge and self service module with some project specific custom module on Production UNIX machine.
I have installed ATG 10.1.2 on local machine(Windows 7 64 bit) for development purpose.
1> If I copy custom module from the unix machine and paste it in my local windows machine and generate EAR, will it work?
2> How to include the custom module in eclipse for development activity.
I am new to ATG. Any help is much appreciated.
Thanks.when the jsp page is loaded for the first time it contains a select box containg names created by a taglib.but there is a feature i want to add wherein though javascript the name selectebox will keep on coming on each row i want to add. and this is row addition and deletion is being handled by the javascript. there i encounter the bug how to interact the javascript with taglib so tha with each row addition i will have populated taglib created select box on each row.
Thanks,
Javaqueue -
How to include Customer Name in VA15N
Hi All,
The standard report VA15N does'nt include customer name.User wants the customer name aslo to be included in the report.Kindly suggest how to include the customer name in the standard report or any other alternative.
Regards,
VenugopalHi Venugopal,
You can use the sold to party field fiield for your requirement.
Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
If can enter the customer name, which will sort out the sold to party number whihc you can use.
If this is not wat is required you have to copy the transaction and create a new Zreport.
Hope this helps you.
Thanks
Arun -
How to include a CSS from another project
Hi all,
I'm developing an AbstractPortalComponent which uses some of my own defined stylesheets. I can include the stylesheet defined in my own project by this:
com.sapportals.portal.prt.resource.IResource myStyle =
request.getResource("css", "css/my_nav.css");
response.include(request, myStyle);
Now I need to include another CSS but from another project.
I tried also to get the response and write the HTML code but it writes it into the <BODY></BODY> tag and the CSS is not used when rendering the document:
...</head>
<body class="prtlBody urFontBaseFam urScrl">
<LINK REL=stylesheet HREF="/irj/portalapps/myProject/css/zglobal.css" TYPE="text/css">
Does anybody know the solution?
Thanks in advance,
RomanoThere are document hooks that you can use to insert things into the response of a page being written to the client.
Therefore, if you create a service which implements the IDocumentHookListener, you will then need to implement the
String doDocumentHook(int documentPosition, IPortalComponentRequest request, IPortalComponentResponse response)
and
void doDocumentHook(int documentPosition, IPortalComponentRequest request, IPortalComponentResponse response)
The first method, that returns a String, you can basically check where in the document you would like to write code, something like
switch (documentPosition) {
case IDocumentHookListener.HEAD_SECTION_BEGIN :
return "some string";
break;
case IDocumentHookListener.HEAD_SECTION_END :
return "some other string";
break;
The second method, simply writes out the String returned from the first method to the response, i.e.
response.write(doDocumentHook(documentPosition, request));
I hope this helps
Darrell -
How to include externel library in JAR file?
Hi all =)
I have a program that uses an external library (in a JAR file) I would like to compile my program as a JAR and have it include the external library that it needs to run, so that the external library would not need to be on the computer running my program. How can I do this?
Thanks =)
Koneko349
Message was edited by:
Koneko349Ok I was able to make my JAR and launch my application correctly. However whenever I click a button that has a method using my external library I get the following error:
C:\Documents and Settings\Koneko>java -jar D:\Mangment.jar
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/POIFSFileSystem at managment_system.ManagmentGUI.getNextStat(ManagmentGUI.java:569) at managment_system.ManagmentGUI$1.actionPerformed(ManagmentGUI.java:195)
I do not get this error when I run and use my program from within the IDE.
The JAR that has my external library (and has the class for POIFileSystem) is also on my D drive and i referenced it correctly (I think) In my classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="D:/poi.jar"/>
<classpathentry kind="output" path=""/>
</classpath>I would really like to get this working and I'm very confused XP -
How to access custom properties in .vm file
Hi,
I have created custom property for screen using File -> Project Properties.
This property apply to one of my screen.
If I want to access the value of the custom property in .vm.
How to access that value. I tried using screen.getTest() but it doesn't return anything for me.Hi Peter,
I followed the steps.
1)created custom property
2)assign that custom property using right click on screen and assign some value
eg. custom property name - Test
and value as "abc"
i need abc in vm file.following my vm file
it's not working
<input type="text" id="a1" name="a1" value="${screen.getProperties().get("Test")}" tabindex="6" size="30" >
#set ( $value = $screen.getProperties().get("Test") )
<input type="text" id="a1" name="a1" value="$value" tabindex="6" size="30" >
#if( ${control.isVisible()})
#if( ${control.getButtonClass().equals("submit")} )
<input class="btn" type="button" value="Back" tabindex="#tabIndex()" onclick="javascript:back()">
#end
#if( ${screen.getProperties().get("Test").equals("mahesh")} )
<input class="submit" id="submit" name="submit" type="submit" value="Submit" alt="Submit" tabindex="12">
#else
<input class="${control.getButtonClass()}" id="${control.getEncodedID()}" name="${control.getId()}" type="submit" value="${control.getText()}" alt="${control.getText()}" tabindex="#tabIndex()">
#end
#end
#if( ${control.getButtonClass().equals("submit")} )
</div>
#end
Edited by: 848231 on May 18, 2011 3:00 AM -
How to deploy custom jar (forms PJC) file in R12.1.x
Hi ,
we need use forms pjc connecting to client pc'com port with ebs form,
we can deploy with ias standard form server , but EBS 's appsweb.cfg
was automatically generated by AutoConfig , so i don't know how to config our jar in EBS env.
i had search document in metalink for serval days , can some help us to solve this problem !
thanks for any help...
BR,NolemHi all, I am confronted by the same problem.
I have manually added my custom Jar files to the archive=2 section of the appsweb.cfg config file in the $INST_TOP/ora/10.1.2/forms/server and placed the Jar files in the $COMMON_TOP/java/classes/oracle/apps/fnd/jar.
I know that this is probably not the way to go, as autoconfig will override these settings, but my first priority is getting these jar files to run in Apps Forms without errors. I got as far as that my forms don't error out anymore but not all of them are working as they should. I am also trying to deploy the WebUitl utility in EBS R12. As far as I can tell this should be supported by Oracle as it comes as part of a standard Apps Installation (except for the Jacob.jar) it can be found in: $ORACLE_HOME/forms/webutil directory and the WEBUTIL_CONFIG reference to the webutil.cfg file can be found in the default.env in the same directory as the appsweb.cfg.
If you want to look at some very good examples of PJC's there is a very good blog: http://forms.pjc.bean.over-blog.com/. You can also look at Francois Degrelle's blog on Read/Write files on the client machine without Webutil.
Nevertheless information on how to deploy and run these PJC's under EBS is scarce. Metalink offers no solutions except very outdated notes.
I would appreciate to know how to properly deploy these jar files in EBS
I am also on 12.1.x. Btw there are more threads on this subject on OTN but most are outdated (threadID=1067917, 686329, 4246525) and don't provide the solution for EBS R12.1.x.
Any help would be appreciated. -
How to include custom style sheets in BI 7 WAD (Web Reports)
Hi,
I have WAD in 3.X, where I have used custom stylesheets. Now I need to use the same style sheets of 3.x development in BI 7 WAD.
How do i achieve this?
Regs, ArkaHi,
Stylesheets cannot be included via the Web Application Designer for BI 7.0 web templates. You need to use the Theme Editor of the Portal instead. Please refer to the documentation:
http://help.sap.com/saphelp_nw70/helpdata/de/f4/bb7a3b688d3c1de10000000a11402f/frameset.htm
Best regards,
Janine -
How to include grouplayout in my .jar file.
Hello,
I have a program that works great on my comptuer and the one in my lab. I would like to deploy this .jar file to other systems, but these other systems are only running JRE 1.5.0_10-b03. The problem, as I understand it, is that swing.grouplayout first appeared in JRE1.6.XX so these older versions don't have the proper librairies to run this.
How do I include the grouplayout class with my .jar file. I have searched all over my HDD and cannot find the grouplayout class file to include. Am I on the right track?
Thanks!
-- SnowNote: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.
Maybe you are looking for
-
'"Connection Failed" : The server "rrnas01" may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again' message keeps displaying whenever I try to open any Adobe CS5 applica
-
Everytime I try to add a video file to the i-tunes library nothing happens. In fact I always seem to have to use the "Add folder to library" option and the "Add file to library" option does not do anything. The video is in the correct format. So I'm
-
Printing transfer order ( tx LT31 ) with smartforms ?
Hi all, Is it possible to assing a smartform for printing transfer orders? I didn't find any informations about that in this forum... Thank you in advance ! Olivier.
-
How long does it normally take to install Final Cut?
Hi, I just got a new MacBook Pro. I'm installing Final Cut Studio 2 on it and I was wondering how long it normally takes to install that program on this type of computer. Right now it's saying 10 hours (and that's after 2 hours having already passed)
-
Hi Gurrus, I need Segments names and if possible field names in the IDOC type SHPMNT02 for PO NUM, PO line Item, Material No., ASN Received, Expected Delivery both Date and Time, Aty in Shipment. I dont want inbound delivery to be created. Please hel