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

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

שינוי אופרטור ללא כניסה ל - edit data provider

More
18 years 5 months ago #974 by shahar
חג שמח לכולם

ברצוני לדעת האם ניתן לשנות אופרטור (equal to,grater than,in וכו') ללא כניסה ל"edit data provider" לצורך שינוי ב conditions ?

דוגמא לצורך המחשה:
יש לי דו"ח אשר בודק סטטוס של מנויים למשל וכאשר אני מרענן אותו (refresh data) השדה של מספר המנוי מוגבל למנוי אחד בלבד (equal to) ,כלאמר אם ברצוני להזין מספר מנויים עלי להיכנס דרך ה "edit data provider" ל conditions ולשנות ל "in list" .
האם ניתן ליצור שדה דינמי שבו ניתן לשנות את האופרטור ע"י בחירה מתוך רשימת אופרטורים
ללא הצורך להיכנס ל conditions?

תודה רבה

שחר

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

More
18 years 5 months ago #975 by תמיר
הי,

זה בלתי אפשרי בדרך הרגילה, אך אפשרי באמצעות ה BO SDK.

תמיר

נ.ב,

למה שמלכתחילה לא תבחר ב in list ?

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

More
18 years 5 months ago #976 by shahar
היי תמיר
הבנתי משי ויוחנן שהיה קורס חבל על הזמן

ולענייננו
תוכל להרחיב מעט על הדרך ה"לא רגילה"
אני לא יכול לשלוט על כל דו"ח שמישהו בונה ולכן לא תמיד קיימת האופציה של in list

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

More
18 years 5 months ago #985 by תמיר
שחר,לגבי שאלתך:

באמצעות הSDK, אתה יכול להרכיב condition שמורכב מ אופרנדים ואופרטור.

לדוגמא:

city='US' x
ה x למען יישור

במקרה הזה ה= הוא האופרטור. על ידי תכנות, אתה יכול לקבוע איזה אופרטור להשתמש.

להרחבה:תבקש מיוחנן שיראה לך את הספר של הקורס ותסתכל בעמוד 36.

תמיר

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

More
18 years 5 months ago #986 by shahar
ניסיתי
לא עובד
כניראה כיוון שלא הייתי בקורס.
אם יהי לך זמן פנוי אני אשמח אם תוכל לשלוח דו"ח BO כדוגמא

המון תודה

שחר

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

More
18 years 5 months ago #992 by תמיר
הי,

לגבי הקורס, עדיין לא מאוחר מדי  ;D

לגבי בקשתך, אני אשתדל למצוא זמן ולהכין דוגמא.


תמיר

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

More
18 years 5 months ago #996 by תמיר
שחר, עם איזה גרסא אתם עובדים?

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

More
18 years 5 months ago #1000 by shahar
גרסה 11 של ה bo
אנחנו עובדים גם עם ה webi וגם ברגיל

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

More
18 years 4 months ago #1041 by תמיר
יכול להיות ששבוע הבא יהיה לי ואשתדל להכין לך דוגמא

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

More
18 years 4 months ago #1052 by Me
תמיר תרשה לי לחלוק עלייך ויש כבוד
מתוך ה HELP
שים לב זה READ ONLY לכן לפי דעתי לא ניתן

Returns a string indicating the operator for the condition.

Definition

Operator As String (Read-only)

Syntax

var.Operator

var is the name of the Condition variable that you declare.

Comments

The operator may have any of the following String values:

"Equal to" "Different from"
"Greater then" "Greater than or equal to"
"Less than" "Less than or equal to"
"Between" "Not between"
"In list" "Not in list"
"Is null" "Is not null"
"Matches pattern" "Different from pattern"
"Both" "Except"
"Null" "None"

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

More
18 years 4 months ago #1055 by תמיר
בזה אתה צודק, אך הרשה לי לחלוק עליך (ויש כבוד)

אני סבור ש conditions.add יעשה את העבודה

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

More
18 years 4 months ago #1056 by Me
נכון זה המעקף
לא לשכוח REMOVE
אבל את זה אנחנו יודעים
מה שחשוב ששואל השאלה יידע

אולי זה יעזור

Sub main()
Dim Cond As Condition
Dim Conds As Conditions
Set Conds = ThisDocument.DataProviders(1).Queries(1).Conditions

For i = 1 To Conds.Count
  Set Cond = Conds.Item(i)
X = MsgBox("Object:" & Cond.Object & "Operator: " & Cond.Operator, vbYesNoCancel, "Delete Condition?")
If X = 6 Then Conds.Remove
Conds.Add "Class Name", "Object Name", "See Remarks Down "

Next
End Sub


'"Equal to"      "Different from"
'"Greater then"      "Greater than or equal to"
'"Less than"    "Less than or equal to"
'"Between"      "Not between"
'"In list"      "Not in list"
'"Is null"      "Is not null"
'"Matches pattern"  "Different from pattern"
'"Both"          "Except"
'"Null"          "None"

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

More
18 years 4 months ago #1057 by תמיר

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

More
18 years 4 months ago #1058 by shahar
היי
תסתכל בבקשה על הקובץ שצירפתי.
זה פיתרון sql - י שמתאים לכל הטבלאות בעלות שדה record_date
מה דעתך?

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

More
18 years 4 months ago #1060 by תמיר
פתרון יפה, אבל חסר לך את כל הקטע של ה case when

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

More
18 years 4 months ago #1061 by Me
מחייב בדיקה
אולם הבעיה שאני יכול לחשוב עלהם
זמני ביצוע ה OR יהרוג את השאילתא

חוצמזה בדקתי וזה עובד יפה מאוד

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

More
18 years 4 months ago #1062 by Me
עדין חסרה לי התמונה הכללית
מה הסיבה שאתה צריך את הפתרון

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

More
18 years 4 months ago #1063 by shahar
חברים
הפתרון מבוצע ב designer בחלק של ה where (ב  select ניתן להוסיף את ה operand הנבחר)
זמן הריצה לא נפגע בגלל ה or (נבדק)

לגבי ה  case when ,
האם ניתן ב sql לשלב את ה case ולהפעיל פעולות ב where ?

לגבי שאלת me אנחנו צריכים את הפתרון הנ"ל לדוח"ות המשמשים user-ים שלא כותבים sql ביום יום ולא מפתחים ב bo  אבל רוצים בכל זאת לקבוע את ה operand לפי הצורך.

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

More
18 years 4 months ago #1067 by Me
אין בעיה לשים CASE ב WHERE
מה שעובד מול הDB יעבוד ב BO
לא לשכוח בסך הכל מחולל SQL הכלי
למרות שלמעמים הוא קצת מעצבן

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

Moderators: Yoav
Time to create page: 0.355 seconds