outsmain / db-main

Dashboard Main Page
1 stars 0 forks source link

Create a "Manage Objects" Page #32

Open outsmain opened 10 years ago

outsmain commented 10 years ago
MrPower-Dev commented 10 years ago

สอบถามครับ

เมื่อเรา selected "Brand" เพื่อดึงข้อมูลจาก ATTRIB_TYPE.model มาแสดงใน list box ของ Model อยากสอบถามว่า ต้องเอาค่าที่เรา selected "Brand" ไป filter กับ ATTRIB_TYPE.brand แล้วเอา ATTRIB_TYPE.model ที่ได้มาแสดงใน list box ของ Model หรือ ไม่ต้อง filter แสดงข้อมูล ATTRIB_TYPE.model ทั้งหมดใน list box ของ Model ครับ

ขอบคุณครับ

outsmain commented 10 years ago

เอา "Brand" มา filter "Model" และเรียงไปยัง list box ถัดไปเรื่อยๆ ครับ

MrPower-Dev commented 10 years ago

สอบถามครับ

"Attribute" values are unique "ATTRIB_LIST.name" for selected "Brand", "Model", "Version" and "Group" join by ATTRIB_TYPE.name <> "GROUP"

คือ ATTRIB_LIST.ATTRIB_TYPE_ID=ATTRIB_TYPE.ID AND ATTRIB_TYPE.NAME<>'GROUP' จากนั้น filter จากข้อมูลที่ select

แล้ว "Group" จะต้อง filter ยังไงครับ

ขอบคุณครับ

outsmain commented 10 years ago

เหมือนกันกับ "Attribute" แต่เปลี่ยนเงื่อนไขที่ใช้ join เป็น ATTRIB_LIST.ATTRIB_TYPE_ID=ATTRIB_TYPE.ID AND ATTRIB_TYPE.NAME='GROUP' และ filter เฉพาะ Brand, Model และ Version ครับ

MrPower-Dev commented 10 years ago

สอบถามครับ

ในส่วนของ "Attribute" กับ "Type" ดึงข้อมูลจาก database โดยทำการ group by ถ้าทำการ select listbox "Attribute " หรือ "Type" แล้วทำการกดปุ่ม Edit เพื่อแก้ไขข้อมูล จากนั้นทำการกดปุ่ม Save

อยากสอบถามว่าข้อมูลที่แก้ไขต้องไปแก้ไขในดาต้าเบสด้วยหรือไม่ หรือแค่เพิ่มอย่างเดียว ถ้าแก้ไขจะต้องแก้ไขยังไงครับ เพราะดึงข้อมูลจากดาต้าเบสโดยทำการ group by

ขอบคุณครับ

outsmain commented 10 years ago

ต้องทั้งเพิ่มและแก้ไขได้ โดยกรณีการแก้ไขให้อ้างอิงด้วย "ATTRIB_LIST.id" ของ record ที่โหลดลงมาแสดงใน "Attribute" list box และค่าใน "Attribute" ไม่ต้อง group by ครับ