הצטרפו לקבוצות שלנו לקבלת עדכונים מרוכזים פעם בשבוע:

ווטסאפ:
http://wa.dwh.co.il
טלגרם:
http://telegram.dwh.co.il

בעיה בcase

More
14 years 5 months ago - 14 years 5 months ago #7267 by תהילה
בעיה בcase was created by תהילה
שלום לכולם,
מצאתי באינט סינטקס של case in @prompt, אך הבעיה היא שאני לא מצליחה להתגבר על שגיאה.
האם אתם יכולים לעזור לי בבקשה ?

dbo_Dmn_Ovdim_Last.LOGI_PAIL = (case when @Prompt('is true','N',,mono,free,not_persistent,{'1'}) ='1' and dbo_Dmn_Ovdim_Last.TEXT_StHaasaka = @Prompt('גימלאים','A',,mono,free,not_persistent,({'גימלאים' = ({'גימלאי' then 'true' end )

תודה רבה לכם על העזרה!
Last edit: 14 years 5 months ago by תהילה. Reason: הוספת תמונה

Please התחברות to join the conversation.

More
14 years 5 months ago - 14 years 5 months ago #7270 by Yoav
Replied by Yoav on topic תגובה: בעיה בcase
לא מוצא הגיון ב-prompt שלך מה את מנסה לבנות בדיוק ?

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il
Last edit: 14 years 5 months ago by Yoav.

Please התחברות to join the conversation.

More
14 years 5 months ago #7273 by תהילה
אני צריכה להגדיר prompt שהוא אמור להציג true of false.
כאן מופיעה רק חלק הראשון של true.

בעיה היא שזה בתוך הcase שהוא שולף שני פרמטרים עם type שונים.

Please התחברות to join the conversation.

More
14 years 5 months ago #7274 by Yoav
Replied by Yoav on topic תגובה: בעיה בcase
תני הסבר מפורט ואוכל לעזור לך

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il

Please התחברות to join the conversation.

More
14 years 5 months ago - 14 years 5 months ago #7275 by תהילה
קודם כל רציתי להגיד לך תודה על העזרה שלך!!.
אני צריכה להגדיר תנאי (פילטר) בצורה prompt
case when logi_pail=1 and TEXT_StHaasaka ='gimlai' or logi_pail=0 and TEXT_StHaasaka ='Gimlaim' then true else false end

רק שערכים בבסיס נתונים טקסטואלי מופיעים בעברית.

המטרה היא קבלת אופציה בבניית הדוח שהיא תהיה true or false
Last edit: 14 years 5 months ago by תהילה.

Please התחברות to join the conversation.

More
14 years 5 months ago #7277 by Yoav
Replied by Yoav on topic תגובה: בעיה בcase
השאלה היא איזה prompt אתה רוצה להפעיל,במצב של true ,
prompt x ?

ובמצב של false פרומפט אחר ?

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il

Please התחברות to join the conversation.

More
14 years 5 months ago #7278 by תהילה
את הcase שמופיע למאלה אני צריכה להכניס לתוך הprompt.
אם צריך פרמטרים לfalse אז:
logi_pail=o and TEXT_StHaasaka! ='Gimlaim'

Please התחברות to join the conversation.

More
14 years 5 months ago #7279 by Yoav
Replied by Yoav on topic תגובה: בעיה בcase
תני הסבר עסקי מה את מנסה לעשות ולא את הקוד

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il

Please התחברות to join the conversation.

More
14 years 5 months ago #7280 by תהילה
יש לי עובדים שהם זכאים לגמלאי או לא זכאים.
כאשר משתמש ירצה לבנות את הדוח, הוא צריך לקבל את האופציה "זכאי לגמלאי -true או לא זכאי לגמלאי - false

Please התחברות to join the conversation.

More
14 years 5 months ago #7281 by Yoav
Replied by Yoav on topic תגובה: בעיה בcase
תצרי את משפט ה-case when באובייקט לפי הלוגיקה שלך (אידיקצייה לזכאות )

את ה-Prompt תבססי על האובייקט הזה

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il

Please התחברות to join the conversation.

More
14 years 5 months ago #7282 by תהילה
זה מה שעשיתי.
הבעיה היא בשדה TEXT_StHaasaka, אני מקבלת הודעת שגיאה (ראה צילום מסך)

dbo_Dmn_Ovdim_Last.TEXT_StHaasaka = (case when @Prompt('גימלאים','A',,mono,free,not_persistent,({'גימלאים' = ({'גימלאי' then 'true' end)

Please התחברות to join the conversation.

More
14 years 5 months ago #7283 by Yoav
Replied by Yoav on topic תגובה: בעיה בcase
לא,את עושה את ה-case ביחד עם ה-prompt

תצרי אותו בנפרד ואת הפרומפט תבני עליו

prompt=your_field_with_the_case

Best Regards

Yoav Yahav

BI & DWH & SAP Business Objects

+972-52-3562982

bi.bobjects@gmail.com
thebobaba.blogspot.com/
www.bics.co.il/193657/sapbicoeeng
www.bo.dwh.co.il

Please התחברות to join the conversation.

More
14 years 5 months ago #7284 by תהילה
תודה רבה לך! :)

Please התחברות to join the conversation.

Moderators: Yoav
Time to create page: 0.445 seconds