Wednesday, April 15, 2009

Arabic font for PDF from iReport

Source:http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid=549512&topicid=6993189

RE:arabic font for PDF from iReport 11/04/2009 07:55 PM

this is the solution for the arabic font in reports

go to this web sit and see

http://anamasry.wordpress.com/2008/12/23/exporting-pdf-using-jasperreport-in-arabic/

the method is

1- download the Arial.ttf font

2- put it in the folder of iReport/fonts

3- in iReport hit reload fonts from the options menu

4- choose the arial font for pdf font for the text you want

5- follow the instructions in the above link

6- copy the arial font to Tomcat webapps in context name folder in WEB-INF/CLASSES

7- refresh opebravo

thats all

Sunday, March 29, 2009

Drives and folders not open by double click

Description - When you try to Open a drive it say (select a program from this list to open).If you try to open with IE means it will ope.

Reason - Due to Trojan

Remedies - 1.Open REGEDIT file(In Run type REGEDIT )
2.Find "MOUNTPOINTS2" using Ctrl + F
3.Delete the same(Include sub folders).MOUNTPOINTS2 always a folder.
4.Repeat the process unless all the "MOUNTPOINTS2" are deleted
5.Check now.
6.RESTART

Wednesday, March 25, 2009

Display Logic

http://sourceforge.net/forum/forum.php?thread_id=3100835&forum_id=549512
Question-
Hi,

I want to hide a field in screen based on another field, (string) starts with CAN.
Example -- City like 'CAN%'

I don't know what was the syntax for 'like' in display logic?
Help me.

Answer-

Hi,

Display logic in field tab is used for this purpose. Display logic is a boolean expression that make the field visible when it is evaluated to true. This expression is pseudo javascript (in fact is javascript, but for comparison operators it is used = and ! instead of == and !=). Thus the starts with comparison must be implemented in javascript, for example:

@YourFieldToCompare@.substr(0,3)!'CAN'

This would hide the field in case its value start wiht CAN (note it is case sensitive)

Friday, March 13, 2009

Fedora server- Disable Firewall,Restart

Stop Firewall
/sbin/chkconfig iptables off
/sbin/service iptables stop

restart server

/sbin/shutdown now -r

Wednesday, March 11, 2009

List validation based on the user logins

http://sourceforge.net/forum/forum.php?thread_id=2959693&forum_id=549512

try the following:

AD_Ref_List.Value NOT IN (
case when (@AD_Role_ID@ = 100021)
then ''
else 'Perm'
)

You have to understand how it works:
-your statement was: if role is 100021 then no value is allowed, for other roles only "Perm" is allowed. So I guess your description was wrong: when you login with 100021 the drop-down list is empty, otherwise only 'Perm' is shown
-my statement is: if role is 100021 then no values are excluded, for other roles 'Perm' is excluded (it matches with your original requirements)