Creating New Job Problem
Hello all,
Am trying to do a backup job (OS windows) but am always getting the error
ORA-20900: Could not find credential set DBHostCreds for target type oracle_database ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 688 ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 1351 ORA-06512: at "SYSMAN.MGMT_JOBS", line 285 ORA-06512: at "SYSMAN.MGMT_JOBS", line 78 ORA-06512: at line 1
i checked in secpol.msc i have given the Log on as a batch job to the user
i checked the preferred credentials and when i clicked the set credentials it shows this message : There are no credential sets configured for this target type.
ie I cannot set a preferred credentials
what could be wrong ?
Thanks in Advance
I am not sure that this exactly is the case but on Windows, setting the host credentials needs an additional setting. Please follow the following steps,
1. Go to control panel->administrative tools
(i) Click on "local security policy"
(ii)Click on "local policies"
(iii)Click on "user rights assignments"
(iv)Click on "log on as a batch job"
(v)Click on "add" and add the user that was entered in the "normal username" or "privileged username" section of the EM Console.
2. Go to the Preferences link in the EM
(i)Click on Preferred Credentials (link on the left menu)
(ii)Under "Target Type: Host" click on "set credentials"
(iii)Enter the OS user who has logon as a batch job privilege into the "normal username" and "normal password" fields
3. Test the connection
(i)While in the Set Credentials window, click on "Test"
Hope this would resolve the issue.
HTH
Aman....
Similar Messages
-
Effect of creating new Jobs & grades in Existing HRMS system
Dear Experts...
We are already live with more than 3000 empoyees with modules like payroll, OLM and PMS.
Now all of sudden our users want to create new job for interns and create new grades for them.
All these will be added to the existing jobs and grades...
Will this have effect? what is impact on Payroll.. ??
I can simply create them using Job KFF ... but something fails.. Oracle will say .. you did not follow standards....
Any help pls ??Hi Rahul,
This is a perfectly normal request from any HR user and common requirement in any HRMS system.
You can add as many grades and jobs to your Oracle HRMS/HCM system anytime without jeopardizing your existing data as long as you're entering them from the standard screens or loading through public APIs.
I'm not from "Oracle" but I can say that in doing so you'll be following "the standards" and Oracle will provide support in case of issues.
As for impact on Payroll, once you've associated these new grades and jobs to your employees and if there are benefits/deductions linked to them, then yes, your payroll would be impacted. Whether it will correctly reflect on your Payroll depends on your configuration (elements, links, fast-formula, etc...).
Anyway, you'll have to carefully do dummy runs and check the cases on a 'Test' instance before deploying onto Production Environment.
HTH.
Regards,
Rajen -
Creating new Layout problem with merged table within std_resources.htm
Dear All,
i am relatively new to oracle ucm and i am trying to add new comonent to create new layout from oracle Create and Modify Layout Sample Component* example under http://www.oracle.com/technetwork/middleware/content-management/index-092832.html .
i want to ask about the following
in this component i have CreateLayout_Layouts Table, CreateLayout_PublishedWeblayoutFiles Table and CreateLayout_PublishedStaticFiles Table. These tables should be merged with LmLayouts table, PublishedWeblayoutFiles table and PublishedStaticFiles table respectively in the std_resources.htm file in the <install_dir>/shared/config/resources directory.
The problem is in my std_resources.htm file i have the following :
<tr>
<td>LmLayouts</td><td>LmLayouts</td><td>LmLayouts</td><td>id</td><td>label</td>
<td></td><td>7.3</td><td>1</td>
</tr>
how can i add (merge) the CreateLayout_Layouts Table in LmLayouts table? what is should fill the <td>s ?
for PublishedWeblayoutFiles table and PublishedStaticFiles table they are not exist in my std_resources.htm file. are there names changed? or shall i add them(if yes, what is the <td>s had inside).
note: i will be greatfull if someone have the std_resources.htm that have the above tables merged with the specified ones.I believe that sample is old. i have been pushing to get an updated version out also. Hopefully the fragmentary information I will give here will help.
The main changes are dynamic data tables which replace the includes to control the menu items and relationships. The old things should work still but good to use the new. At the end is an example of merge rules.
See 3.5.2 Dynamic Data Tables
http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/c03_components.htm
==============================
CoreMenuItemRelationships table example
<?commatable mergeKey="primaryKey" derivedColumns="primaryKey:parentId+id"?>
parentId, id, loadOrder
MY_CONTENT, NEW_PAGE, 9000
================================
CoreMenuItems table example
<?commatable mergeKey="primaryKey" derivedColumns="primaryKey:parentId+id"?>
id, label, linkType, linkData
NEW_PAGE, wwNewPage, cgi, IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=NEW_PAGE
============================
CoreMenuItemsFlags table example
<?commatable indexedColumns="id"?>
id, flags
WORK_IN_PROGRESS, isSubAdmin
=======================
CoreMenuItemsImages table example
<?commatable indexedColumns="id"?>
id, image, imageOpen
ACTIVE_WORKFLOWS, ReviewContent.gif,
Glue file example: (note I am not willing to upload a zip file of a full component sorry)
<?hda version="11gR1-dev" jcharset="UTF8" encoding="utf-8"?>
@Properties LocalData
ComponentName=NewLayout
blDateFormat=M/d/yyyy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAmerica/Chicago
hasPreferenceData=0
preventAdditionalComponentDowngrade=0
serverVersion=7.1
version=2011_11_13-dev
@end
@ResultSet ResourceDefinition
4
type
filename
tables
loadOrder
resource
resources/newlayout_resource.htm
null
10
template
templates/newlayout_template.hda
null
10
resource
resources/newlayout_strings.htm
null
10
@end
@ResultSet Filters
4
type
location
parameter
loadOrder
@end
@ResultSet MergeRules
4
fromTable
toTable
column
loadOrder
NewLayout_Layouts
LmLayouts
id
10
NewLayout_PublishedWeblayoutFiles
PublishedWeblayoutFiles
path
10
NewLayout_PublishedStaticFiles
PublishedStaticFiles
null
10
NewLayout_LayoutSkinPairs
LmLayoutSkinPairs
null
10
NewLayout_Templates
IntradocTemplates
name
10
@end
@ResultSet ClassAliases
3
classname
location
loadOrder
@end -
Creating new application problem
I try to create a new application to switch streams. I call it "studia".
I place the server-side code in a file named main.asc and create new folder "studia" in the rootinstall/applications folder.
I copy main.asc file to this folder and start Adobe Flash Media Live Encoder 3 and try to broadcast to this URI (localhost/studia) with stream name "livestream1".
My application do not start, in fms consol do not appear application name and Live Encoder say me "Falure to connect to primary server".
I add the string "studia_DIR = C:\Program Files (x86)\Adobe\Flash Media Server 4.5\applications\studia" to the fms.ini file script and restart my computer.
I repeat my attempt - the same answers and no effect from application "studia".
I create folder "mixer" in the rootinstall/applications/studia folder, create folder "script" in this folder, replase main.asc file to it and start Adobe Flash Media Live Encoder 3 and "livestreams" application to broadcast to URI localhost/studia/mixer (or even to localhost/studia) by two streams with stream names "livestream1" and "livestreams2" - broadcasts are suссesful, the application name "studia/mixer" (or even studia/_definst_) appear in the fms console with client=2.
But application "studia" do not work.
Here is my main.asc script:
application.myRemoteConn = new NetConnection();
application.myRemoteConn.onStatus = function(info){
trace("Connect " + info.code + "\n");
// Reply to all clients
for (var i = 0; i < application.clients.length; i++){
application.clients[i].call("onServerStatus", null, info.code, info.description);
// Use NetConnection object to remote server connect (the remote server works with other application wery good)
application.myRemoteConn.connect(rtmp://RemoteServer/live/);
// Server stream estimation
application.myStream = Stream.get("livestream");
if (application.myStream){
// Switching sequence of liveStreams
application.myStream.play("liveStream1", -1, 15);
application.myStream.play("liveStream2", -1, 5, false);
application.myStream.play("liveStream1", -1, 5, false);
application.myStream.play("liveStream2", -1, 5, false);
application.myStream.play("liveStream1", -1, 5, false);
application.myStream.play("liveStream2", -1, 5, false);
application.myStream.play("liveStream1", -1, 5, false);
I have few questions:
1. Why application "studia" do not start when I create folder "studia" in the rootinstall/applications folder, place main.asc in it and broadcast "livestream1" to this folder by Flash Media Live Encoder?
2. Why application "studia" begin to work only when I create folder "mixer" in the rootinstall/applications/studia folder and place main.asc file to rootinstall/applications/studia/script folder?
3. Why FMS do not execute main.asc script?
What i do wrong?Is it means that my main.asc code:
application.myRemoteConn = new NetConnection();
application.myRemoteConn.onStatus = function(info){
trace("Connect " + info.code + "\n");
// Reply to all clients
for (var i = 0; i < application.clients.length; i++){
application.clients[i].call("onServerStatus", null, info.code, info.description);
application.onConnect = function(clientObject){
clientObject.callFromClient = function(){
trace("The client just invoked callFromClient);
// Use NetConnection object to remote server connect (the remote server works with other application wery good)
application.myRemoteConn.connect("rtmp://RemoteServer/live");
// Server stream estimation
application.myStream = Stream.get("livestream");
if (application.myStream){
// Switching sequence of liveStreams
application.myStream.play("liveStream1", -1, 15);
application.myStream.play("liveStream2", -1, 5, false);
application.myStream.play("liveStream1", -1, 5, false);
application.myStream.play("liveStream2", -1, 5, false);
application.myStream.play("liveStream1", -1, 5, false);
application.myStream.play("liveStream2", -1, 5, false);
application.myStream.play("liveStream1", -1, 5, false);
must to be like this one?
and where I must to place this fragment:
// Create a remote method on the Client class prototype
Client.prototype.callFromClient = function(){
trace("The client with ID "+this.id+" just invoked callFromClient);
in client side code? -
Can anyone point me in the right direction in setting up the blackberry email? I forgot my PW. When I type in my Login and click"forgot password" the message " password has been sent to your blackberry' pops up, but no message is ever received. I cannot create a new email as it tells me "account alredy exits for this PIN." Thanks in advance for any assistance.
try using the option where you can enter yur PIN number to retrieve PW, nay be you are forgot the username as well.
you have not switched service provider? if you did you cannot login into BIS for your old service provider and cannot create new one since the PIN is already being used on BIS.
Click on KUDOS to appreciate our efforts and mark the thread RESOLVED if your issue is resolved. -
Hi Experts,
I have recently created a program to extract activity information with the use of GUID retrieval from CRMD_ORDER_H table and a BAPI call with the guids returned.
I have selection screen criteria for process type and a date range. I've had problems with the program completing due to the volumen of info that is being pulled. The program manages to pull data for a week at a time (and also for the process type range i want ) without failing.
My problem is that i have to extract information up til the beginning of the last year and i dont want to have to create multiple variants within sm36 (There would end up being to many)
Is it possibe to create a secondary program that will kick start a job and also supply the correct parameters (i.e date range) from within this program???
Thanks in advance
Confused!!Hi,
Ya u can use the foll FMs(together) to schedule a job from ur pgm......
Job_open
Job_submit
Job_close
u can pass variants,spool recipients.......anything u can do in SM36.......
Cheers,
jose. -
Just upgraded to iphoto 11 9.1.1 from the app store, now it seems when I select file/new album it gives me a new untitled album, but the new untitled album show all photos and video from my library. I would expect it would or should be empty.
Thank you
Johnselect a photo prior to creating the album - then the album will be created with that photo only in it - or select several photos or an event - the new album will contain only what is selected
LN -
When I created a new account in workgroup manager, after the new user tried to log-in on client's side, the computer could not find their home folder, then I found out the Xserve did not create home folder when they logged-in, so I had to create a new home folder by hand, then changed the authorities of the folder every time.
Dose anyone have the same issue like me? How can I solve this?Are you running OS X Server 10.5? Or is this an earlier version of the OS? Depending on which version of the OS you need to set up a Sharepoint where the home directories are hosted. When that's established, it should be listed in the Home Directory pane of Workgroup Manager.
-
Creating a new job and position prompts customizing request...
Dear All,
I created a Job and Position through PP01 transaction. I am facing 2 issues while doing so...
1. System prompts for Customizing request when i try to save the new entry.
What table/settings do i need to maintain for turning of the customizing request promptings.
2. Once i save the entries(after entering some dummy customizing requests), when i check the
HRP1000 table for the new jobs and positions... The table entry shows 2 records for each Job and
position. One entry with Plan version '.:' and another with active Plan version '1'.
I need to have just one entry in HRP1000 table for each job/position with ACTIVE plan version.
I checked T77S0 table, it has active plan version maintained against the PLOGI-PLOGI entry.
Please let me know what table i need to maintain to handle my requirement.
Regards
NandaHi Nanda,
When you create new job or position in sandbox system it will not ask for the request number,since you generally dont transport the objects from sandbox to test system.
When you create a new job or position in development system, it will always ask for request number. This is because, in most of the cases, you need to transport the job and position to test system and then to production system.
Without a customizing request you wont be able to transport those changes to next system.
Thanks,
Supriya. -
Hi all, ;)
First of all, sorry about my poor English.
I have a problem with Swing and Threads, I hope you help me (because I'm in the firsts two weeks in my new job)
I have two classes:
Form1: Its a JPanel class with JProgressBar and JLabel inside.
FormularioApplet: (the main) Its a JPanel class with a form1 inside.
I have to download a file from a server and show the progress of the download in the JProgressBar. To make it I do this:
In Form1 I make a Thread that update the progress bar and gets the fole from the server.
In FormularioApplet (the main) I call to the method getDownloadedFile from Form1 to get the File.
THE PROBLEM:
The execution of FormularioApplet finishes before the Thread of Form1 (with download the file) download the file. Then, when I call in FormularioApplet the variable with the file an Exception: Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException is generated.
First main begins his execution, then call to Form1 (a thread) then continues his execution and when the execution is finished ends the execution os Form1 and his thread.
How can I do for main class call the function and the Thread download his file after main class assign the file of return method?
How can I pass information froma class include an a main class. Form1 can't send to main (because main class made a Form1 f1 = new Form1()) any information from his end of the execution. I think if Form1 can say to main class that he finishes is job, then main class can gets the file.
I put in bold the important lines.
Note: My level of JAVA, you can see, is not elevated.
THANKS A LOT
Form1 class:
package es.cambrabcn.signer.gui;
import java.awt.HeadlessException;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.SwingUtilities;
public class Form1 extends javax.swing.JPanel {
//Variables relacionadas con la clase original DownloadProgressBar
private InputStream file;
private int totalCicles;
private int totalFiles;
private int currentProgress;
private SwingWorker worker;
private ByteArrayOutputStream byteArray;
private boolean done;
/** Creates new form prueba */
public Form1() {
initComponents();
this.byteArray = new ByteArrayOutputStream();
progressBar.setStringPainted(true);
//this.totalFiles = totalFiles;
currentProgress = 0;
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" C�digo Generado ">
private void initComponents() {
label1 = new javax.swing.JLabel();
progressBar = new javax.swing.JProgressBar();
statusLabel = new javax.swing.JLabel();
setBackground(new java.awt.Color(255, 255, 255));
setMaximumSize(new java.awt.Dimension(300, 150));
setMinimumSize(new java.awt.Dimension(300, 150));
setPreferredSize(new java.awt.Dimension(300, 150));
label1.setFont(new java.awt.Font("Arial", 1, 18));
label1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
label1.setText("Barra de progreso");
statusLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
statusLabel.setText("Cargando");
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(org.jdesktop.layout.GroupLayout.LEADING, statusLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, progressBar, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, label1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(label1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(statusLabel)
.addContainerGap(73, Short.MAX_VALUE))
}// </editor-fold>
// Declaraci�n de variables - no modificar
private javax.swing.JLabel label1;
private javax.swing.JProgressBar progressBar;
private javax.swing.JLabel statusLabel;
// Fin de declaraci�n de variables
public byte[] getDownloadedFile(String documentToSign){
//Variables locales
byte puente[] = null;
try{
//Leemos el documento a firmar
StringTokenizer st = new StringTokenizer(documentToSign, ";");
Vector<URL> fileURL = new Vector<URL>();
HttpSender sender = new HttpSender(null);
//Introducimos la lista de URLs de archivos a bajar en el objeto Vector
for(; st.hasMoreTokens(); fileURL.add(new URL(st.nextToken())));
//Para cada URL descargaremos un archivo
for(int i = 0; i < fileURL.size(); i++) {
file = sender.getMethod((URL)fileURL.get(i));
if(file == null) {
Thread.sleep(1000L);
throw new RuntimeException("Error descarregant el document a signar.");
System.out.println("Form1 Dentro de getDownloadFile, Antes de startDownload()");
//Fijamos el valor del n�mero de ciclos que se har�n seg�n el tama�o del fichero
this.totalCicles = sender.returnCurrentContentLength() / 1024;
this.progressBar.setMaximum(totalCicles);
//Modificamos el texto del JLabel seg�n el n�mero de fichero que estemos descargando
this.statusLabel.setText((new StringBuilder("Descarregant document ")).append(i + 1).append(" de ").append(fileURL.size()).toString());
statusLabel.setAlignmentX(0.5F);
*//Iniciamos la descarga del fichero, este m�todo llama internamente a un Thread*
*this.startDownload();*
*System.out.println("Form1 Dentro de getDownloadFile, Despu�s de startDownload()");*
*//if (pane.showProgressDialog() == -1) {*
*while (!this.isDone()){*
*System.out.println("No est� acabada la descarga");*
*if (this.isDone()){*
*System.out.println("Thread ACABADO --> Enviamos a puente el archivo");*
*puente = this.byteArray.toByteArray();*
*System.out.println("Form1 getDownloadFile() tama�o puente: " + puente.length);*
*else{*
*Thread.sleep(5000L);*
*// throw new RuntimeException("Proc�s de desc�rrega del document a signar cancel�lat.");*
catch (HeadlessException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("UI: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (MalformedURLException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (HttpSenderException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (InterruptedException e) {
//javascript("onSignError", new String[] {
//(new StringBuilder("CMS: ")).append(e.getMessage()).toString()});
e.printStackTrace();
//System.out.println("Form1 getDownloadFile() tama�o puente: " + puente.length);
return puente;
public void updateStatus(final int i){
Runnable doSetProgressBarValue = new Runnable() {
public void run() {
progressBar.setValue(i);
SwingUtilities.invokeLater(doSetProgressBarValue);
public void startDownload() {
System.out.println("Form1 Inicio startDownload()");
System.out.println("Form1 Dentro de startDownload, antes de definir la subclase SwingWorker");
System.out.println(done);
worker = new SwingWorker() {
public Object construct() {
System.out.println("Form1 Dentro de startDownload, dentro de construct(), Antes de entrar en doWork()");
return doWork();
public void finished() {
System.out.println("Form1 Dentro de startDownload, dentro de finished(), Antes de asignar done = true");
System.out.println(done);
done = true;
System.out.println("Form1 Dentro de startDownload, dentro de finished(), Despu�s de asignar done = true");
System.out.println(done);
statusLabel.setText("Completado, tama�o del archivo: " + (byteArray.size() / 1024) + "KB");
System.out.println("Form1 Dentro de startDownload, antes de worker.start()");
worker.start();
System.out.println("Form1 Dentro de startDownload, antes de salir de startDownload");
System.out.println(done);
System.out.println("Form1 Dentro de startDownload, despu�s de worker.start()");
* M�todo doWork()
* Este m�todo descarga por partes el archivo que es necesario descargar, adem�s de actualizar
* la barra de carga del proceso de carga de la GUI.
public Object doWork() {
System.out.println("Form1 doWork() this.byteArray.size(): " + this.byteArray.size());
try {
byte buffer[] = new byte[1024];
for(int c = 0; (c = this.file.read(buffer)) > 0;) {
this.currentProgress++;
updateStatus(this.currentProgress);
this.byteArray.write(buffer, 0, c);
this.byteArray.flush();
this.file.close();
this.currentProgress = totalCicles;
updateStatus(this.currentProgress);
} catch(IOException e) {
e.printStackTrace();
System.out.println("Form1 doWork() FINAL this.byteArray.size(): " + this.byteArray.size());
//done = true;
System.out.println("AHORA DONE = TRUE");
return "Done";
public boolean isDone() {
return this.done;
FormularioApplet class (main)
package es.cambrabcn.signer.gui;
import java.awt.Color;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.security.Security;
import java.util.StringTokenizer;
import java.util.Vector;
import javax.swing.SwingUtilities;
import netscape.javascript.JSObject;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import sun.security.provider.Sun;
import be.cardon.cryptoapi.provider.CryptoAPIProvider;
public class FormularioApplet extends java.applet.Applet {
//Variables globales
int paso = 0;
private static final String JS_ONLOAD = "onLoad";
private static final String JS_ONLOADERROR = "onLoadError";
private static final int SIGNATURE_PDF = 1;
private static final int SIGNATURE_XML = 2;
//private String signButtonValue;
private int signatureType;
private String documentToSign;
private String pdfSignatureField;
private Vector<String> outputFilename;
private Color appletBackground = new Color(255, 255, 255);
private Vector<byte[]> ftbsigned;
* Initializes the applet FormularioApplet
public void init(){
try {
SwingUtilities.invokeLater(new Runnable() {
//SwingUtilities.invokeAndWait(new Runnable() {
//java.awt.EventQueue.invokeAndWait(new Runnable() {
public void run() {
try{
readParameters();
initComponents();
catch(FileNotFoundException e){
javascript(JS_ONLOADERROR, new String[] {
(new StringBuilder("Init: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch(IOException e) {
javascript(JS_ONLOADERROR, new String[] {
(new StringBuilder("Init: ")).append(e.getMessage()).toString()});
e.printStackTrace();
catch (Exception e) {
javascript(JS_ONLOADERROR, new String[] {
(new StringBuilder("Init: ")).append(e.getMessage()).toString()});
e.printStackTrace();
javascript(JS_ONLOAD, null);
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" C�digo Generado ">
private void initComponents() {
this.setSize(350, 450);
appletPanel = new javax.swing.JPanel();
jPanel1 = new javax.swing.JPanel();
jTextField1 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
label = new javax.swing.JLabel();
jPanel3 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setLayout(new java.awt.BorderLayout());
appletPanel.setBackground(new java.awt.Color(255, 255, 255));
appletPanel.setMaximumSize(new java.awt.Dimension(350, 430));
appletPanel.setMinimumSize(new java.awt.Dimension(350, 430));
appletPanel.setPreferredSize(new java.awt.Dimension(350, 430));
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
jTextField1.setFont(new java.awt.Font("Arial", 1, 18));
jTextField1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jTextField1.setText("SIGNATURA ELECTRONICA");
org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
.addContainerGap())
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)
.addContainerGap())
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
label.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
label.setIcon(new javax.swing.ImageIcon("C:\\java\\workspaces\\cambrabcn\\firmasElectronicas\\logo.gif"));
org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.add(label, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE)
.addContainerGap())
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.add(label)
.addContainerGap(229, Short.MAX_VALUE))
jPanel3.setBackground(new java.awt.Color(255, 255, 255));
jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));
//this.jButton1.setVisible(false);
//this.jButton2.setVisible(false);
jButton1.setText("Seg\u00fcent");
jButton1.setAlignmentX(0.5F);
//Cargamos el primer formulario en el JPanel2
loadFirstForm();
//Modificamos el texto del bot�n y el contador de pasos.
//this.jButton1.setText("Siguiente");
//this.jButton1.setVisible(true);
//this.jButton2.setVisible(true);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
jButton2.setText("Cancel\u00b7lar");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap()
.add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 112, Short.MAX_VALUE)
.add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 102, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap()
.add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jButton2)
.add(jButton1))
.addContainerGap())
org.jdesktop.layout.GroupLayout appletPanelLayout = new org.jdesktop.layout.GroupLayout(appletPanel);
appletPanel.setLayout(appletPanelLayout);
appletPanelLayout.setHorizontalGroup(
appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, appletPanelLayout.createSequentialGroup()
.addContainerGap()
.add(appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.LEADING, jPanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
appletPanelLayout.setVerticalGroup(
appletPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, appletPanelLayout.createSequentialGroup()
.addContainerGap()
.add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
add(appletPanel, java.awt.BorderLayout.CENTER);
}// </editor-fold>
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
this.destroy();
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
changeForms(this.paso);
// Declaraci�n de variables - no modificar
private javax.swing.JPanel appletPanel;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JLabel jTextField1;
private javax.swing.JLabel label;
// Fin de declaraci�n de variables
* M�todo readParameters
* M�todo que inicializa los valores de los par�metros internos, recibidos por par�metro.
private void readParameters() throws FileNotFoundException, IOException {
???????????????? deleted for the forum
addSecurityProviders();
* M�tode loadFirstForm
* Aquest m�tode carrega a jPanel2 el formulari que informa sobre la c�rrega dels arxius
private void loadFirstForm(){
//Form1 f1 = new Form1(stream, i + 1, fileURL.size(), sender.returnCurrentContentLength(), appletBackground);
//Form1 f1 = new Form1(fileURL.size(), sender.returnCurrentContentLength());
Form1 f1 = new Form1();
//Lo dimensionamos y posicionamos
f1.setSize(310, 150);
f1.setLocation(10, 110);
//A�adimos el formulario al JPanel que lo contendr�
this.jPanel2.add(f1);
//Validem i repintem el JPanel
jPanel2.validate();
jPanel2.repaint();
//Descarreguem l'arxiu a signar
*System.out.println("FormularioApplet Dentro de loadFirstForm(), antes de llamar a getDownloadFile()");*
*byte obj[] = f1.getDownloadedFile(this.documentToSign);*
if (obj == null){
System.out.println("Lo que devuelve f1.getDownloadedFile(this.documentToSign) es NULL");
else{
System.out.println("Lo que devuelve f1.getDownloadedFile(this.documentToSign) NO es NULL");
System.out.println("obj: " + obj.length);
this.ftbsigned.add(obj);
System.out.println("FormularioApplet Dentro de loadFirstForm(), despu�s de llamar a getDownloadFile()");
//Indicamos que el primer paso ya se ha efectuado
this.paso++;
* M�tode changeForms
* Aquest m�tode carrega a jPanel2 un formulari concret segons el valor de la variable global "paso"
private void changeForms(int paso){
/*A cada paso se cargar� en el JPanel y formulario diferente
* Paso previo: Se realiza en la inicializaci�n, carga el formulario, descarga el archivo y muestra la barra de carga.
* Case 1: Se carga el formulario de selecci�n de tipo de firma.
* Case 2: Se carga el formulario de datos de la persona que firma.
this.paso = paso;
switch(paso){
case 1:
//Creamos un objeto de formulario (seleccion de tipo de firma)
Form2 f2 = new Form2();
//Lo dimensionamos y posicionamos
f2.setSize(310, 185);
f2.setLocation(10, 110);
//Quitamos el formulario 1 y a�adimos el formulario 2 al JPanel
this.jPanel2.remove(1);
this.jPanel2.add(f2);
//Validem i repintem el JPanel
jPanel2.validate();
jPanel2.repaint();
//Modificamos el contador de pasos.
this.paso++;
break;
case 2:
//Creamos un objeto de formulario (seleccion de tipo de firma)
Form3 f3 = new Form3();
//Lo dimensionamos y posicionamos
f3.setSize(310, 175);
f3.setLocation(15, 130);
//Quitamos el formulario 1 y a�adimos el formulario 3 al JPanel
this.jPanel2.remove(1);
this.jPanel2.add(f3);
//Validem i repintem el JPanel
jPanel2.validate();
jPanel2.repaint();
//Modificamos el texto del bot�n y el contador de pasos.
this.jButton1.setText("Finalizar");
this.paso++;
break;
default:
//Finalizar el Applet
//C�digo que se encargue de guardar el archivo en el disco duro del usuario
break;
private void addSecurityProviders() throws FileNotFoundException, IOException {
Security.addProvider(new CryptoAPIProvider());
if (signatureType == SIGNATURE_PDF) {
Security.addProvider(new BouncyCastleProvider());
else {
Security.addProvider(new Sun());
private File createOutputFile(String filename, int index) {
return new File((String)outputFilename.get(index));
protected Object javascript(String function, String args[]) throws RuntimeException {
//Remove
if (true) return null;
try {
Vector<String> list = new Vector<String>();
if(args != null) {
for(int i = 0; i < args.length; i++) {
list.addElement(args);
if(list.size() > 0) {
Object objs[] = new Object[list.size()];
list.copyInto(objs);
return JSObject.getWindow(this).call(function, objs);
} catch(UnsatisfiedLinkError e) {
e.printStackTrace();
throw new RuntimeException((new StringBuilder()).append(e).append("\nFunci�: ").append(function).toString());
} catch(Throwable e) {
e.printStackTrace();
throw new RuntimeException((new StringBuilder()).append(e).append("\nFunci�: ").append(function).toString());
return JSObject.getWindow(this).call(function, new Object[0]);
Edited by: Kefalegereta on Oct 31, 2007 3:54 AM
Edited by: Kefalegereta on Oct 31, 2007 4:00 AMLook at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Dear sirs,
Could you please help me on my problem with my apple ID
I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
My account have 50$ and still didn't buy anythingYou need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
(100546) -
I'm using Windows 7 Home premium on an HP Pavilion laptop. Maybe two weeks ago, I stopped being able to create new folders in the Windows Explorer box; I click the "New Folder" button, and nothing happens: no error message, nothing. Around two weeks ago, I also reinstalled Firefox to get rid of some adware virus (success: the adware is gone!). I do not recall the exact timing on when I did the reinstall and when I stopped being able to create new folders, but I'm wondering if the folder problem could be related to the re-install. And if so, what can I do about it?
Thanks so much for any help you can offer.Hello FJasmine, no, it is not related the firefox update with that.
see : [http://answers.microsoft.com/en-us/windows/forum/windows_7-files/cant-create-anymore-new-folders-in-windows-7/721a9129-c800-4224-8779-805dd6dfb80e Can't create anymore New Folders in Windows 7]
[http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/97de8a2a-12f2-4381-a409-a78f4ae551cf/ Cannot create new folder in Windows 7]
thank you -
Windows 7 Home Premium problem creating new user account
I am unable to create a new user account on my Windows 7 Home Premium computer. I have 3 accounts on it already, two are adminstrators, and just trying to add a fourth one (standard user).
I go to User Accounts, click Create new account, give it a name, keep Standard user checked, and press Create Account. The account appears to get created and shows up on the User Accounts screen, though it shows that it is password protected already, even
though I didn't have an opportunity to give it a password yet. I can manage that new user account and delete the password, and it then shows up on User Accounts as not having a password.
When I try to log on as that user from the main logon screen, it prompts me for the password (if I have specified one), but it doesn't accept the password (I've tried defining and using various ones), and I get the message "The user name or password is incorrect".
If I don't define a password for that account, when I click on the account button to logon, I get that same error message immediately.
I also noticed that C:\Users doesn't include the new user account folder there. Don't know if that should've been created at this point before logging on for the first time. I also noticed that there's a "Default User" folder that has a lock on the folder
icon, and I'm not able to open that folder (says it's invalid). There is a "Default" folder there with some content in it and I am able to view it. Don't know if either of these folders act as templates for new users.
At some point months ago I did have a profile problem with one of the existing accounts, and had to follow some suggestions on repairing that user profile. Don't know if that perhaps has complicated things. The 3 existing user accounts are working fine.
Any tips on what I can try to get a new account established?
Thanks, Chuck
Chuck MastrandreaI am unable to create a new user account on my Windows 7 Home Premium computer. I have 3 accounts on it already, two are adminstrators, and just trying to add a fourth one (standard user).
I go to User Accounts, click Create new account, give it a name, keep Standard user checked, and press Create Account. The account appears to get created and shows up on the User Accounts screen, though it shows that it is password protected already, even
though I didn't have an opportunity to give it a password yet. I can manage that new user account and delete the password, and it then shows up on User Accounts as not having a password.
When I try to log on as that user from the main logon screen, it prompts me for the password (if I have specified one), but it doesn't accept the password (I've tried defining and using various ones), and I get the message "The user name or password
is incorrect". If I don't define a password for that account, when I click on the account button to logon, I get that same error message immediately.
I also noticed that C:\Users doesn't include the new user account folder there. Don't know if that should've been created at this point before logging on for the first time. I also noticed that there's a "Default User" folder that has a lock on
the folder icon, and I'm not able to open that folder (says it's invalid). There is a "Default" folder there with some content in it and I am able to view it. Don't know if either of these folders act as templates for new users.
At some point months ago I did have a profile problem with one of the existing accounts, and had to follow some suggestions on repairing that user profile. Don't know if that perhaps has complicated things. The 3 existing user accounts are working fine.
Any tips on what I can try to get a new account established?
Thanks, Chuck
Chuck Mastrandrea
I agree with the same problem and the answer below did not work either. I tried changing permissions to Users directory and that did not work either. I even tried creating the directory name of user I wanted to install and that was recognized and
being used, but will not start a user directory for new user. -
STRANGE PROBLEM with "Create New Mail Account.scpt" when creating POP acct.
I am using "Create New Mail Account.scpt" to create a POP account. It creates the account successfully. It fetches the mails successfully. Now the problem begins. After fetching all the mails once if u click "Get Mail" in mac mail, it fetches all the emails again and has now 1 original and 1 copy of the email set which is on the server. I just need 1 copy of the mail set not multiple. Please give me a solution or direct me to a help.
Thanks
SCRIPT
global theUsername
global thePassword
set success to 1
set theResult to true
if theResult is not equal to false
#set theAccountName to getAccountName()
#set theUsername to getUsername()
#set thePassword to getPassword()
#set theEmailAddresses to getEmailAddress()
#set theFullName to getFullName()
-- POP Account
if accountTypeString is equal to "POP" or accountTypeString is equal to "IMAP" then
set theHostname to "THE HOST NAME"
-- POP specific options
if accountTypeString is equal to "POP" then
set deletionPolicy to my getDeletionPolicy()
if deletionPolicy is not equal to false then
set deletionPolicy to item 1 of deletionPolicy
set theNewAccount to my createAccount(accountTypeString, theAccountName, theUsername, theHostname, thePassword, theEmailAddresses, theFullName)
if theNewAccount is not equal to false then
setDeletionPolicy(theNewAccount, deletionPolicy)
getAndSetAuthenticationScheme(accountTypeString, theNewAccount)
getAndSetSMTPServer(theNewAccount)
else
set success to 0
end if
end if
-- IMAP specific options
else if accountTypeString is equal to "IMAP" then
set theNewAccount to my createAccount(accountTypeString, theAccountName, theUsername, theHostname, thePassword, theEmailAddresses, theFullName)
if theNewAccount is not equal to false then
getAndSetCachingSettings(theNewAccount)
getAndSetAuthenticationScheme(accountTypeString, theNewAccount)
getAndSetSMTPServer(theNewAccount)
else
set success to 0
end if
end if
end if
if success is equal to 1 then
display dialog "Account created!"
else
display dialog "Account creation failed!"
end if
end if
-- Convenience handler for creating accounts
on createAccount(theAccountType, theAccountName, theUsername, theHostname, thePassword, theEmailAddresses, theFullName)
tell application "Mail"
try
if theAccountType is equal to ".Mac" then
set theNewAccount to make new Mac account with properties {name:theAccountName, user name:theUsername, server name:theHostname, password:thePassword, full name:theFullName, email addresses:{theEmailAddresses}}
else if theAccountType is equal to "IMAP" then
set theNewAccount to make new imap account with properties {name:theAccountName, user name:theUsername, server name:theHostname, password:thePassword, uses ssl:true, full name:theFullName, email addresses:{theEmailAddresses}}
else if theAccountType is equal to "POP" then
set theNewAccount to make new pop account with properties {name:theAccountName, user name:theUsername, server name:theHostname, include when getting new mail:true, password:thePassword, uses ssl:true, full name:theFullName, email addresses:{theEmailAddresses}}
end if
on error
set theNewAccount to false
end try
end tell
return theNewAccount
end createAccount
-- Ask the user what they would like to name the account
on getAccountName()
repeat
set theResult to display dialog "What would you like this account to be named?" default answer "Example: My Home Account"
set theAccountName to text returned of theResult
if theAccountName does not start with "Example:" then
exit repeat
end if
end repeat
return theAccountName
end getAccountName
-- Ask the user for the user name for their email account
on getUsername()
repeat
set theResult to display dialog "What is your email user name?" default answer "Example: janedoe"
set theUsername to text returned of the theResult
if theUsername does not start with "Example:" then
exit repeat
end if
end repeat
return theUsername
end getUsername
-- Ask the user for the password for their email account
on getPassword()
set theResult to display dialog "What is the password for this account?" default answer ""
set thePassword to text returned of theResult
return thePassword
end getPassword
-- Ask the user for the email addresses for their email account
on getEmailAddress()
repeat
set theResult to display dialog "What email address would you like to use for this account?" default answer "Example: [email protected]"
set theEmailAddress to text returned of theResult
if theEmailAddress does not start with "Example:" then
exit repeat
end if
end repeat
return theEmailAddress
end getEmailAddress
-- Ask the user for the full name for their email account
on getFullName()
repeat
set theResult to display dialog "What is the full name for this account?" default answer "Example: Steve Smith"
set theFullName to text returned of theResult
if (theFullName does not start with "Example:") then
exit repeat
end if
end repeat
return theFullName
end getFullName
-- Convenience handler for asking the user what settings they would
-- like to have for their special mailboxes. This handler also sets these
-- values in Mail.
on getAndSetSpecialMailboxes(theAccount)
-- Sent messages default to storing locally
set theResult to display dialog "Would you like to store Sent Messages on the IMAP server?" buttons {"Yes", "No"} default button 2
log theAccount
tell application "Mail"
tell theAccount
if button returned of theResult is equal to "Yes" then
set store sent messages on server to true
else if button returned of theResult is equal to "No" then
set store sent messages on server to false
end if
end tell
end tell
-- Drafts default to storing locally
set theResult to display dialog "Would you like to store Drafts on the IMAP server?" buttons {"Yes", "No"} default button 2
tell application "Mail"
tell theAccount
if button returned of theResult is equal to "Yes" then
set store drafts on server to true
else if button returned of theResult is equal to "No" then
set store drafts on server to false
end if
end tell
end tell
-- Trash defaults to storing on the IMAP server
set theResult to display dialog "Would you like to store Deleted Messages on the IMAP server?" buttons {"Yes", "No"} default button 1
tell application "Mail"
tell theAccount
if button returned of theResult is equal to "Yes" then
set store deleted messages on server to true
else if button returned of theResult is equal to "No" then
set store deleted messages on server to false
end if
end tell
end tell
end getAndSetSpecialMailboxes
-- Convenience handler for asking the user what IMAP
-- caching setting they would like to use and configuring
-- it in Mail.
on getAndSetCachingSettings(theAccount)
set theResult to choose from list {"Cache everything", "Cache everything but attachments", "Cache when read", "Don't cache"} ¬
with prompt "Choose a message caching setting for this account:" default items {"Cache everything"} without multiple selections allowed
if theResult is not equal to false then
tell application "Mail"
tell theAccount
if (item 1 of theResult is equal to "Cache everything") then
set message caching to all messages and their attachments
else if (item 1 of theResult is equal to "Cache everything but attachments") then
set message caching to all messages but omit attachments
else if (item 1 of theResult is equal to "Cache when read") then
set message caching to only messages I have read
else if (item 1 of theResult is equal to "Don't cache") then
set message caching to do not keep copies of any messages
end if
end tell
end tell
end if
end getAndSetCachingSettings
-- Convenience handler for asking the user whether they want to use
-- an already defined SMTP server (if any) or whether they want to
-- define a new one.
on getAndSetSMTPServer(theAccount)
tell application "Mail" to set everySMTPServer to every smtp server
if ((count of everySMTPServer) > 0) then
set listOfSMTPServers to {}
repeat with eachServer in everySMTPServer
try
set listOfSMTPServers to listOfSMTPServers & name of eachServer
end try
end repeat
createNewSMTPServer(theAccount)
else
createNewSMTPServer(theAccount)
end if
end getAndSetSMTPServer
-- Handler for creating a new SMTP server, if the user has none set up
-- already or if they choose not to use one of their existing servers.
on createNewSMTPServer(theAccount)
set theServerName to "THE SERVER NAME"
tell application "Mail"
set theSMTPServer to make new smtp server with properties {server name:theServerName, port:25, uses ssl:true}
set smtp server of theAccount to theSMTPServer
end tell
getAndSetAuthenticationScheme("SMTP", theSMTPServer)
end createNewSMTPServer
-- Handler for asking the user what authentication scheme their server supports.
-- The options are different for POP, IMAP, and SMTP. Unless you are told otherwise,
-- it's best to leave these at their default settings.
on getAndSetAuthenticationScheme(accountType, theAccount)
if accountType is equal to "POP" then
set theChoices to {"Password", "Kerberos 4", "Kerberos 5", "KPOP", "MD5"}
set theDefault to {"Password"}
else if accountType is equal to "IMAP" then
set theChoices to {"Password", "Kerberos 4", "Kerberos 5", "MD5"}
set theDefault to {"Password"}
else if accountType is equal to "SMTP" then
set theChoices to {"None", "Password", "Kerberos 4", "Kerberos 5", "MD5"}
set theDefault to {"Password"}
end if
set theResult to choose from list theChoices ¬
with prompt ¬
"Choose an authentication scheme for this " & accountType & " server. Most servers support 'Password' authentication." default items theDefault without multiple selections allowed
if theResult is not equal to false then
tell application "Mail"
set theScheme to item 1 of theResult
tell theAccount
if theScheme is equal to "Password" then
set authentication to password
else if theScheme is equal to "Kerberos 4" then
set authentication to «constant exutaxk4»
else if theScheme is equal to "Kerberos 5" then
set authentication to kerberos 5
else if theScheme is equal to "MD5" then
set authentication to md5
else if theScheme is equal to "None" then
set authentication to none
else if theScheme is equal to "KPOP" then
set authentication to «constant exutakpo»
end if
end tell
end tell
if accountType is equal to "SMTP" then
set theSMTPLogin to theUsername
set theSMTPPassword to thePassword
tell application "Mail"
tell theAccount
set user name to theSMTPLogin
set password to theSMTPPassword
set uses ssl to true
set port to 25
end tell
end tell
end if
end if
end getAndSetAuthenticationScheme
-- Handler for asking the user what POP deletion policy
-- they would like to use for their account.
on getDeletionPolicy()
set theResult to choose from list {"Immediately after being downloaded", "After a specified number of days", ¬
"When I remove them from the inbox", "Always leave them on the server"} ¬
with prompt ¬
"Choose a POP message deletion option:" default items {"Always leave them on the server"} without multiple selections allowed
return theResult
end getDeletionPolicy
-- Handler for setting the deletion policy established in getDeletionPolicy()
on setDeletionPolicy(theAccount, thePolicy)
tell application "Mail"
tell theAccount
if thePolicy is equal to "Immediately after being downloaded" then
set delete mail on server to true
set delayed message deletion interval to 0
else if thePolicy is equal to "After a specified number of days" then
set numberOfDays to my getDeletionInterval()
set delete mail on server to true
set delayed message deletion interval to numberOfDays
else if thePolicy is equal to "When I remove them from the inbox" then
set delete mail on server to true
set delete messages when moved from inbox to true
else if thePolicy is equal to "Always leave them on the server" then
set delete mail on server to false
end if
end tell
end tell
end setDeletionPolicy
-- Handler for asking the user what deletion interval they
-- would like to use, if they are setting up a POP account
on getDeletionInterval()
set theResult to display dialog "After how many days would you like POP messages to be deleted from the server?" default answer "30"
set numberOfDays to text returned of theResult as integer
return numberOfDays
end getDeletionIntervalHi amiaba, and a warm welcome to the forums!
I can't quite tell what it's doing, but open Keychain Access in Applications>Utilities, click on your Keychain on the left, put .mac in the search bar, once you find it, double click on it and click show password.
If you have no mail in there try this with Mail quit.
Drag this file to the Desktop...
/Users/YourUserName/Library/Preferences/com.apple.mail.plist
Start Mail & see if it steps you through it.
Not sure on the .uk thing, but is Date & Time>Time Zone set to the UK? -
Problem with creating new user in portal = portlet is not visible
Hi,
I've got a problem with creating new users in portal. In the Administer tab of the builder is the user portlet not visible.
How can I make this portlet visible?
Please Help
thank you...
GilbertHi..my problem slightly similar.
I created one new user, and didn't select anything from "Public Groups Assignment" and "Privilege Assignment" for him.
I expect the user will be a public user.
But, when he try to logged in the portal,
He cannot see all the PORTLETS related to database values..
All he can see just LINKS -that all in my portal right now beside the report from database that the user cannot see :)
So, what did i do wrong?
Plz Advise, and thanks.
Maybe you are looking for
-
User defined function in where IN clause
Hi, I have a Function who returns in priview: (1,2,3,4) Now i am using this function in SQL where clause Select from debug where id in debug.debug_process() On execute select i am getiing ORA-01722 invalid number , i understand that functions return
-
Problem pirnting longer images on a Stylus Pro printer
I amprinting on an Epson Stylus Pro 4800 using Photoshop CS3. Although the printer will accommodate lengths up to 55 inches, when I try to print something longer than 30 inches, Photoshop crashes. Epson adives the purchase of RIP software. Is there a
-
Can somebody help... I have a procedure which takes parameter as IN OUT extended object type .Below is the example. PROCEDURE p_save (example IN OUT xyz_obj) my object type "xyz_obj" have elements with other object types also, and that itself have ar
-
What are the procedures for getting Apple to wipe the data off my original ipad I bought two years ago. I had it stolen from a hotel room over the weekend and it is not password protected and no I did not download app to find it. Any hwlp would be gr
-
OBIEE Basic Questions !!
Hi All , I am new to OBIEE and comming from Business Objects background.I have following questions on each OBIEE tools .Really appreciate your answers Thanks Shivaji OBIEE Repository Qstns • If we change a table in DM (database) how do we refresh? If