Jump to content

laneo

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About laneo

  • Rank
    novice
  1. Same problem here ! There is no way that i can make drop down lists editable using IWP. Is it that nobody is using iwp with drop down lists or am i missing something ?
  2. First of all, i dont think that this post fits anywhere. Please move it if you find a proper place for it. Well, the subject says it all. Changing the "Show FileMaker Quick Start Screen" on the preferences doesnt do anything. I've trashed the FM 10 and reinstalled it, nothing changes. Any suggestions ? Thanks
  3. ok... i've been trying harder and i've found out that there are some lines that makes the problem. to make it clear, i can register the function if i remove the lines in [color:blue]blue (but off course the function doesnt work). If i leave one of them then the function is not registered: [color:green]RegisterGroovy( "SendEmailWithAttachments( from ; to ; subject ; body ; smtpHost ; attachmentPath )" ; "import javax.mail.*;¶ import javax.mail.internet.*;¶ ¶ Properties props = new Properties();¶ props.setProperty("mail.smtp.host", smtpHost);¶ ¶ [color:blue]MimeMessage msg = new MimeMessage(Session.getDefaultInstance(props));¶ Multipart content = new MimeMultipart();¶ // first the message body¶ [color:blue]MimeBodyPart bodyPart = new MimeBodyPart();¶ bodyPart.setText(body);¶ content.addBodyPart(bodyPart);¶ // then the attachment¶ [color:blue]MimeBodyPart attachmentPart = new MimeBodyPart();¶ attachmentPart.attachFile(attachmentPath);¶ content.addBodyPart(attachmentPart);¶ msg.setContent(content);¶ msg.setSubject(subject);¶ msg.setFrom(new InternetAddress(from));¶ [color:blue]msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));¶ Transport.send(msg);¶ return true" ) this is as far as i can go... i dont know anything of groovy nor java, so any help will be much appreciated.
  4. I thought that my question was going to be misunderstood as soon as i wrote reserialize. I dont really want to do a manual researialization, what i want to do is to sort the records and get them serialized according to the current sort (dynamically). I read that the function Get (RecordNumber) returns the number of the current record in the current found set. And i thought that a Sort is a way to create a Found Set, so this way i could have a serial for each record that changes dynamically as a result of a Sort. So i made a calculation field with the get (RecordNumber) hoping that when i sort the records i would have that field with a serial number in the current sort order. But this isnt working. Should it work or Get (RecordNumber) is not the function im looking for ? Thanks again for all the help.
  5. Thank you both for the big help. The movie on that link was also very helpful. Anyway, I still want to know how to serialize sorted records. I thought that this could be done with the Get (RecordNumber) function. Here is the explanation of what i was trying to accomplish: [color:green]Anyway, im still stuck with one thing. How can i get the records sorted by date and serialize them from this result ? I thought that i could do that by sorting the records and setting a calculation field (lets name it ID_by_date) using the function: Get (RecordNumber). But i cant get it to work: The content of ID_by_date doesnt change after i sort the records. Thanks again
  6. Hey, thank you both for the help. The GetNthRecord was just what i was looking for. My db is just for daily expenses/incomings. So i solved this by just looking on the previous record balance. (I dont need to define any periods... its simpler than that). Anyway, im still stuck with one thing. How can i get the records sorted by date and serialize them from this result ? I thought that i could do that by sorting the records and setting a calculation field ID_by_date using the function: Get (RecordNumber). But i cant get it to work: The content of ID_by_date doesnt change after i sort the records. Any ideas ? Thanks again
  7. Hi all, I've been trying for a week to accomplish something that i suppose its easy, but i just cant make it work. I have a layout with 2 tables, on for incoming $ and another one for expenses. I also have a total amount money (in a global field), and a balance of the incomes and expenses for that particular field. What im trying to do is to have a field saying how much money was there before those incomes/expenses, and another one saying how much was left. I just cant find a way to do this, any ideas ? Hope my english was clear enough. Thanks for your time
  8. that was really really helpfull, thanks a lot ! Im having problems registering "Send Email With Authentication" script using the "Copy" function. I just cant get it registered. I've tried it with other scripts and it works fine, i guess there's something wrong with this particular script ? The function gets registered if i write this in the set field variable: [color:green]RegisterGroovy( "SendEmailWithAuthentication( from ; to ; subject ; htmlBody ; attachmentPath ; smtpHost ; username ; password )" ; "something") but if instead of [color:green]"something" i write the actual script that its automatically copied it just doesnt work. here it is in case you want to take a look at it: [color:green]RegisterGroovy( "SendEmailWithAuthentication( from ; to ; subject ; htmlBody ; attachmentPath ; smtpHost ; username ; password )" ; "import javax.mail.*;¶ import javax.mail.internet.*;¶ ¶ Properties props = new Properties();¶ props.setProperty("mail.smtp.host", smtpHost);¶ props.setProperty("mail.smtp.auth", "true");¶ props.setProperty("mail.smtps.auth", "true");¶ ¶ ¶ MimeMessage msg = new MimeMessage(Session.getDefaultInstance(props));¶ Multipart content = new MimeMultipart();¶ // first the message body¶ MimeBodyPart bodyPart = new MimeBodyPart();¶ bodyPart.setContent(htmlBody, "text/html");¶ content.addBodyPart(bodyPart);¶ // then the attachment¶ if (attachmentPath) {¶ MimeBodyPart attachmentPart = new MimeBodyPart();¶ attachmentPart.attachFile(attachmentPath);¶ content.addBodyPart(attachmentPart);¶ }¶ msg.setContent(content);¶ msg.setSubject(subject);¶ msg.setFrom(new InternetAddress(from));¶ msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));¶ ¶ Transport transport = Session.getDefaultInstance(props).getTransport("smtp");¶ int port = -1; // use the default port¶ transport.connect(smtpHost, port, username, password);¶ transport.sendMessage(msg, msg.getAllRecipients());¶ transport.close();¶ return true" ) Thanks again for your help !
  9. Hi, The subject is telling it: im a newbie. I've been working with fm since a couple of weeks and i want to use the "send email with authentication" script in fm (i just want to email some lists and i cant find a way to do that in rows not using html). The thing is that i cant understand how to install this script. I dont even know what to do with the text on the first page that starts like this: [color:green]import javax.mail.*; import javax.mail.internet.*; Properties props = new Properties(); props.setProperty("mail.smtp.host", smtpHost); props.setProperty("mail.smtp.auth", "true"); props.setProperty("mail.smtps.auth", "true"); and im not even sure if the "COPY" option is the best for me to choose and where should i copy it. this forum has been really helpfull... and ive been trying not to post but thisone is too out of my current understanding of fm and i just cant figured it out. any help/leads will be appreciated. (finally.. sorry about my english!)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.