Friday, May 14, 2010

Adding Find\Filter functionality on Display method

Adding Find\Filter functionality on Display method

Override Context method of Form control which is using display method and provide code for filter. E.g I have done below for PhysicalInvent field of InventOnHandItem form.

void context()
{

int selectedMenu;
real test;
formrun fr;
Args ag;
Itemname strtext;
querybuilddataSource qb1;
queryrun qr;
query q;
PopupMenu menu = new PopupMenu(element.hWnd());
int a = menu.insertItem('Find');
int b = menu.insertItem('Filter');
int c = menu.insertItem('Remove Filter');


selectedMenu = menu.draw();

switch (selectedMenu)
{
case -1:
break;

case a:
ag = new args('SysformSearch');
fr = new formrun(ag);
fr.run();
fr.wait();
strtext = fr.design().controlName('FindEdit').valueStr();
if(strtext)
{
q = inventSum_Ds.query();
qb1 =q.dataSourceTable(tablenum(InventSum));
QB1.addRange(FieldNum(InventSum,PhysicalInvent)).value(SySQuery::value(strtext));
INVENTSUM_DS.query(Q);
INVENTSUM_ds.executeQuery();
}
break;

case b:
InventSum_DS.filter(FieldNum(InventSum,PhysicalInvent),Sysquery::value(InventSum.PhysicalInvent()));
break;

case c :
InventSum_DS.removeFilter();
break;

Default:
break;
}

}

17 comments:

  1. good one matrish...but will this work if there is no related physical field at all ?

    ReplyDelete
    Replies
    1. What has your government done to help save you from your financial instability? you strive to survive and yet you hear stories of how your leaders have become terror in your entities... is time to make a different. for will have made money, and we have also come to help you out from your long time of financial suffering. clearing of credit card is made available, software for hacking ATM machines, bank to bank hacking and transfer, change your school grade and become something useful in the society. we also have other form of services such as Facebook hack, whats-app hack, twitter hack, i cloud hack, tracking of smart phones, hacking CCTV, installation of software on desktop and PC, snap-chat hack, Skype hack, wire wire, bitcoin account hack, erase your criminal record and be free for ever. database hack and many more. e-mail: cyberhackingcompany@gmail.com for your genuine hacking services and we shock we your findings.  

      Delete
    2. iI’m lauriel from New York, United States. I lost my job a few months back after my divorce with my wife. I tried everything positive to make sure I took good care of my kids but all failed, and I was in debt which makes everything worse. I was kicked out of my home and i had to live with my neighbor after pleading with her to allow me to stay with her for some days while I figured out how to get a home which she agreed to, but no one was willing to help anymore. I bumped into this page from google and I was excited about this, then I contacted the hackersBill Dean. I had just $200, so I pleaded with them to help me because of my condition but they never accepted. I believed in this, so I managed to pawn a few things and got $500. I ordered the $10,000 card and I got my card delivered to me by Ups 4 days later. I never believed my eyes! I was excited and upset as well, I managed to withdraw $2000 on the ATM and $2500 the second day. I went to Walmart and a grocery store and bought a couple of things for $3000. The card got blocked the third day and I contacted them and I was told it's a mistake from my end. I’m so happy, I have started all over again and have a good apartment with my kids you can contact him through is via email (globalatmcardhackingservice@gmail.com)or his whatsap contact (+1 301-887-5071)

      Delete
  2. i don't think so since it's just adding a range or a filter on the DS....

    ReplyDelete
  3. We need to filter on the field which is a display method, but in case a, you used Tables/ InventSum/ PhysicalInvent which is a physical field and not a display method.
    Is there any way that we could use a display method in a query because here the requirement is to filter on the display method field.

    ReplyDelete
    Replies
    1. HOW TO GET CROWN MAGIC ATM CARD

      UNLIMITED CASH I took the risk and in exactly 6 days later my card was delivered to my home address here and that same evening I used the card to take out $5000 for a start. It's been just 3 weeks and my life has taken a new shape. I simply want to say thank you to this electronic company and help spread their fame abroad. If you ever are in need of this card details on how to get yours today, YOu can also Whatsapp: +12134218707 email crown_technology@yahoo.com

      Delete
  4. Remove filter not working in my code.

    ReplyDelete
    Replies
    1. Hi Bhushan,
      Filter is also not working in my code any help

      Delete
  5. Hi Martish,
    code was not working any help will be appreciated

    ReplyDelete

  6. My name is Leah Brown, I'm a happy woman today? I told myself that any loan lender that could change my life and that of my family after having been scammed separately by these online loan lenders, I will refer to anyone who is looking for loan for them. It gave me and my family happiness, although at first I had a hard time trusting him because of my experiences with past loan lenders, I needed a loan of $300,000.00 to start my life everywhere as single mother with 2 children, I met this honest and God fearing online loan lender Gain Credit Loan who helped me with a $300,000.00 loan, working with a loan company Good reputation. If you are in need of a loan and you are 100% sure of paying the loan please contact (gaincreditloan1@gmail.com)

    ReplyDelete
  7. My name is Mrs Nadia Albert from Russia, And i am a happy woman today through the help of a Loan lender, Mr Russ Harry. I will refer any person that is looking for loan to this Loan firm. He gave  happiness to me and my family, i was in need of a loan of $500,000.00 to start my life all over as i am a single mother with 2 kids I met this honest and GOD fearing man loan lender that help me with a loan of $500,000.00 US Dollar, at a low Rate. He is a God fearing man, if you are in need of loan and you will pay back the loan please contact him Via E-mail-Elegantloanfirm@hotmail.com /Whatsapp number+393511617486

    ReplyDelete
  8. HELLO, I am Rebecca Michaelson by name living in Europe. Here is a good news for those interested. There is away you can earn money without stress contact (THOMAS FREDDIE) for a blank [ATM CARD] today and be among the lucky once who are benefiting from this cards. This PROGRAMMED blank ATM card is capable of hacking into any ATM machine anywhere in the world. I got my master card from a good Hacker on the internet, with this ATM Card I am able to collect $5000 dollars every day via contacts:
    +1 (985)-465-8370 {thomasunlimitedhackers@gmail.com}
    I was very poor but this card have made me rich and happy, If you want to get this opportunity to become rich and establish your business then apply for this Master card, I am so happy about this because i got mine last week and I have used it to get $240,000.00 dollars from THOMAS FREDDIE UNLIMITED Hackers is giving out the card just to help the poor and needy and they ALSO OFFER FINANCIAL ASSISTANCE. get yours from THOMAS FREDDIE UNLIMITED HACKERS today. Kindly contact them by Email thomasunlimitedhackers@gmail.com

    Thank You and God bless

    ReplyDelete
  9. I have being hearing about this blank ATM card for a while and i never really paid any interest to it because of my doubts. Until one day i discovered a hacking guy called Mr. Oscar White, he is really good at what he is doing. Back to the point, I inquired about The Blank ATM Card. If it works or even Exist. They told me Yes and that its a card programmed for random money withdraws without being noticed and can also be used for free online purchases of any kind. This was shocking and i still had my doubts. Then i gave it a try and asked for the card and agreed to their terms and conditions. Hoping and praying it was not fake. One week later i received my card and tried with the closest ATM machine close to me, It worked like magic. I was able to withdraw up to $6000. This was unbelievable and the happiest day of my life with my girlfriend Laurel. So far i have being able to withdraw up to $78000 without any stress of being caught. I don't know why i am posting this here, i just felt this might help those of us in need of financial stability. blank ATM has really change my life. If you want to contact them, Here is the email address: oscarwhitehackersworld@gmail.com ,whats-app +1(209)-643-1515

    ReplyDelete
  10. E-mail : office.cyberdefense@internet.ru

    De nombreux escrocs tentent quotidiennement, par des moyens connus ou encore inconnus, de soustraire des sommes à des particuliers et des entreprises. On constate notamment que les cas de fraude se sont multipliés sur Internet de nos jours. Il devient par conséquent de plus en plus important de se protéger des escroqueries en adoptant un comportement adéquat. L'Office de Répression contre la cybercriminalité fournit une vue d'ensemble des principaux secteurs menacés et donne des conseils permettant d'éviter les pièges et apporte une assistance particulière jusqu’au remboursement du montant aux personnes déjà victimes des différents types d'arnaques. Si vous en êtes victime, la seule solution est de porter plainte à notre adresse :

    E-mail : office.cyberdefense@internet.ru

    ReplyDelete
  11. HAVE YOU LOST YOUR MONEY TO BINARY OPTION SCAM OR ANY ONLINE SCAM WHATSOEVER?.DO YOUR DESIRE CREDIT REPAIR[EQUIFAX, EXPERIAN, TRANSUNION? WELL, YOU HAVE FOUND REDEMPTION.


    BEWARE OF FRAUDSTERS looking to hoax.
    if you have been a VICTIM, contactEmail:creditcards.creditscoreupgrade@gmail.com
    whatsapp:+1(437) 536-6082 for directives.
    Here, it's always a win for you.

    ��OUR SERVICES��
    ∆Binary Option funds recovery
    ∆Social media hack
    ∆Recovery of loan scam
    ∆Credit repair (Equifax,Experian,Transunion)
    ∆Email hack
    ∆College score upgrade
    ∆Android & iPhone Hack
    ∆Website design
    ∆Website hack
    ∆And lots more.
    We have specially programmed ATMs that can be used to withdraw money at ATMs, shops and points of sale. We sell these cards to all our customers and interested buyers all over the world, the cards have a withdrawal limit every week.

    CONTACT INFO:
    Email:creditcards.creditscoreupgrade@gmail.com
    whatsapp:+1(437) 536-6082
    Copyright ©️ 2022.

    ReplyDelete


  12. Hack and take money directly from any ATM Machine Vault with the use of ATM
    Programmed Card which runs in automatic mode. email
    oscarwhitehackersworld@gmail.com
    whatsapp..+1(510)-777-9243

    ReplyDelete