หน้าเว็บ

วันจันทร์ที่ 4 กุมภาพันธ์ พ.ศ. 2556

Axapta X++ : Join Table ให้แสดงในอีก Form เฉพาะ Item ที่เลือก

ตัวอย่างใน SCI_QUOTATION
การทำงานคือจะทำให้อีก Form ที่มี Grid แสดงข้อมูล ของ Code หรือ Item ที่เลือกเท่านั้น เช่น มี Tab 2 Tab คือ Overview และ Line เมื่อคลิ๊กที่ Item Overview แล้วเลือก Tab Line ก็ให้แสดงข้อมูลใน Line เฉพาะ ของ Item หรือ code นั้น ๆ
1. ทำการ Join Table ที่ Data Sources ที่ Table รองตามรูป













2. ทำการสร้าง Relation ที่ Table รอง ด้วยการ New ---> Normal ตามรูป

3. กำหนด Field และ RelatedField โดยเลือกตาม Field ที่ใช้ Primary ที่เป็นตัวหลัก ตามรูป


ทดลองรัน Form ดู ครับ

Axapta X++ : สร้าง Field Time

สร้าง Field เป็น Time และ ExtendedDataType เป็น timeOfDay

Code ยัดเวลาเข้าไปใช้

Name Table.Field Table = timenow();

ตัวอย่างใน Project SCI_QUOTATION

VB 2008 : Problem Unable to convert MySQL date/time

Unable to convert MySQL date/time value to System.DateTime
Problem
You receive the following message when running your application:
Unable to get records. Unable to convert MySQL data/time value to System.DateTime.
In certain versions of MySQL, date values are saved as 0000-00-00 instead of a NULL which causes an error when running your application.

Problem
Step 1: Make sure that date columns in the MySQL database either contains all valid values or contain NULL.
Step 2: Add the “Allow Zero Datetime=true” attribute to your database connection string in your application’s Web.config file, e.g.:


  1. <add name="Databasesalika1"
  2.      connectionString="Data Source=qaxp-net;Port=3306;
  3.      Database=salika;
  4.      User Id=ironspeed1;Password=ironspeed1;
  5.      Allow Zero Datetime=true"
  6.      providerName="MySql.Data.MySqlClient"
  7. />

Ubuntu : Set ให้เข้า Phpmyadmin จากเครื่องอื่นได้

Set ให้เข้า Phpmyadmin จากเครื่องอื่นได้ เช่น จาก VB เข้ามาใช้งานได้
ใน Ubuntu แก้ไข
1.แก้ไข my.cnf (อยู่ที่ /etc/mysql/) nano /etc/mysql/my.cnf
แก้ตรง bind-address จาก 127.0.0.1 เป็น ip ที่ถือครองอยู่ของ network ฝั่งที่ต้องการให้ติดต่อเข้ามาได้ เช่น 192.168.0.244
2. restart mysql-server (/etc/init.d/mysql restart)
อ้างอิง : http://www.debianhelp.co.uk/remotemysql.htm
3. เข้า phpmyadmin ของเครื่อง Local ไปที่ Database mysql table : user
Edit ตรงชื่อ ที่ ที่เราต้องการใช้ติดต่อเข้ามาเช่น sa หรือ root
และแก้ Host ให้เป็น Ip ที่เราต้องการให้เข้ามาได้ เช่น 192.168.0.46 หรือใส่เป็น % คือให้เข้ามาได้หมด
4. Home ของ Phpmyadmin เลือก Tab Privileges จะมี Menu ด้านล่างให้คลิก reload the privileges คลิกรอจนเสร็จ
ทดลองเข้าใช้งานจากเครื่องอื่น

VB 2008 : DateTimePicker = Null ได้ไหม

Set by :
DateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom
DateTimePicker.CustomFormat = " "

กลับมาเหมือนเดิม
DateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Long
OR
DateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom

http://greatfriends.biz/webboards/msg.asp?id=59566

วันจันทร์ที่ 7 มกราคม พ.ศ. 2556

Windows services


Starting and stopping

On the command line (cmd.exe)

A Windows service can be started and stopped on the command line (if it is not disabled):
net start name-of-service
net stop name-of-service

Opening the services panel

Type services.msc in the Start-->run box.

Listing services

There are at least three ways to determine what services are: the registry,sc and services.msc. available.

Using the registry

The installed services can be found in the registry under
\\HKEY_LOCAL_MACHNINE\SYSTEM\CurrentControlSet\Services

Using sc

It's also possible to list the services with the command line utility sc:
C:\> sc query state= all | findstr SERVICE_NAME
Note: the space after state= is important. If omitted, sc tries to find a service named state=all which will, most probably, not exist.
If the state= all is omitted altogether, only running services will be returned.

services.msc

Typing services.msc into Run->Start, or into a cmd console, opens the Service panel which displays all installed services on the system.

Deleting a service

A service can either be deleted by removing all entries belonging to a service from the registry (see above). Or by using sc:
C:\> sc delete service-name
Thank For Web http://www.adp-gmbh.ch/win/misc/services.html

วันพฤหัสบดีที่ 13 ธันวาคม พ.ศ. 2555

How to set ICS Proxy


How to set ICS Proxy

How to set ICS Proxy?

Not that difficult if you know where to click :)

 Click on Wi-Fi
 Click on your selected WIFI and hold. Select Modify network config.

 Check [Show advanced options]
Tadaaaaaa.... put in your proxy server here.... you dont have to root to do this :)

Thank ! for web http://jjpda.blogspot.com/2012/05/how-to-set-ics-proxy.html