بتاريخ: 1 ديسمبر 201015 سنة comment_204535 .What i want to do is to create a tree to view each client with all contracts belongs to himthe tables im using are Clients and ContractsClients Table : Client_id,Client_nameContracts Table: contract_id.Client_id,Contract_title ?Is there anyway to do that.Looking forward to hearing from you P.S: IM using oracle 10g تم تعديل 1 ديسمبر 201015 سنة بواسطة ENG.Ahmed G.Shahbo تقديم بلاغ
بتاريخ: 1 ديسمبر 201015 سنة comment_204539 good evening sirall you need to create your treejust create new block and add hierarchical treeadd this code in when-new-form-instance declare a_node ftree.node; b_node ftree.node; htree item; begin htree := find_item('tree name'); for i in (select * from Clients ) loop a_node :=ftree.add_tree_node((htree, Ftree.ROOT_NODE, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, i.Client_name, NULL, i.clint_id); for j in(select * from Contracts where contract_id.Client_id=i.clint_id) loop b_node :=ftree.add_tree_node((htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, NULL, j.contract_id); end loop; end loop; end; تقديم بلاغ
بتاريخ: 1 ديسمبر 201015 سنة كاتب الموضوع comment_204550 ,Dear Sir .Did you try to compile that code, Because each time i try to compile it it gives me Error with the ';' Can you please check it and update meThanks and Regards good evening sirall you need to create your treejust create new block and add hierarchical treeadd this code in when-new-form-instance declare a_node ftree.node; b_node ftree.node; htree item; begin htree := find_item('tree name'); for i in (select * from Clients ) loop a_node :=ftree.add_tree_node((htree, Ftree.ROOT_NODE, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, i.Client_name, NULL, i.clint_id); for j in(select * from Contracts where contract_id.Client_id=i.clint_id) loop b_node :=ftree.add_tree_node((htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, NULL, j.contract_id); end loop; end loop; end; تقديم بلاغ
بتاريخ: 1 ديسمبر 201015 سنة comment_204562 ok try thisassume that you have a hierarchical tree call it "tree7" oknow in trigger when-new-form-instance or anywheretype this code and check the column name in code declare a_node ftree.node; b_node ftree.node; htree item; begin htree := find_item('tree7'); for i in (select * from Clients ) loop a_node :=ftree.add_tree_node(htree, Ftree.ROOT_NODE, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, i.Client_name, NULL, i.clint_id); for j in(select * from Contracts where Client_id=i.clint_id) loop b_node :=ftree.add_tree_node(htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, NULL, j.contract_id); end loop; end loop; end; EX. on hr schema تم تعديل 1 ديسمبر 201015 سنة بواسطة HELL-BOY تقديم بلاغ
بتاريخ: 7 ديسمبر 201015 سنة كاتب الموضوع comment_204835 Thanks So Much for your support and care , i did fixed the code from the first time and its working propaply now .. but can i ask for something more if you dont mindI need the color of the node to be changed when one condition happen. Like when its the time for the renewal date of the contract , i want the color of the node for that client name to be changed to different color .. like RED, So the user can notice it and send him an E-mail with the renewal date .? Is it possible ok try thisassume that you have a hierarchical tree call it "tree7" oknow in trigger when-new-form-instance or anywheretype this code and check the column name in code declare a_node ftree.node; b_node ftree.node; htree item; begin htree := find_item('tree7'); for i in (select * from Clients ) loop a_node :=ftree.add_tree_node(htree, Ftree.ROOT_NODE, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, i.Client_name, NULL, i.clint_id); for j in(select * from Contracts where Client_id=i.clint_id) loop b_node :=ftree.add_tree_node(htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, NULL, j.contract_id); end loop; end loop; end; EX. on hr schema تقديم بلاغ
بتاريخ: 7 ديسمبر 201015 سنة comment_204840 i think there is no any way to change the node color in run timebut we can change the node icon by using if condition ex if contract_date between any_date and any_date then b_node :=ftree.add_tree_node (htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, 'your icon here', j.contract_id); else b_node :=ftree.add_tree_node( htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, 'your another icon here', j.contract_id); end if; i hope this is help you تم تعديل 7 ديسمبر 201015 سنة بواسطة HELL-BOY تقديم بلاغ
بتاريخ: 8 ديسمبر 201015 سنة كاتب الموضوع comment_204887 .Thanks for the idea but the icons didnt show with me . i think something is wrong Can you please make a sample tree with this option and send it to me .. i also think that some settings need to be changed to make me able to see the icons during the run time. ? can u please tell me how to do thatAlso cant we make another option instead of the icon option .. when the condition happen the color of the contract title name that shows in the node change into another color .. Is that possible .Lookng forward to hearing from you Ahmed. i think there is no any way to change the node color in run timebut we can change the node icon by using if condition exif contract_date between any_date and any_date then b_node :=ftree.add_tree_node (htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, 'your icon here', j.contract_id); else b_node :=ftree.add_tree_node( htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, 'your another icon here', j.contract_id); end if; i hope this is help you تم تعديل 8 ديسمبر 201015 سنة بواسطة ENG.Ahmed G.Shahbo تقديم بلاغ
بتاريخ: 9 ديسمبر 201015 سنة كاتب الموضوع comment_204940 I Created an icon file and i can see the icon when i add it on any button . but i cant see the icon on the tree .. can you please tell me what is the problem? i think there is no any way to change the node color in run timebut we can change the node icon by using if condition exif contract_date between any_date and any_date then b_node :=ftree.add_tree_node (htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, 'your icon here', j.contract_id); else b_node :=ftree.add_tree_node( htree,a_node, Ftree.PARENT_OFFSET, Ftree.LAST_CHILD, Ftree.EXPANDED_NODE, j.Contract_title, 'your another icon here', j.contract_id); end if; i hope this is help you تقديم بلاغ
بتاريخ: 9 ديسمبر 201015 سنة comment_204959 i have recorded the method to create iconic treeyou can download it from herehttp://www.mediafire.com/?tn33th6i8cn7omt تم تعديل 9 ديسمبر 201015 سنة بواسطة HELL-BOY تقديم بلاغ
بتاريخ: 11 ديسمبر 201015 سنة كاتب الموضوع comment_205036 Thanks Brother .. i will download and check it now .. I really appreciate your effrots to help me. I will keep you updated with the resultsOnce Again Thanks i have recorded the method to create iconic treeyou can download it from herehttp://www.mediafire.com/?tn33th6i8cn7omt تقديم بلاغ
بتاريخ: 11 ديسمبر 201015 سنة كاتب الموضوع comment_205038 !! The file is corrupted ?Can you try another way to send me the file please Thanks i have recorded the method to create iconic treeyou can download it from herehttp://www.mediafire.com/?tn33th6i8cn7omt aaa.bmp تقديم بلاغ
بتاريخ: 11 ديسمبر 201015 سنة comment_205069 try this linkhttp://www.multiupload.com/S8IO61FV1V تقديم بلاغ
بتاريخ: 12 ديسمبر 201015 سنة كاتب الموضوع comment_205098 Thanks i got the file Oracle.MP4 BUt its not working with normal windows media player , i will download another media player to check it . and Update you . Thanks Again try this linkhttp://www.multiupload.com/S8IO61FV1V تقديم بلاغ
بتاريخ: 12 ديسمبر 201015 سنة كاتب الموضوع comment_205101 !!!I downloaded Winamp and Real Player but still not working .. only playing on real playing but wihtout video screen !!IS there any other ways to send me the way to create iconic Tree.. Like Word File with steps to follow or tell me the name of the media player that u r using and i will download it . otherwise the file maybe corrupted and thats why its not working ont the media players im downloading. Waiting for your reply . تقديم بلاغ
بتاريخ: 15 ديسمبر 201015 سنة كاتب الموضوع comment_205291 Thanks Waleed , I saw the video and i try ur way asap. will keep you updated with the results .. bas ISA it will work !!!I downloaded Winamp and Real Player but still not working .. only playing on real playing but wihtout video screen !!IS there any other ways to send me the way to create iconic Tree.. Like Word File with steps to follow or tell me the name of the media player that u r using and i will download it . otherwise the file maybe corrupted and thats why its not working ont the media players im downloading. Waiting for your reply . تقديم بلاغ
بتاريخ: 22 ديسمبر 201312 سنة comment_244475 انا مش عارف اشوف التريجر بيظهر عندى (encoded program unit has unknown format) وجزاكم الله خير على المجهود تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.